https://github.com/wesleych3n/windowsdeviceinfodumper
Basic example of using win api to get device hardware id etc....
https://github.com/wesleych3n/windowsdeviceinfodumper
cpp device-info example windows-api
Last synced: 7 months ago
JSON representation
Basic example of using win api to get device hardware id etc....
- Host: GitHub
- URL: https://github.com/wesleych3n/windowsdeviceinfodumper
- Owner: WesleyCh3n
- Created: 2022-09-22T08:00:13.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-06T07:04:15.000Z (over 3 years ago)
- Last Synced: 2025-03-23T10:16:51.962Z (10 months ago)
- Topics: cpp, device-info, example, windows-api
- Language: C++
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```bash
git clone https://github.com/WesleyCh3n/WindowsDeviceInfoDumper.git
cd WindowsDeviceInfoDumper
```
CMake the project
```bash
mkdir build && cd build
cmake ..
cmake --build . --config Release
```
Then the executable will be in `./build/Release/` directory.
## Usage
```bash
./devInfoDumper .json
```
Then there are both `stdout` and `.json` about device information.
## Note
If json value showing `[Error: #]`, `#` is [windows system error code](https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499-).
Go check out doc to see what happened.