可以利用什么Windows API来更新设备驱动程序?

问题描述 投票:0回答:1

设备在设备管理器下的

Other devices
下被检测为
802.11ac NIC
设备。我需要以与使用设备管理器“更新驱动程序软件 - 802.11ac NIC”->“浏览我的计算机以获取驱动程序软件”向导相同的方式自动更新驱动程序。 C# 中可以使用哪些 API?

c# windows powershell driver
1个回答
0
投票

该脚本用于通过将驱动程序包添加到驱动程序存储来安装驱动程序。研究如何使用 C# 或 C++ 实现类似的功能。

# Define the path to the directory containing the driver files
$driverPath = "C:\Path\To\Driver"

# Add the driver package to the driver store
Write-Host "Adding driver package to the driver store..."
pnputil.exe /add-driver "$driverPath\*.inf" /subdirs /install
© www.soinside.com 2019 - 2024. All rights reserved.