HRESULT WFSAsyncRegister( hService, dwEventClass, hWndReg, hWnd, lpRequestID )
Enables event monitoring for the specified service by the specified window; all messages of the specified class(es) are sent to the window specified in the hWndReg parameter. The asynchronous version of WFSRegister.
Parameters HSERVICE hService
Handle to the service provider as returned by WFSOpen or WFSAsyncOpen. If this value is NULL, and dwEventClass is SYSTEM_EVENTS, the XFS manager registers the application for those system events generated by the Manager itself.
DWORD dwEventClass
See WFSRegister.
HWND hWndReg
The window handle which is to be registered to receive the specified messages.
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 WFSRegister.
The application must call WFSFreeResult to deallocate the WFSRESULT data structure 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_REGISTER_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 can be returned via the asynchronous command completion message, as the hResult from the WFSRESULT structure.
See also WFSRegister, WFSDeregister, WFSAsyncDeregister