| 22 | static PMTraceSession* gPMTraceSession = nullptr; |
| 23 | |
| 24 | static bool LoadNVDDManifest() |
| 25 | { |
| 26 | WCHAR CurrModuleDirW[MAX_PATH]; |
| 27 | if (!GetModuleFileNameW(NULL, CurrModuleDirW, MAX_PATH)) { |
| 28 | PrintError(L"error: failed to get exe fullpath\n"); |
| 29 | return false; |
| 30 | } |
| 31 | |
| 32 | std::wstring mypath = CurrModuleDirW; |
| 33 | auto status = TdhLoadManifestFromBinary(&mypath[0]); |
| 34 | if (ERROR_SUCCESS != status) |
| 35 | { |
| 36 | PrintError(L"error: failed to load manifest embedded in %s\n", mypath.c_str()); |
| 37 | return false; |
| 38 | } |
| 39 | return true; |
| 40 | } |
| 41 | |
| 42 | static bool EnableScrollLock(bool enable) |
| 43 | { |