MCPcopy Create free account
hub / github.com/HoShiMin/Kernel-Bridge / KbGetModuleHandle

Function KbGetModuleHandle

User-Bridge/API/User-Bridge.cpp:1280–1289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1278 }
1279
1280 BOOL WINAPI KbGetModuleHandle(LPCWSTR ModuleName, OUT WdkTypes::HMODULE* hModule)
1281 {
1282 if (!ModuleName || !hModule) return FALSE;
1283 KB_GET_MODULE_HANDLE_IN Input = {};
1284 KB_GET_MODULE_HANDLE_OUT Output = {};
1285 Input.ModuleName = reinterpret_cast<WdkTypes::LPCWSTR>(ModuleName);
1286 BOOL Status = KbSendRequest(Ctls::KbGetModuleHandle, &Input, sizeof(Input), &Output, sizeof(Output));
1287 *hModule = Output.hModule;
1288 return Status;
1289 }
1290
1291 BOOL WINAPI KbCallModule(WdkTypes::HMODULE hModule, ULONG CtlCode, OPTIONAL WdkTypes::PVOID Argument)
1292 {

Callers

nothing calls this directly

Calls 1

KbSendRequestFunction · 0.85

Tested by

no test coverage detected