Events
Nov 19, 11 PM - Nov 21, 11 PM
Gain the competitive edge you need with powerful AI and Cloud solutions by attending Microsoft Ignite online.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Unregisters a service object that was registered using AddDynamicService. An unregistered service object does not receive incoming requests.
HRESULT RemoveDynamicService(
[in] LPCWSTR pszServiceId
);
[in] pszServiceId
The ID for the dynamic service to be removed.
Possible return values include, but are not limited to, the following:
Return code | Description |
---|---|
|
Method completed successfully. |
|
pszServiceId is NULL, the length in characters of pszServiceId exceeds WSD_MAX_TEXT_LENGTH (8192), or pszServiceId was not found in the list of dynamic services. |
|
The method failed. It may have failed because the host has not been initialized. Call Init to initialize a device host. |
The device host releases its reference to the service object after the service is unregistered. The service object will not receive callbacks after RemoveDynamicService has completed.
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | wsdhost.h (include Wsdapi.h) |
DLL | Wsdapi.dll |
Events
Nov 19, 11 PM - Nov 21, 11 PM
Gain the competitive edge you need with powerful AI and Cloud solutions by attending Microsoft Ignite online.
Register now