MCPcopy Create free account
hub / github.com/Schnocker/NoEye / OnDetach

Function OnDetach

NoEye/cMain.cpp:24–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 return Status;
23 }
24 BOOL OnDetach()
25 {
26
27 std::array<char, MAX_PATH> szError;
28 BOOL Status = false;
29 if (GetModuleHandleA("BEService.exe"))
30 {
31 Status = BE::Kernelmode::XDriver::GetInstance()->Uninit();
32 if (Status != TRUE)
33 {
34 sprintf_s(szError.data(), szError.size(), "Failed to uninitialize BattlEye Bypass (errorcode : %i)", GetLastError());
35 OutputDebugStringA(szError.data());
36 }
37 }
38
39 return Status;
40 }
41}
42
43BOOL WINAPI DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpReserved)

Callers 1

DllMainFunction · 0.85

Calls 1

UninitMethod · 0.80

Tested by

no test coverage detected