home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 2
/
ctrom_ii_b.zip
/
ctrom_ii_b
/
PROGRAM
/
PASCAL
/
NWTP04
/
XSERV
/
LOGLOCK.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-12-29
|
787b
|
32 lines
{$X+,V-,B-}
program loglock;
{ Example for the nwServ unit / NwTP 0.4 API. (c) 1994, R.Spronk }
{ This program toggles the login status..
If User Login was enabled, it will be diabled and v.v. }
uses nwMisc,nwServ;
Var allowed:boolean;
begin
IF GetFileServerLoginStatus(allowed)
then begin
if allowed
then begin
DisableFileServerLogin;
writeln('Login Disabled.')
end
else begin
EnableFileserverLogin;
writeln('Login Enabled.')
end
end
else begin
if nwServ.result=$C6
then writeln('You need console operator rights to run this utility.')
else writeln('GetFileserverLoginStatus Error : $',HexStr(nwServ.result,2));
end;
end.