Fix call convension for the ProcexpOpenProcess function and support for the 32-bit version.
This commit is contained in:
parent
02d0fd419a
commit
f98dad4db2
|
@ -22,10 +22,10 @@ typedef struct _LanguageCodePage_T {
|
|||
|
||||
HANDLE hProcexp = NULL;
|
||||
|
||||
HANDLE ProcexpOpenProcess(DWORD dwDesiredAccess, BOOL bInheritHandle, DWORD dwProcessId)
|
||||
HANDLE WINAPI ProcexpOpenProcess(DWORD dwDesiredAccess, BOOL bInheritHandle, DWORD dwProcessId)
|
||||
{
|
||||
HANDLE hProcess = NULL;
|
||||
UINT64 Pid = dwProcessId;
|
||||
HANDLE Pid = (HANDLE)(uintptr_t)dwProcessId;
|
||||
DWORD Bytes;
|
||||
|
||||
hProcess = OpenProcess(dwDesiredAccess, bInheritHandle, dwProcessId);
|
||||
|
|
Loading…
Reference in New Issue