diff --git a/reactos/lib/kernel32/misc/stubs.c b/reactos/lib/kernel32/misc/stubs.c index 50b7fb7ef26..2edf5363584 100644 --- a/reactos/lib/kernel32/misc/stubs.c +++ b/reactos/lib/kernel32/misc/stubs.c @@ -1,4 +1,4 @@ -/* $Id: stubs.c,v 1.63 2004/03/14 09:21:41 weiden Exp $ +/* $Id: stubs.c,v 1.64 2004/03/14 11:11:17 weiden Exp $ * * KERNEL32.DLL stubs (unimplemented functions) * Remove from this file, if you implement them. @@ -956,19 +956,6 @@ GetProcessHandleCount( return 0; } -/* - * @unimplemented - */ -DWORD -STDCALL -GetProcessId( - HANDLE Process - ) -{ - SetLastError(ERROR_CALL_NOT_IMPLEMENTED); - return 0; -} - /* * @unimplemented */ diff --git a/reactos/lib/kernel32/process/proc.c b/reactos/lib/kernel32/process/proc.c index f80e9379086..a8091a8374a 100644 --- a/reactos/lib/kernel32/process/proc.c +++ b/reactos/lib/kernel32/process/proc.c @@ -1,4 +1,4 @@ -/* $Id: proc.c,v 1.59 2004/01/23 21:16:04 ekohl Exp $ +/* $Id: proc.c,v 1.60 2004/03/14 11:11:17 weiden Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -314,6 +314,23 @@ InternalGetProcessId(HANDLE hProcess, } +/* + * @implemented + */ +DWORD +STDCALL +GetProcessId(HANDLE Process) +{ + DWORD ProcessId; + + if(!InternalGetProcessId(Process, &ProcessId)) + { + return 0; + } + return ProcessId; +} + + /* * @implemented */