About the Device Object
The Device object is the entry point into the WPD Automation object model, because it programmatically represents a physical device.
Through its Services and Storages properties, the Device object provides access and enumeration of all the services and storages that are contained in the device. The GetServicesByType method provides an easy way to access a collection of services that belong to a particular service type.
In addition to these inherent properties, the Device object provides access to any properties and events that are defined by the device it represents. A Device object is functional only while the physical device that it represents is connected.
For details on how to create a Device object, see Using WPD Automation.
Related topics