home *** CD-ROM | disk | FTP | other *** search
- program logged;
- (*
- This program works with most current versions of novell netware
- software. It is designed to determine your station information using
- msdos interrupts.
- Written by: Kip McClanahan
- 9501 Bart Hollow Dr.
- Austin Tx, 78750
- Feel free to ask any questions about the program.
-
- *)
-
- type result = record case integer of
- 1:(ax,bx,cx,dx,bp,si,di,ds,es,flags:integer);
- 2:(al,ah,bl,bh,cl,ch,dl,dh:byte);
- end;
-
- var regs:result;
- req:array [0..3] of byte; {request packet}
- rep:array [0..255] of byte; {reply packet}
- x,r,y:integer;
-
- begin
- clrscr;
- repeat begin
- for x:=0 to 255 do rep[x]:=$00; {clear it out}
- regs.ds:=seg(req); {segment address of the req. buffer}
- regs.si:=ofs(req); {offset for buffer address}
-
- regs.es:=seg(rep); {segment for reply buffer}
- regs.di:=ofs(rep); {offset for reply buffer}
-
- req[0]:=$03; {Length of req. buffer: LOW}
- req[1]:=$00; {high byte}
- req[2]:=22; {command number}
- write ('enter station #:');
- readln (req[3]);
-
- rep[0]:=$ff; {low byte}
- rep[1]:=$00; {high byte}
-
-
- regs.ah:=$e3; {function number}
- intr($21,regs); {call the interrupt}
- writeln ('unique ID:',rep[2],rep[3],rep[4],rep[5]);
- writeln ('Type:',rep[6],rep[7]);
- write ('Object name:');
- for r:=8 to 56 do write (chr(rep[r]));
- (* writeln;
- writeln ('log time:',rep[57]); *)
- writeln;
- writeln;
- end;
- until req[3]=0;
-
- end.
-