阅读:992回复:6
紧急求助
现在我想在系统内注册一个常驻设备 ― smartcard reader, 非pnp
问题如下: 1. 注册时需要写入那些项,才能让一个不响应pnp,并且起机就存在? 2. 如何让设备在设备列表中可见? 只要思路正确,就给分 |
|
|
沙发#
发布于:2003-06-27 15:06
HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services
创建你的键值如smartcard 需要下面一些内容 Type REG_DWORD 驱动程序的类型0x1:内核模式驱动程 0x2:文件系统驱动程序 Start REG_DWORD 何时启动驱动程序0x0:指定由操作系统装入程序启动0x1:由操作系统初始化程序启动0x2:系统启动后由服务控制管理器装入0x3:手动启动,使用控制面板或者调用Win32 Service API0x4:驱动程序被禁用 ErrorControl REG_DWORD 如果驱动程序装入失败,则系统响应:0x0:日志记录错误并忽略0x1:日志记录错误并显示一个消息框0x2:日志记录错误并用最后已知的好配置重新启动0x3:日志记录错误,如果已经使用了最后的好配置,失败 Group REG_SZ 驱动程序的组名 Imagepath REG_EXTAND_SZ 驱动程序文件全路径 |
|
|
板凳#
发布于:2003-06-27 16:33
or
SCM, Search in MSDN 能做成exe,比手动好些些。 or 用.reg文件,.inf文件 |
|
地板#
发布于:2003-06-27 16:44
or 又来和我抢,打pp :mad: |
|
|
地下室#
发布于:2003-06-27 16:53
只是补充而已啊
哪敢和版主抢啊 :D |
|
5楼#
发布于:2003-06-27 17:27
还是看不到设备
写进去的信息如下: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\HtUsbIns] \"ImagePath\"=hex(2):53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,\\ 52,00,49,00,56,00,45,00,52,00,53,00,5c,00,48,00,74,00,55,00,73,00,62,00,49,\\ 00,6e,00,73,00,2e,00,73,00,79,00,73,00,00,00 \"Start\"=dword:00000002 \"Type\"=dword:00000001 \"DisplayName\"=\"HighTech SmartCard Reader(SuperKey)\" \"ErrorControl\"=dword:00000001 [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\HtUsbIns\\Enum] \"Count\"=dword:00000001 \"NextInstance\"=dword:00000001 \"0\"=\"Root\\\\SMARTCARDREADER\\\\0000\" \"INITSTARTFAILED\"=dword:00000001 [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\HtUsbIns\\Security] \"Security\"=hex:01,00,14,80,a0,00,00,00,ac,00,00,00,14,00,00,00,30,00,00,00,02,\\ 00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\\ 00,00,02,00,70,00,04,00,00,00,00,00,18,00,fd,01,02,00,01,01,00,00,00,00,00,\\ 05,12,00,00,00,00,00,00,00,00,00,1c,00,ff,01,0f,00,01,02,00,00,00,00,00,05,\\ 20,00,00,00,20,02,00,00,04,08,00,00,00,00,18,00,8d,01,02,00,01,01,00,00,00,\\ 00,00,05,0b,00,00,00,20,02,00,00,00,00,1c,00,fd,01,02,00,01,02,00,00,00,00,\\ 00,05,20,00,00,00,23,02,00,00,04,08,00,00,01,01,00,00,00,00,00,05,12,00,00,\\ 00,01,01,00,00,00,00,00,05,12,00,00,00 为什么? |
|
|
6楼#
发布于:2003-06-27 17:58
“显示隐藏的设备”。。。
还要看到设备?那还要添加设备类,等等。。。 |
|