Fix call convension for the ProcexpOpenProcess function and support for the 32-bit version.

This commit is contained in:
silverf0x 2019-01-20 18:04:09 +01:00
parent 02d0fd419a
commit f98dad4db2
1 changed files with 2 additions and 2 deletions

View File

@ -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);