HRESULT WFSAsyncClose( hService, hWnd, lpRequestID )
Terminates a session (a series of service requests initiated with the WFSOpen or WFSAsyncOpen function) between the application and the specified service. The asynchronous version of WFSClose.
Parameters HSERVICE hService
The service handle returned by WFSOpen or WFSAsyncOpen. Matches the close request to the open request, allowing an application to maintain several "open sessions" simultaneously.
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 WFSClose.
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_CLOSE_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 condition can be returned via the asynchronous command completion message, as the hResult from the WFSRESULT structure.
See also WFSOpen, WFSDeregister