Returns the path to the module file identified by the specified handle.
| 101 | /// Returns the path to the module file identified by the specified <paramref name="module"/> handle. |
| 102 | /// </summary> |
| 103 | std::filesystem::path get_module_path(HMODULE module) |
| 104 | { |
| 105 | WCHAR buf[4096]; |
| 106 | return std::filesystem::path(buf, buf + GetModuleFileNameW(module, buf, ARRAYSIZE(buf))); |
| 107 | } |
| 108 | |
| 109 | #ifndef RESHADE_TEST_APPLICATION |
| 110 |
no outgoing calls