From 3ae44f72b9c5b10a2358f769c819953082c398c8 Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Tue, 24 Aug 2004 18:46:05 +0000 Subject: [PATCH] Added GetProcessId. --- dlls/kernel/kernel32.spec | 1 + dlls/kernel/krnl386.exe.spec | 2 +- dlls/kernel/process.c | 3 ++- include/winbase.h | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dlls/kernel/kernel32.spec b/dlls/kernel/kernel32.spec index 3523e801b31..fb5a6e3b5bf 100644 --- a/dlls/kernel/kernel32.spec +++ b/dlls/kernel/kernel32.spec @@ -1092,6 +1092,7 @@ @ stdcall FindActCtxSectionStringA(long ptr long str ptr) @ stdcall FindActCtxSectionStringW(long ptr long wstr ptr) @ stdcall GetCurrentActCtx(ptr) +@ stdcall GetProcessId(long) @ stdcall QueryActCtxW(long ptr ptr long ptr long ptr) @ stdcall ReleaseActCtx(ptr) @ stdcall ZombifyActCtx(ptr) diff --git a/dlls/kernel/krnl386.exe.spec b/dlls/kernel/krnl386.exe.spec index 429ea5bb2ab..a1dc1a2b6eb 100644 --- a/dlls/kernel/krnl386.exe.spec +++ b/dlls/kernel/krnl386.exe.spec @@ -385,7 +385,7 @@ 480 pascal -ret16 _EnterWin16Lock() _EnterWin16Lock 481 pascal -ret16 _LeaveWin16Lock() _LeaveWin16Lock 482 pascal LoadSystemLibrary32(str) LoadLibrary32_16 # FIXME! -483 pascal MapProcessHandle(long) MapProcessHandle +483 pascal MapProcessHandle(long) GetProcessId 484 pascal SetProcessDword(long s_word long) SetProcessDword 485 pascal GetProcessDword(long s_word) GetProcessDword 486 pascal FreeLibrary32(long) FreeLibrary diff --git a/dlls/kernel/process.c b/dlls/kernel/process.c index 284983e7925..3c3f4f83d99 100644 --- a/dlls/kernel/process.c +++ b/dlls/kernel/process.c @@ -2399,8 +2399,9 @@ HANDLE WINAPI OpenProcess( DWORD access, BOOL inherit, DWORD id ) /********************************************************************* * MapProcessHandle (KERNEL.483) + * GetProcessId (KERNEL32.@) */ -DWORD WINAPI MapProcessHandle( HANDLE hProcess ) +DWORD WINAPI GetProcessId( HANDLE hProcess ) { NTSTATUS status; PROCESS_BASIC_INFORMATION pbi; diff --git a/include/winbase.h b/include/winbase.h index fab240ffb7f..3685046d929 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -1415,6 +1415,7 @@ BOOL WINAPI GetNumberOfEventLogRecords(HANDLE,PDWORD); BOOL WINAPI GetOldestEventLogRecord(HANDLE,PDWORD); DWORD WINAPI GetPriorityClass(HANDLE); BOOL WINAPI GetProcessAffinityMask(HANDLE,PDWORD,PDWORD); +DWORD WINAPI GetProcessId(HANDLE); BOOL WINAPI GetProcessIoCounters(HANDLE,PIO_COUNTERS); BOOL WINAPI GetProcessPriorityBoost(HANDLE,PBOOL); BOOL WINAPI GetProcessShutdownParameters(LPDWORD,LPDWORD); @@ -1977,7 +1978,6 @@ HANDLE WINAPI DosFileHandleToWin32Handle(HFILE); DWORD WINAPI GetProcessDword(DWORD,INT); VOID WINAPI GetpWin16Lock(SYSLEVEL**); DWORD WINAPI MapLS(LPCVOID); -DWORD WINAPI MapProcessHandle(HANDLE); LPVOID WINAPI MapSL(DWORD); VOID WINAPI ReleaseThunkLock(DWORD*); VOID WINAPI RestoreThunkLock(DWORD);