Interface IPortableDeviceDispatchFactory (portabledeviceapi.h)

Représente une fabrique qui peut instancier un objet d’appareil WPD Automation.

Héritage

L’interface IPortableDeviceDispatchFactory hérite de l’interface IUnknown. IPortableDeviceDispatchFactory a également les types de membres suivants :

Méthodes

L’interface IPortableDeviceDispatchFactory a ces méthodes.

 
IPortableDeviceDispatchFactory ::GetDeviceDispatch

Instancie un objet d’appareil WPD Automation pour un identificateur d’appareil WPD donné. (IPortableDeviceDispatchFactory.GetDeviceDispatch)

Remarques

L’interface IPortableDeviceDispatchFactory peut être cocréée directement à l’aide de CLSID_PortableDeviceDispatchFactory comme dans le code suivant.

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

Exemples

Pour obtenir un exemple d’utilisation de l’interface IPortableDeviceDispatchFactory pour instancier un objet d’appareil AUTOMATION WPD, consultez Instanciation de l’interface d’usine WPD Automation.

Configuration requise

Condition requise Valeur
Client minimal pris en charge Windows 7 [applications de bureau | Applications UWP]
Serveur minimal pris en charge Windows Server 2008 R2 [applications de bureau | Applications UWP]
Plateforme cible Windows
En-tête portabledeviceapi.h

Voir aussi

Objet Device

Instanciation de l’interface d’usine WPD Automation

Informations de référence sur WPD Automation