ISensorDriver::OnProcessWpdMessage method

The ISensorDriver::OnProcessWpdMessage method handles Windows Portable Device (WPD) commands that the ISensorClassExtension::ProcessIoControl method does not handle internally.

Syntax


HRESULT OnProcessWpdMessage(
  [in]  IUnknown *pUnkPortableDeviceValuesParams,
  [in]  IUnknown *pUnkPortableDeviceValuesResults
);

Parameters

pUnkPortableDeviceValuesParams [in]

A pointer to the IUnknown interface that supports the IPortableDeviceValues interface. The object that is associated with this IUnknown interface contains the parameters for the WPD command. For more information, see IPortableDeviceValues in Windows Portable Devices.

pUnkPortableDeviceValuesResults [in]

A pointer to the IUnknown interface that supports the IPortableDeviceValues interface. The object that is associated with this IUnknown interface stores the results for the WPD command.

Return value

If the operation succeeds, this method returns S_OK. Otherwise, this method returns one of the error codes that are defined in Winerror.h.

Remarks

This method enables you to extend the WPD commands and interfaces in a device-specific way.

Requirements

Minimum supported client

Windows 7

Minimum supported server

None supported

Version

Available in Windows 7.

Header

Sensorsclassextension.h

Library

SensorsClassExtension.lib

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft