native: getDeviceID and getDeviceInfo

This commit is contained in:
HolographicHat
2022-04-05 02:22:01 +08:00
parent e4e76286c9
commit bb4d5215f1
14 changed files with 2385 additions and 4 deletions

14
native/src/define.h Normal file
View File

@@ -0,0 +1,14 @@
#pragma once
#include <string>
#include <iostream>
#include <napi.h>
#include <Windows.h>
#include <TlHelp32.h>
using std::string, std::wstring, std::cout, std::to_string;
using Napi::Object, Napi::Env, Napi::Function, Napi::Value, Napi::CallbackInfo, Napi::TypeError, Napi::Error;
typedef unsigned char byte;
typedef unsigned long ul;
typedef unsigned long long ull;