MCPcopy Create free account
hub / github.com/OpenKneeboard/OpenKneeboard / GetProgramPath

Function GetProgramPath

src/injectables/WindowCaptureHook.cpp:285–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}// namespace OpenKneeboard
284
285static std::wstring GetProgramPath() {
286 wchar_t buffer[1024];
287 const auto pathLen = GetModuleFileNameW(NULL, buffer, std::size(buffer));
288 return {buffer, pathLen};
289}
290
291BOOL WINAPI DllMain(HINSTANCE hinst, DWORD dwReason, LPVOID reserved) {
292 switch (dwReason) {

Callers 1

DllMainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected