Restart the server, terminating all active client sessions.
Parameters
None.
Return Value
If the method succeeds, the return value is non-zero. If the method fails, the return value is
zero. To get extended error information, call
GetLastError.
Remarks
The Restart method will restart the specified
server, terminating all active client sessions. If the method is unable
to restart the server for any reason, the server thread is terminated.
The server retains all of the options specified for the
previous instance.
If an application calls this method from within an event handler,
the active client session (the client for which the event handler was
invoked) may not get a disconnect notification. It is recommended that
this method only be called by the same thread that created the
server using the Start method.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cswsock11.h
Import Library: cswskv11.lib
See Also
Start,
Stop
|