IPortableDeviceDispatchFactory interface (portabledeviceapi.h)

Represents a factory that can instantiate a WPD Automation Device object.

Inheritance

The IPortableDeviceDispatchFactory interface inherits from the IUnknown interface. IPortableDeviceDispatchFactory also has these types of members:

Methods

The IPortableDeviceDispatchFactory interface has these methods.

 
IPortableDeviceDispatchFactory::GetDeviceDispatch

Instantiates a WPD Automation Device object for a given WPD device identifier. (IPortableDeviceDispatchFactory.GetDeviceDispatch)

Remarks

The IPortableDeviceDispatchFactory interface can be CoCreated directly using CLSID_PortableDeviceDispatchFactory as in the following code.

IPortableDeviceDispatchFactgory* pDeviceDispatchFactory = NULL;
HRESULT hr = CoCreateInstance(CLSID_PortableDeviceDispatchFactory, NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&pDeviceDispatchFactory));   

Examples

For an example of how to use the IPortableDeviceDispatchFactory interface to instantiate a WPD Automation Device object, see Instantiating the WPD Automation Factory Interface.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header portabledeviceapi.h

See also

Device Object

Instantiating the WPD Automation Factory Interface

WPD Automation Reference