-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathCMClasses.pas
More file actions
130 lines (101 loc) · 2.55 KB
/
CMClasses.pas
File metadata and controls
130 lines (101 loc) · 2.55 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
unit CMClasses;
interface
uses windows, sysutils, classes;
type
TProcNameInfo = record
PID: cardinal;
Nome: AnsiString;
IsHidden: boolean;
end;
type
TAutoSelector = record
pid: cardinal;
indice: integer;
end;
type
_MODULEINFO = packed record
lpBaseOfDll: Pointer;
SizeOfImage: DWORD;
EntryPoint: Pointer;
end;
TModuleInfo = _MODULEINFO;
LPMODULEINFO = ^_MODULEINFO;
TCMProcessInfo = record
BaseAddress: Cardinal;
TotalSize: Cardinal;
EntryPoint: Cardinal;
end;
TProcessName = record
Pacote: AnsiString;
Processos: array of AnsiString;
end;
TMatrizInfo = record
Numero1: cardinal;
Numero2: cardinal;
String1: pAnsichar;
end;
TPluginUpdate = record
Arquivo: AnsiString;
Replaced: AnsiString;
Data: AnsiString;
Size: int64;
Nivel: byte;
UpVersion: integer;
Exepts: array of AnsiString;
end;
TMbox = record
texto: AnsiString;
titulo: AnsiString;
icone: AnsiString;
end;
TMDigital = record
texto: AnsiString;
cor: DWORD;
repetir: integer;
urgente: boolean;
piscando: boolean;
end;
TApiMode = (AM_User, AM_Kernel, AM_Service);
type TByteArray = array of byte;
PByteArray = ^TByteArray;
//*****************************************************************************
//
//*****************************************************************************
var
PSAPI: Cardinal;
EnumProcessModules : function (hProcess: THandle; lphModule: LPDWORD; cb: DWORD;
var lpcbNeeded: DWORD): BOOL; stdcall;
GetModuleFileNameEx : function (hProcess: THandle; hModule: HMODULE;
lpFilename: PChar; nSize: DWORD): DWORD;
GetModuleInformation : function(hProcess: THandle; hModule: HMODULE;
lpmodinfo: LPMODULEINFO; cb: DWORD): BOOL;
implementation
uses Utils;
initialization
begin
//{$I VMProtectBegin.inc}
{
try
PSApi := LoadLibrary(PChar(PsapiDir));
if PSApi <> 0 then
begin
try
@EnumProcessModules := GetProcAddress(PSAPI, 'EnumProcessModules');
@GetModuleFileNameEx := GetProcAddress(PSAPI, 'GetModuleFileNameEx');
@GetModuleInformation := GetProcAddress(PSAPI, 'GetModuleInformation');
except
on e: exception do
begin
MessageBox(0,PChar(Constante(0014, true)),'Erro',0);
end;
end;
end;
except
on e: exception do
begin
MessageBox(0,PChar(Constante(0014, true)),'Erro',0);
end;
end; }
//{$I VMProtectEnd.inc}
end;
end.