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.
| Method | Description |
|---|---|
| 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 |
|
|
Library |
|
See also