This function registers a window handle for connection status notifications.
HRESULT WINAPI ConnMgrRegisterForStatusChangeNotification( BOOL fEnable, HWND hWnd );
- [in] Enables or disables notifications.
- [in] Handle to the window to which to post status change notifications.
This function returns the following values.
|S_OK||The function call was successful.|
|E_HANDLE||The supplied window handle is invalid.|
|E_ACCESSDENIED||The calling process does not have sufficient privileges to use this function.|
ConnMgrRegisterForStatusNotification will post a CONNMGR_STATUS_CHANGE_NOTIFICATION message to the window that has the passed-in window handle when any of the connections changes its state from connected to disconnected, or disconnected to connected. This function will post a message when a new connection is created. During the lifetime of the connection any Connection Manager status constant can be passed to the notification window, in addition to the CONNMGR_STATUS_CONNECTED and CONNMGR_STATUS_DISCONNECTED constants.
OS Versions: Windows CE .NET 4.2 and later.
Link Library: Cellcore.lib.
Send Feedback on this topic to the authors