This function also allows the caller to deregister from receiving the above notifications. When deregistering, if pfn is non-NULL, the callback associated with pfn and pUser is deregistered. If pfn is NULL, a callback associated with pUser is deregistered.
The user-specified callback should always be explicitly deregistered by the client; releasing the INetMgr object does not implicitly deregisters the callback.
- pINetMgr:Pointer to the INetMgr Interface.
- pfn:User-specified callback to call when event occurs.
- pUser:User-specified context data passed as first argument to callback.
- bRegister:TRUE, if registering, FALSE if deregistering.
int INETMGR_OnEvent ( INetMgr * pINetMgr, PFNNETMGREVENT pfn, void * pUser, boolean bRegister )
Other error codes are also possible