ConnMgrReleaseConnection
The ConnMgrReleaseConnection function deletes the specified connection request, which could drop the physical connection.
Syntax
HRESULT WINAPI ConnMgrReleaseConnection(
HANDLE hConnection,
LONG ICache );
Parameters
- hConnection
Handle to the current connection; the ConnMgrEstablishConnection function returns the value of this parameter. - ICache
The number of seconds to cache the connection before disconnection occurs. This parameter accepts values described in the following table.Value Description A value greater than 1 The number of seconds to cache the connection before disconnection occurs. 1 The default value (60 seconds). 0 Disconnection occurs immediately. A negative value The default value (60 seconds).
Note Some Windows Mobile 2002-based Smartphones ignore the specified value of this parameter and instead use the default value (60 seconds).
Return Values
None.
Requirements
Smartphone: Windows Mobile 2002 and later
OS Versions: Windows CE 3.0 and later
Header: connmgr.h
Library: cellcore.lib
See Also
Connection Manager API Functions
Last updated on Friday, April 22, 2005
© 2005 Microsoft Corporation. All rights reserved.
Send feedback on this topic to the authors.