Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The OnComplete method notifies an application that a previously scheduled Connect or Disconnect request to the MTP/Bluetooth device has completed
Syntax
HRESULT OnComplete(
[in] HRESULT hrStatus
);
Parameters
-
hrStatus [in]
-
The status of the request to connect or disconnect a given device.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
|---|---|
|
The method succeeded. |
Remarks
An application implements the IConnectionRequestCallback interface to receive notifications about completed requests and to cancel pending requests.
Windows Portable Devices (WPD) calls this method to notify an application that a previously scheduled request has completed. Each request can be tracked and canceled by its application-supplied callback. Therefore, if the application needs to send multiple requests at the same time using the same IPortableDeviceConnector object, each request should be passed a unique IConnectionRequestCallback object as the input parameter to the IPortableDeviceConnector::Connect and IPortableDeviceConnector::Disconnect methods.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client |
Windows 7 [desktop apps only] |
| Minimum supported server |
None supported |
| Header |
|
| IDL |
|
| Library |
|