This topic has not yet been rated - Rate this topic

IWSDDeviceHost::RetireService method

Unregisters a service object that was registered using RegisterService and removes the service from the device host metadata.

Syntax


HRESULT RetireService(
  [in]  LPCWSTR pszServiceId
);

Parameters

pszServiceId [in]

The ID of the service to be removed.

Return value

Possible return values include, but are not limited to, the following:

Return codeDescription
S_OK

Method completed successfully.

E_POINTER

pszServiceId is NULL.

E_INVALIDARG

The length in characters of pszServiceId exceeds WSD_MAX_TEXT_LENGTH (8192), or pszServiceId was not found in the list of registered services.

E_FAIL

The method failed. It may have failed because the host has not been initialized. Call Init to initialize a device host.

 

Remarks

The device host releases its reference to the service object after the service is unregistered. The service object will not receive callbacks after RetireService has completed.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

WsdHost.h (include Wsdapi.h)

IDL

WsdHost.idl

DLL

Wsdapi.dll

See also

IWSDDeviceHost

 

 

Send comments about this topic to Microsoft

Build date: 11/27/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.