Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Note
Beginning with the refreshed version of the HLK (updated February 2026), the AddDriver and AddReplacementDriver methods will include a new check for files in the driver package that were not referenced by an .inf file. This information will be available through warningMessages. There will also be new AddDriver and AddReplacementDriver overloads that expose the unreferenced file information through output arguments in addition to warningMessages.
Overload List
| Name | Description |
|---|---|
PackageWriter.AddReplacementDriver (string, string, out StringCollection, out StringCollection) |
This method replaces a driver for an Update Package and checks the driver files for driver signability. The signability tests are done when drivers are added to the package. If the signability tests fail the driver is not added to the package. Down level OS signability tests are automatically run. Errors from these signability results will not prevent submission creation (will not cause a false return value). The error messages for down level operating system signability runs will be captured and returned as warnings. This method also checks for unreferenced files, and generates a log listing all unreferenced and referenced files. If the driver package has at least one unreferenced file, a path to the unreferenced file log is appended to warningMessages. |
This method replaces a driver for an Update Package and checks the driver files for driver signability. It also checks for unreferenced files. In addition to all the properties described in the above overload, this method returns two additional output args from the unreferenced file check: a boolean value set to true if there was at least one unreferenced file, and a path to the unreferenced file log. warningMessages still includes a note if there is at least one unreferenced file in the driver package. |