HRESULT WFSGetInfo( hService, dwCategory, lpQueryDetails, dwTimeOut, lppResult )
Retrieves information from the specified service provider. The synchronous version of WFSAsyncGetInfo.
Parameters HSERVICE hService
Handle to the service provider as returned by WFSOpen or WFSAsyncOpen.
DWORD dwCategory
Specifies the category of the query (e.g., for a printer, WFS_INF_PTR_STATUS to request status or WFS_INF_PTR_CAPABILITIES to request capabilities). The available categories depend on the service class, the service provider and the service. The information requested can be either static or dynamic, e.g., basic service capabilities (static) or current service status (dynamic).
LPVOID lpQueryDetails
Pointer to the data structure to be passed to the service provider, containing further details to make the query more precise, e.g., a form name. (Many queries have no input parameters, in which case this pointer is NULL.)
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 data structure to be filled with the result of the execution. The service provider allocates the memory for the structure.
Mode Synchronous
Comments The XFS Manager passes the request to the service provider, and since the information may be stored remotely, the function cannot be immediate. Note that many requests can be satisfied by the service provider and will therefore complete immediately.
The definitions of the dwCategory and lpQueryDetails parameters are provided in the service-specific command sections of this specification. Note that these information retrieval functions are separate from the other service-specific commands, since those commands can be executed only via WFSExecute or WFSAsyncExecute, which require that the service be either locked by the application issuing the command, or unlocked. The GetInfo functions, however, can be used even when a service is locked by another application.
The application must call WFSFreeResult to deallocate the WFSRESULT data structure which is 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 WFSAsyncGetInfo