登录
首页 » Windows开发 » 使用SetupDi...函式列舉設備

使用SetupDi...函式列舉設備

于 2022-10-02 发布 文件大小:286.01 kB
0 243
下载积分: 2 下载次数: 1

代码说明:

应用背景使用SetupDiGetClassDevs列舉設備,透過SP_DEVINFO_DATA結構及SetupDiEnumDeviceInfo來獲取設備資訊。SetupDiGetClassDevs則是取得類別interface,再透過SetupDiGetDeviceInterfaceDetail取得更多界面資訊。关键技术 使用SetupDi系列函數進行設備資訊的管理,獲取設備屬性: #define SPDRP_DEVICEDESC                  (0x00000000)  // DeviceDesc (R/W) #define SPDRP_HARDWAREID                  (0x00000001)  // *HardwareID (R/W) #define SPDRP_COMPATIBLEIDS               (0x00000002)  // CompatibleIDs (R/W) #define SPDRP_UNUSED0                     (0x00000003)  // unused #define SPDRP_SERVICE                     (0x00000004)  // Service (R/W) #define SPDRP_UNUSED1             &nb

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • = = = = = =
    === === Convert decimal value to binary ======================================= This code can be used to convert values to binary format (bits: zeros and ones). Use toBIN_WORD() function to convert integers (16 bits), and toBIN_BYTE() to convert bytes (8 bits). Visit my Homepage: http://www.geocities.com/emu8086/vb/ Last Update: Thursday, July 11, 2002 Copyright 2002 Alexander Popov Emulation Soft. All rights reserved. http://www.geocities.com/emu8086/- === === === === Convert decimal value to binary ======================================= This code can be used to convert values to binary format (bits: zeros and ones). Use toBIN_WORD() function to convert integers (16 bits), and toBIN_BYTE() to convert bytes (8 bits). Visit my Homepage: http://www.geocities.com/emu8086/vb/ Last Update: Thursday, July 11, 2002 Copyright 2002 Alexander Popov Emulation Sof
    2022-06-17 10:10:48下载
    积分:1
  • 时间精确计算程序 时间精确计算程序
    时间精确计算程序 时间精确计算程序-time to time accurate calculation procedures accurate calculation procedure time accurate calculation procedures
    2022-11-17 14:50:03下载
    积分:1
  • 单系统已注册的文件类型及其关联的程序包括…
    列举系统中已经注册的文档类型及其关联程序的类-list system has registered the document type and its associated procedures category
    2022-03-04 07:13:48下载
    积分:1
  • 给其它进程发消息
    如果你的windows程序主线程进入一个比较长时间的处理过程,同时不想用其它的线程等方法进行处理,又想能控制程序停止处理,则可以考虑从其它进程向主程序发送消息进行控制,在主程序的处理循环中进行检测。本程序是从外部发送消息的一个小程序,有一个小汽车的界面,有两个控制按钮,有时间进度显示,有一个小动画。
    2022-05-21 06:23:35下载
    积分:1
  • V0.8版新增加了:英文关键词建议,根据本地tags、文章标题和文章内容通过YahooAPI进行关键词解析,最终获得Yahoo建议的英文关键词组合。...
    V0.8版新增加了:英文关键词建议,根据本地tags、文章标题和文章内容通过YahooAPI进行关键词解析,最终获得Yahoo建议的英文关键词组合。-An increase of the new v0.8 version: English Keywords recommendations, in accordance with local tags, article title and article content for keywords through YahooAPI analysis, eventually Yahoo English Keywords combinations.
    2023-06-09 07:55:03下载
    积分:1
  • 是一个可以将EXE 文件还原成源码的小程序
    是一个可以将EXE 文件还原成源码的小程序-is an EXE file can be reduced to a small program FOSS
    2022-07-25 14:44:24下载
    积分:1
  • vb6 spy
    vb6源码,取得窗口句柄和画面,最大化最小化窗口或者修改窗口的大小(对于内容显示不全或者窗口内可见范围外还有控件的情况特别有用),修改按钮的可用性等等。
    2022-02-03 17:39:35下载
    积分:1
  • 模拟固定分区存储管理的分配与回收。固定分区就是把内存区固定地划分为若干个大小不等的区域。分区一旦划分结束,在整个执行过程中每个分区的长度和内存的总分区个数将保持...
    模拟固定分区存储管理的分配与回收。固定分区就是把内存区固定地划分为若干个大小不等的区域。分区一旦划分结束,在整个执行过程中每个分区的长度和内存的总分区个数将保持不变。当用户进程提出内存分配要求时,找到满足要求的分区分给它,进程执行完后,回收进程和它占有的资源-Simulation regular distribution and recovery which stores management of dividing into area. The regular assigning to area divides the memory district into several areas not of uniform size regularly. Divide and is over in the dividing area, the number of total points area of the length and memory of the each one area will keep intact in the whole course of carrying out. When user s process proposes the demand of assigning of the memory , find fen meeting the demands to distinguish to it, after the process is carried out, retrieve the process and resource which it occupy
    2022-10-19 20:15:03下载
    积分:1
  • ORK LIBRARY
    最好的地理数据库之一;
    2022-06-13 12:04:25下载
    积分:1
  • 学校小型系统,仅供学习。希望多多指教,本人学编程的,对编程特别感兴趣。...
    学校小型系统,仅供学习。希望多多指教,本人学编程的,对编程特别感兴趣。-School mini-systems, only to learn.
    2022-02-26 18:23:19下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载