| 124 | } |
| 125 | |
| 126 | bool IsBootstrapper(HANDLE process, HMODULE module) { |
| 127 | // Try to get name |
| 128 | char name[1024]; |
| 129 | if (!GetModuleFileNameEx(process, module, name, sizeof(name))) { |
| 130 | return false; |
| 131 | } |
| 132 | |
| 133 | // Bootstrapper? |
| 134 | return std::ends_with(name, "GRS.Backends.DX12.BootstrapperX64.dll") || std::ends_with(name, "GRS.Backends.DX12.BootstrapperX32.dll"); |
| 135 | } |
| 136 | |
| 137 | bool RemoteLoadBootstrapper(PTHREAD_START_ROUTINE loadLibraryAGPA, const std::string& sessionPathStrX64, const std::string& sessionPathStrX86, const char* processName, DWORD processId) { |
| 138 | // Try to open process |
no test coverage detected