HRESULT SaveSession();
Saves the current session in the registry.
·Returns DP_OK if successful, or one of the following error values otherwise:
DPERR_GENERIC | DPERR_INVALIDOBJECT |
DPERR_INVALIDPARAMS | DPERR_OUTOFMEMORY |
DPERR_UNSUPPORTED |
The functionality of this method is dependent on the service provider, which will save enough transport-specific information in the registry to restore the connection. IDirectPlay::SaveSession is unsupported in the TCP and IPX service providers. In the serial modem service provider, IDirectPlay::SaveSession functions only for the client session (the one that dials), in which case it will save the phone number in the registry for future use.