Terminates a client’s connection to the network and invalidates any information cached locally by NWDSLogin.
#include <nwnet.h> or #include <nwdsasa.h> N_EXTERN_LIBRARY (NWDSCCODE) NWDSLogout ( NWDSContextHandle context);
uses netwin32 Function NWDSLogout (context : NWDSContextHandle ) : NWDSCCODE;
(IN) Specifies the NDS context for the request.
0x0000 0000 |
SUCCESSFUL |
nonzero value |
Nonzero values indicate errors. See |
After calling NWDSLogout, new connections cannot be established by calling NWDSAuthenticate. NWDSLogout leaves intact all server attachments and other session connections, authenticated or unauthenticated, although all rights associated with server attachments and session connections are lost.
NWDSLogout invalidates the cached authenticator even if the function results in an error.