diff options
| author | boris <wzn@moneybot.cc> | 2018-12-12 12:30:44 +1300 |
|---|---|---|
| committer | boris <wzn@moneybot.cc> | 2018-12-12 12:30:44 +1300 |
| commit | ec4ad61acbe9e67c5e803e0549841dc5ef5cef2a (patch) | |
| tree | f30480f8c0e45b0cd2e0c5cd2f2dbccd54ec70ae /loader/client/util.hpp | |
| parent | a25b6f6b11a3ae44d0c3b19ba8081a3d9eb1ac5f (diff) | |
yas
Diffstat (limited to 'loader/client/util.hpp')
| -rw-r--r-- | loader/client/util.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/loader/client/util.hpp b/loader/client/util.hpp index aabfd69..40255e3 100644 --- a/loader/client/util.hpp +++ b/loader/client/util.hpp @@ -30,4 +30,13 @@ namespace util MessageBoxA(0, error, xors("error"), MB_ICONERROR);
ExitProcess(0);
}
+
+ using ulong_t = DWORD;
+ __forceinline uint32_t get_hwid() { + ulong_t hwid{ }; + + GetVolumeInformationA(xors("C:\\"), 0, 0, &hwid, 0, 0, 0, 0);
+
+ return hwid;
+ }
}
\ No newline at end of file |
