IDriverPackageCollection interface
The IDriverPackageCollection interface is a COM collection of PublishedDriverPackage items that reside within the Microsoft Windows Device Testing Framework (WDTF) driver package collection.
Members
The IDriverPackageCollection interface inherits from the IDispatch interface. IDriverPackageCollection also has the following types of members:
- Properties
Properties
The IDriverPackageCollection interface has the following properties.
| Property | Description |
|---|---|
Count |
The number of items in the collection. |
Item |
Gets the item at the specified index. The collection is zero-based, and an index of zero references the first item in the collection. |
Remarks
The WDTF driver package collection is used to track, install and query the properties of published driver packages in a computer. Each published driver package in the collection, which is represented by a PublishedDriverPackage object, are available in the system but might not be installed on devices.
Unpublished driver packages, which are represented by DriverPackage objects, can be published to the WDTF driver package collection by calling the DeviceManagement::AddDriverPackage method.
As soon as they are published, driver objects can be accessed within the collection by calling the DeviceManagement::GetPublishedDriverPackagesWithFilter method. This method returns an instance of the IDriverPackageCollection interface. This interface contains one or more PublishedDriverPackage objects.
Note In-box driver packages, which are installed with the operating system, are implicitly part of the WDTF driver package collection. These packages do not have to be explicitly published to the collection by calling the DeviceManagement::AddDriverPackage method.
Implementation Details
WDTFProgID: None. See the previous remarks.
Note The implementation of the IDriverPackageCollection interface is not thread-safe.
Requirements
Type library |
WDTF.tlb; WDTFInterfaces.tlb; DeviceManagement.tlb |
See also
DeviceManagement::AddDriverPackage
DeviceManagement::GetPublishedDriverPackagesWithFilter
IDriverPackageCollection::Count
IDriverPackageCollection::Item
Send comments about this topic to Microsoft
Build date: 1/12/2012