MCPcopy Create free account
hub / github.com/M2Team/NanaRun / GetCurrentProcessModulePath

Function GetCurrentProcessModulePath

SynthRdp/SynthRdp.cpp:528–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

526namespace
527{
528 std::wstring GetCurrentProcessModulePath()
529 {
530 // 32767 is the maximum path length without the terminating null
531 // character.
532 std::wstring Path(32767, L'\0');
533 Path.resize(::GetModuleFileNameW(
534 nullptr, &Path[0], static_cast<DWORD>(Path.size())));
535 return Path;
536 }
537
538 static std::wstring g_ServiceName =
539 L"SynthRdp";

Callers 1

SynthRdpInstallServiceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected