
11.12.2009, 19:40
|
|
Познающий
Регистрация: 16.07.2008
Сообщений: 82
С нами:
9379631
Репутация:
142
|
|
Сообщение от transserg
НО препод заявляет типа загрузку цп лучше считать с помощью NtQuerySystemInformation для каждого процесса
Это в каком пту?
Код:
.text:7C835241 ; BOOL __stdcall GetProcessTimes(HANDLE hProcess, LPFILETIME lpCreationTime, LPFILETIME lpExitTime, LPFILETIME lpKernelTime, LPFILETIME lpUserTime) .text:7C835241 public GetProcessTimes .text:7C835241 GetProcessTimes proc near
.....
mov edi, edi
.text:7C835243 push ebp
.text:7C835244 mov ebp, esp
.text:7C835246 sub esp, 20h
.text:7C835249 push 0
.text:7C83524B push 20h
.text:7C83524D lea eax, [ebp+var_20]
.text:7C835250 push eax
.text:7C835251 push 4
.text:7C835253 push [ebp+hProcess]
.text:7C835256 call ds:NtQueryInformationProcess
|
|
|