Using WPD Automation
WPD Automation is available in Windows 7. The starting point for using WPD Automation is to instantiate the Device object. There are two ways to instantiate the Device object: from a scripting host and from C++/COM.
Instantiating the Device Object from a Scripting Host
WPD Automation can be used from script within a scripting host that is specifically designed to instantiate the WPD Automation factory interface. For an example, refer to Instantiating the WPD Automation Factory.
Instantiating the Device Object from C++/COM
WPD Automation can be instantiated from C++/COM outside of script. Because the IDispatch interface was specifically designed for use by script, this approach is somewhat cumbersome and not recommended. However, the approach can offer a simplified way of programming against WPD; it is not explained further in this documentation.
Related topics