MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / get_library_path

Function get_library_path

source/binding/NodeJS/src/utils/library.cpp:45–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45std::filesystem::path get_library_path(void* addr)
46{
47 WCHAR path_buf[MAX_PATH + 5];
48 DWORD path_len = GetMappedFileNameW(GetCurrentProcess(), addr, path_buf, MAX_PATH);
49
50 if (path_len == 0) {
51 return { };
52 }
53
54 return { NtPathToDosPath(path_buf) };
55}
56
57#else
58

Callers 2

getRuntimeFunction · 0.85
agent_pathMethod · 0.85

Calls 1

NtPathToDosPathFunction · 0.85

Tested by

no test coverage detected