MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / LoadNVDDManifest

Function LoadNVDDManifest

PresentMon/MainThread.cpp:24–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22static PMTraceSession* gPMTraceSession = nullptr;
23
24static 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
42static bool EnableScrollLock(bool enable)
43{

Callers 1

wmainFunction · 0.85

Calls 1

PrintErrorFunction · 0.85

Tested by

no test coverage detected