mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 17:56:00 +00:00
added EngGetCurrentProcessId() and EngGetCurrentThreadId()
svn path=/trunk/; revision=8155
This commit is contained in:
parent
3c0afd1a21
commit
e83ebbae2d
4 changed files with 31 additions and 16 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: misc.c,v 1.3 2004/02/10 23:40:55 gvg Exp $ */
|
||||
/* $Id: misc.c,v 1.4 2004/02/11 19:26:51 weiden Exp $ */
|
||||
#include <ddk/winddi.h>
|
||||
#include <include/dib.h>
|
||||
#include <include/object.h>
|
||||
|
@ -192,4 +192,28 @@ IntEngLeave(PINTENG_ENTER_LEAVE EnterLeave)
|
|||
|
||||
return Result;
|
||||
}
|
||||
|
||||
HANDLE STDCALL
|
||||
EngGetCurrentProcessId(VOID)
|
||||
{
|
||||
/* http://www.osr.com/ddk/graphics/gdifncs_5ovb.htm */
|
||||
return PsGetCurrentProcessId();
|
||||
}
|
||||
|
||||
HANDLE STDCALL
|
||||
EngGetCurrentThreadId(VOID)
|
||||
{
|
||||
/* http://www.osr.com/ddk/graphics/gdifncs_25rb.htm */
|
||||
return PsGetCurrentThreadId();
|
||||
}
|
||||
|
||||
HANDLE STDCALL
|
||||
EngGetProcessHandle(VOID)
|
||||
{
|
||||
/* http://www.osr.com/ddk/graphics/gdifncs_3tif.htm
|
||||
In Windows 2000 and later, the EngGetProcessHandle function always returns NULL.
|
||||
FIXME - what does NT4 return? */
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -411,19 +411,6 @@ EngGetPrinterDataFileName ( IN HDEV hdev )
|
|||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* @unimplemented ( for NT4 only )
|
||||
*/
|
||||
HANDLE
|
||||
STDCALL
|
||||
EngGetProcessHandle ( VOID )
|
||||
{
|
||||
// www.osr.com/ddk/graphics/gdifncs_3tif.htm
|
||||
// In Windows 2000 and later, the EngGetProcessHandle function always returns NULL.
|
||||
// FIXME - what does NT4 return?
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; $Id: win32k.def,v 1.23 2004/02/08 21:37:52 weiden Exp $
|
||||
; $Id: win32k.def,v 1.24 2004/02/11 19:26:51 weiden Exp $
|
||||
;
|
||||
; win32k.def
|
||||
;
|
||||
|
@ -50,6 +50,8 @@ EngFreeMem@4
|
|||
EngFreeModule@4
|
||||
EngFreeUserMem@4
|
||||
EngGetCurrentCodePage@8
|
||||
EngGetCurrentProcessId@0
|
||||
EngGetCurrentThreadId@0
|
||||
EngGetDriverName@4
|
||||
EngGetFileChangeTime@8
|
||||
EngGetFilePath@8
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; $Id: win32k.edf,v 1.19 2004/02/08 21:37:52 weiden Exp $
|
||||
; $Id: win32k.edf,v 1.20 2004/02/11 19:26:51 weiden Exp $
|
||||
;
|
||||
; win32k.def
|
||||
;
|
||||
|
@ -50,6 +50,8 @@ EngFreeMem=EngFreeMem@4
|
|||
EngFreeModule=EngFreeModule@4
|
||||
EngFreeUserMem=EngFreeUserMem@4
|
||||
EngGetCurrentCodePage=EngGetCurrentCodePage@8
|
||||
EngGetCurrentProcessId=EngGetCurrentProcessId@0
|
||||
EngGetCurrentThreadId=EngGetCurrentThreadId@0
|
||||
EngGetDriverName=EngGetDriverName@4
|
||||
EngGetFileChangeTime=EngGetFileChangeTime@8
|
||||
EngGetFilePath=EngGetFilePath@8
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue