HRESULT WFPDeregister( hService, dwEventClass, hWndReg, hWnd, ReqID )
Discontinues monitoring of the specified message class(es) from the specified service provider, by the specified hWndReg (or all hWnd's).
Parameters HSERVICE hService
Handle to the service provider
DWORD dwEventClass
The class(es) of messages from which the application is deregistering. Specified as a set of bit masks that can be logically ORed together. A NULL value requests that all message classes be deregistered from the specified window for this service provider.
HWND hWndReg
The window to which notification messages are posted. 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.
REQUESTID ReqID
Request identification number.
Mode Asynchronous
Comments WFPDeregister does not stop asynchronous command completion messages from being posted; a robust application should be designed to accept these messages even after a deregister is issued.
A WFPDeregister os performed automatically if a WFPClose is issued without a previous WFPDeregister.
To deregister all messages for all hWnds, the call supplies NULL values for both the dwEventClass and hWnd parameters.
See the WFPRegister function for a description of the types of events that may be monitored.
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. Any service-specific errors that can be returned are defined in the specifications for each service class.
The following error condition is 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.