How can I determine the type of a particular drive?

后端 未结 3 421
予麋鹿
予麋鹿 2020-12-21 20:28

I feel somewhat noob yet with this of getting the Information of Hardware of the CPU, so i come with this request: Hard Drive, CD/DVD/Bluray reader, Floppy and if it\'s poss

3条回答
  •  清酒与你
    2020-12-21 21:01

    The only all-in-one API I know of for Windows with that information is WMI, but it's not terribly simple to use. On the other hand, many programs communicate with devices directly, using pass-through control codes, or I/O control codes like SMART_RCV_DRIVE_DATA.

    (I don't know how Speccy works, but I'm guessing it uses a combination of these methods to get the system info needed.)

提交回复
热议问题