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
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour