Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
The WPD_COMMAND_STORAGE_EJECT command ejects a storage medium that can be ejected remotely by the computer.
Command category
WPD_CATEGORY_STORAGE
Parameters
The driver expects the following parameters.
| Parameter | VarType | Description |
|---|---|---|
| WPD_PROPERTY_STORAGE_OBJECT_ID | VT_LPWSTR | Required. The object ID of the storage object to eject. |
Return Value
The driver should return the following results.
| Result | VarType | Description |
|---|---|---|
| WPD_PROPERTY_COMMON_HRESULT | VT_ERROR | Required. An HRESULT that indicates success or failure to carry out the command. If the caller is making an invalid request, the driver should return HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED) and is not required to return any other result values. Error codes include Windows Portable Devices error codes or any other appropriate error codes. |
| WPD_PROPERTY_COMMON_DRIVER_ERROR_CODE | VT_UI4 | Optional. A driver-specific error code. This is typically only used for driver testing, or if the driver, device, and client are all designed together. |
Calling Methods
Can only be called directly using IPortableDevice::SendCommand.
Requirements
| Requirement | Value |
|---|---|
| Header |
|