g***@wwdb.org
2004-12-07 22:14:39 UTC
Up until the swithover we were using the procudure below to get the
server time of a novell server, Now we are using a win2K server and
can't get this to work, any ideas?
Function ServerTime : Double;
{ Returns the file server clock as a number of hours since Midnight,
with no error checking. ($E7 does not return an error code)
}
Var
Regs : Registers;
ReplyBuffer : Array[0..6] of Byte;
Begin
Regs.AH := $E7; { Call to Novell API: Get File Server
Time }
Regs.DS := Seg(ReplyBuffer);
Regs.DX := Ofs(ReplyBuffer);
MsDos(Regs); { Give it to
DOS }
ServerTime := ReplyBuffer[3] + ReplyBuffer[4]/60 +
ReplyBuffer[5]/3600;
End;
The Regs stuff is returning zero, but I don't know what to replace the
$E7 with.
Thanks
Dan
server time of a novell server, Now we are using a win2K server and
can't get this to work, any ideas?
Function ServerTime : Double;
{ Returns the file server clock as a number of hours since Midnight,
with no error checking. ($E7 does not return an error code)
}
Var
Regs : Registers;
ReplyBuffer : Array[0..6] of Byte;
Begin
Regs.AH := $E7; { Call to Novell API: Get File Server
Time }
Regs.DS := Seg(ReplyBuffer);
Regs.DX := Ofs(ReplyBuffer);
MsDos(Regs); { Give it to
DOS }
ServerTime := ReplyBuffer[3] + ReplyBuffer[4]/60 +
ReplyBuffer[5]/3600;
End;
The Regs stuff is returning zero, but I don't know what to replace the
$E7 with.
Thanks
Dan