HRESULT WFSAsyncDeregister( hService, dwEventClass, hWndReg, hWnd, lpRequestID )
Discontinues monitoring of the specified message class(es) (or all classes) from the specified hService, by the specified hWndReg (or all the calling application's hWnd's). The asynchronous version of WFSDeregister.
Parameters HSERVICE hService
Service handle returned by WFSOpen or WFSAsyncOpen. If this value is NULL, and dwEventClass is SYSTEM_EVENTS, the XFS manager deregisters the application for those system events generated by the Manager itself.
DWORD dwEventClass
The class(es) of events from which the application is deregistering. Specified as a bit mask that can be a logical OR of the values for multiple classes. A NULL value requests that all event classes be deregistered from the specified window for this hService.
HWND hWndReg
The window which has been previously registered to receive notification messages, and is now to be deregistered. A NULL value requests that all the application's windows be deregistered from the specified message class(es) for this hService.
HWND hWnd
The window handle which is to receive the completion message for this request.
LPREQUESTID lpRequestID
Pointer to the request identifier for this request (returned parameter).
Mode Asynchronous
Comments See WFSDeregister.
The application must call WFSFreeResult to deallocate the WFSRESULT data structure which is pointed to by the completion message. Note that a WFSRESULT structure may be returned even if the function completes with an error; see Section 3.13.
Messages WFS_DEREGISTER_COMPLETE
Error Codes If the function return is not WFS_SUCCESS, it is one of the following error conditions, indicating that the asynchronous operation was not initiated:
The following error conditions are returned via the asynchronous command completion message, as the hResult from the WFSRESULT structure. Any service-specific errors that can be returned are defined in the specifications for each service class.
See also WFSRegister, WFSClose