mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
implemented GetProcessId()
svn path=/trunk/; revision=8703
This commit is contained in:
parent
04b43aab9e
commit
85f9fdf39f
2 changed files with 19 additions and 15 deletions
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue