HRESULT WFSExecute ( hService, dwCommand, lpCmdData, dwTimeOut, lppResult )
Sends a service-specific command to a service provider. The synchronous version of WFSAsyncExecute.
Parameters HSERVICE hService
Handle to the service as returned by WFSOpen or WFSAsyncOpen.
DWORD dwCommand
Command to be executed by the service provider.
LPVOID lpCmdData
Pointer to a command data structure to be passed to the service provider.
DWORD dwTimeOut
Number of milliseconds to wait for completion (WFS_INDEFINITE_WAIT to specify a request that will wait until completion).
LPWFSRESULT * lppResult
Pointer to the pointer to the result data structure used to return the results of the execution. The service provider allocates the memory for this structure.
Mode Synchronous
Comments This function is used to execute service-specific commands. Each class of service includes a unique set of commands for the given type of device or service; they are defined in the service-specific command specifications. Each service provider developer is responsible for recognizing the complete set of commands for a given class, even if the service provider doesn't support them all. Each command, for each service class, defines a command data structure and/or a result data structure. See the separate specifications for each service class for more discussion of these issues, and the definitions of the service-specific commands and associated data structures.
The application must call WFSFreeResult to deallocate the WFSRESULT data structure returned by this function. Note that a WFSRESULT structure may be returned even if the function completes with an error; see Section 3.13.
Error Codes If the function return is not WFS_SUCCESS, it is one of the following error conditions. Any service-specific errors that can be returned are defined in the specifications for each service class.
See Also WFSAsyncExecute