5.10 WFPUnloadService

HRESULT WFPUnloadService( )

Asks the called service provider whether it is OK for the XFS Manager to unload the service provider’s DLL.

Parameters None

Mode Immediate

Comments This function is issued after the XFS Manager has received a WFMReleaseDLL request from the service provider or during the processing of the WFSCleanUp command. The service provider returns WFS_SUCCESS only if it has fully “cleaned up,” i.e., has freed any resources it has allocated, has no separate threads running, etc. If this is not true, it returns the error below, and initiates or continues the clean up process.

Error Codes If the function return is not WFS_SUCCESS, it is one of the following error conditions:

WFS_ERR_NOT_OK_TO_UNLOAD
The XFS Manager may not unload the service provider DLL at this time. It will repeat this request to the service provider until the return is WFS_SUCCESS, or until a new session is started by an application with this service provider.