IPortableDeviceDispatchFactory interface (portabledeviceapi.h)
Represents a factory that can instantiate a WPD Automation Device object.
The IPortableDeviceDispatchFactory interface inherits from the IUnknown interface. IPortableDeviceDispatchFactory also has these types of members:
The IPortableDeviceDispatchFactory interface has these methods.
IPortableDeviceDispatchFactory::GetDeviceDispatch Instantiates a WPD Automation Device object for a given WPD device identifier. (IPortableDeviceDispatchFactory.GetDeviceDispatch) |
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));
For an example of how to use the IPortableDeviceDispatchFactory interface to instantiate a WPD Automation Device object, see Instantiating the WPD Automation Factory Interface.
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 |