The IsConnected method is used to determine if a connection
has been established with the storage server.
Parameters
None.
Return Value
If the client is connected to a server, the method returns
a non-zero value. If the client is not connected, or the client
handle is invalid, the method returns zero. To get extended error
information, call the GetLastError method.
Remarks
The client does not maintain a continuous, persistent connection
with the storage server. The connection may be closed and reopened
internally as needed. If the client session has been idle for a period
of time, this method can return zero.
If the GetLastError method returns
ST_ERROR_NOT_CONNECTED it means the client session is valid, however
it not currently connected to the storage server. The next call to
store or retrieve an object will the cause the client to reconnect
automatically.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: cswebv12.lib
See Also
|