Skip to content

Basic example of using win api to get device hardware id etc....

Notifications You must be signed in to change notification settings

WesleyCh3n/WindowsDeviceInfoDumper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Device Info Dumper

This is a minimum c++ example to dump information (hardware ID, manufacturer etc..) about installed device using Windows SDK API.

Build Requirements

Tested with

  • Windows 10 21H2 (1904 build)
  • MSVC 2019
  • CMake 3.21.3

How to Compile?

Clone the repository

git clone https://github.com/WesleyCh3n/WindowsDeviceInfoDumper.git
cd WindowsDeviceInfoDumper

CMake the project

mkdir build && cd build
cmake ..
cmake --build . --config Release

Then the executable will be in ./build/Release/ directory.

Usage

./devInfoDumper <filename>.json

Then there are both stdout and <filename>.json about device information.

Note

If json value showing [Error: #], # is windows system error code. Go check out doc to see what happened.

About

Basic example of using win api to get device hardware id etc....

Topics

Resources

Stars

Watchers

Forks