-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentry.cpp
More file actions
42 lines (32 loc) · 856 Bytes
/
Copy pathentry.cpp
File metadata and controls
42 lines (32 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include "includes.h"
#include "MenuFonts.h"
t_Username GetUsername;
DWORD installed;
class init_font
{
public:
init_font(void* font, uint32_t length)
{
if (handle = AddFontMemResourceEx(font, length, nullptr, &installed); handle == nullptr)
return;
VirtualProtect(font, length, PAGE_READWRITE, 0);
memset(font, 0, length);
}
private:
HANDLE handle;
};
int __stdcall DllMain( HMODULE self, ulong_t reason, void *reserved ) {
if( reason == DLL_PROCESS_ATTACH ) {
#ifndef KOLO
HANDLE thread = CreateThread( nullptr, 0, Client::init, nullptr, 0, nullptr );
if( !thread )
return 0;
init_font(static_cast<void*>(astriumwep), sizeof(astriumwep));
// CloseHandle( thread );
#else
Client::init( nullptr );
#endif
return 1;
}
return 0;
}