Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IPortableDeviceDispatchFactory interface

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

Members

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

Methods

The IPortableDeviceDispatchFactory interface has these methods.

MethodDescription
GetDeviceDispatch

Instantiates a WPD Automation Device object for a given WPD device identifier.

 

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

Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

PortableDeviceApi.h

Library

PortableDeviceGuids.lib

See also

Device Object
Instantiating the WPD Automation Factory Interface
WPD Automation Reference

 

 

Community Additions

Show:
© 2017 Microsoft