IWSDDeviceHost::RegisterService (Compact 2013)
3/26/2014
This method registers a service object for incoming requests and adds the service to the device host metadata.
Syntax
HRESULT RegisterService(
LPCWSTR pszServiceId,
IUnknown* pService
);
Parameters
- pszServiceId
[in] The ID of the service to be registered. This ID must appear in the device's service host metadata.
- pService
[in] The service object that will handle requests addressed to the specified service.
Return Value
The following table shows the possible error code return values.
Error code |
Description |
---|---|
S_OK |
This method completed successfully. |
E_INVALIDARG |
pszServiceId is NULL, the length in characters of pszServiceId exceeds WSD_MAX_TEXT_LENGTH (8192), or a service matching pszServiceId has already been registered. |
Requirements
Header |
wsdapi.h |
Library |
wsdapi.lib |