从服务安装Windows驱动程序 [英] Install Windows driver from a Service

查看:100
本文介绍了从服务安装Windows驱动程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用C ++开发Windows服务,我正在寻找一种安装硬件的方法来自我服务的驱动程序(INF文件)。此外,无需用户登录即可。

I'm developing a Windows service in C++ and I'm looking for a way to install hardware drivers (INF file) from my service. Moreover, it has to be possible with no users logged in.

谢谢!

推荐答案

您是否尝试过使用Setup API执行此操作的常用方法?

Have you tried the usual way of doing this by using Setup API?

除了驱动程序安装可以提示用户权限之外,我不认为API仅限于运行在登录用户的会话中。

Besides the fact that driver installation could prompt the user for permission, I don't think the API is restricted to only run in a logged on user's session.


这篇关于从服务安装Windows驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆