Share via


Error Constants

banner art

Previous Next

Error Constants

Windows Portable Devices defines the following error values. Driver developers should see if a suitable error code is defined for any errors they return in their WPD_PROPERTY_COMMON_HRESULT.

Value Description
E_WPD_DEVICE_ALREADY_OPENED The device connection has already been opened by a prior call to IPortableDevice::Open.
E_WPD_DEVICE_IS_HUNG The device will no longer respond to input.
E_WPD_DEVICE_NOT_OPEN The device connection has not yet been opened by a call to IPortableDevice::Open.
E_WPD_OBJECT_ALREADY_ATTACHED_TO_DEVICE The interface object has already been attached to the device interface.
E_WPD_OBJECT_NOT_ATTACHED_TO_DEVICE The interface object has not been attached to the device.
E_WPD_OBJECT_NOT_COMMITED IStream::Commit was never called when creating an object with data on a device.
E_WPD_SMS_INVALID_RECIPIENT The recipient specified for an SMS message is invalid.
E_WPD_SMS_INVALID_MESSAGE_BODY The body of a message specified for an SMS message is invalid.
E_WPD_SMS_SERVICE_UNAVAILABLE The SMS service is unavailable.

In addition to these Windows Portable Devices errors, each type of driver can define its own error constants. Applications calling methods on an interface will receive these as an HRESULT return value in the standard fashion.

Requirements

Header: Defined in PortableDevice.h

See Also

Previous Next