IPortableDeviceService::Close method (portabledeviceapi.h)
The Close method releases the connection to the service.
This method has no parameters.
If the method succeeds, it returns S_OK. Any other HRESULT value indicates that the call failed.
Applications typically won't call this method, as the Windows Portable Devices (WPD) API automatically calls it when the last reference to a service is removed.
When an application does call this method, the WPD API releases the service connection, so that any WPD objects attached to the service will return the E_WPD_SERVICE_NOT_OPEN error.
|Minimum supported client||Windows 7 [desktop apps | UWP apps]|
|Minimum supported server||None supported|