Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gus33000 committed May 3, 2021
1 parent 0508f7a commit 2a5b56b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion DriverUpdater/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,10 @@ IntPtr Unknown

while (currentFails < maxAttempts)
{
ntStatus = NativeMethods.DriverStoreOfflineAddDriverPackageW(inf, 0x00000020 | 0x00000080 | 0x00000100, IntPtr.Zero, IsARM ? NativeMethods.ProcessorArchitecture.PROCESSOR_ARCHITECTURE_ARM : NativeMethods.ProcessorArchitecture.PROCESSOR_ARCHITECTURE_ARM64, "en-US", destinationPath, ref destinationPathLength, $"{DevicePart}\\Windows", DevicePart);
// 0x00000020: Use hard links when importing to the driver store
// 0x00000080: Replace the driver package if it is already present in the driver store
// 0x00000100: Force offline reflection regardless of device class when importing to the driver store
ntStatus = NativeMethods.DriverStoreOfflineAddDriverPackageW(inf, 0x00000080, IntPtr.Zero, IsARM ? NativeMethods.ProcessorArchitecture.PROCESSOR_ARCHITECTURE_ARM : NativeMethods.ProcessorArchitecture.PROCESSOR_ARCHITECTURE_ARM64, "en-US", destinationPath, ref destinationPathLength, $"{DevicePart}\\Windows", DevicePart);

/*
Invalid ARG can be thrown when an issue happens with a specific driver inf
Expand Down

0 comments on commit 2a5b56b

Please sign in to comment.