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

Function OnAttach

NoEye/cMain.cpp:7–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5namespace CMain
6{
7 BOOL OnAttach(HMODULE hDll)
8 {
9
10 std::array<char, MAX_PATH> szError;
11 BOOL Status = false;
12 if (GetModuleHandleA("BEService.exe"))
13 {
14 Status = BE::Kernelmode::XDriver::GetInstance()->Init();
15 if (Status != TRUE)
16 {
17 sprintf_s(szError.data(), szError.size(), "Failed to initialize BattlEye Bypass (errorcode : %i)", GetLastError());
18 OutputDebugStringA(szError.data());
19 }
20 }
21
22 return Status;
23 }
24 BOOL OnDetach()
25 {
26

Callers 1

DllMainFunction · 0.85

Calls 1

InitMethod · 0.80

Tested by

no test coverage detected