RemoveDriverPackage method
The RemoveDriverPackage method removes a previously published driver package from the Microsoft Windows Device Testing Framework (WDTF) driver package collection.
Syntax
HRESULT RemoveDriverPackage(
[in] IPublishedDriverPackage *pPackage,
[in] VARIANT_BOOL Force
);
Parameters
pPackage [in]
The PublishedDriverPackage object that references the driver package to be removed from the WDTF driver package collection.Force [in]
A Boolean value that specifies whether the driver package should be removed, even if it is currently installed on a device. If this parameter is VARIANT_TRUE, the driver package should be removed even if it is currently installed. If this parameter is VARIANT_FALSE, the RemoveDriverPackage method will fail if the driver package is currently installed on a device.
Return value
RemoveDriverPackage returns a standard HRESULT value.
Remarks
The RemoveDriverPackage method removes a driver package, which is referenced by a PublishedDriverPackage object, from the WDTF driver package collection. The PublishedDriverPackage object can be obtained by calling the GetPublishedDriverPackagesWithFilter method.
For more information about the WDTF driver package collection, see IDriverPackageCollection.
Note The RemoveDriverPackage method only removes the published driver package, which is referenced by the PublishedDriverPackage object, from the WDTF driver package collection. This method does not uninstall the driver package from the computer.
See also
GetPublishedDriverPackagesWithFilter
Send comments about this topic to Microsoft
Build date: 1/12/2012