implemented GetProcessId()

svn path=/trunk/; revision=8703
This commit is contained in:
Thomas Bluemel 2004-03-14 11:11:17 +00:00
parent 04b43aab9e
commit 85f9fdf39f
2 changed files with 19 additions and 15 deletions

View file

@ -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
*/

View file

@ -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
*/