mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 06:15:52 +00:00
Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.
This commit is contained in:
parent
b94e2d8ca0
commit
c2c66aff7d
24198 changed files with 0 additions and 37285 deletions
6
modules/rostests/win32/win32k/setup.c
Normal file
6
modules/rostests/win32/win32k/setup.c
Normal file
|
@ -0,0 +1,6 @@
|
|||
#include <windows.h>
|
||||
#include "regtests.h"
|
||||
|
||||
_SetupOnce()
|
||||
{
|
||||
}
|
48
modules/rostests/win32/win32k/tests/eng-mem-1.c
Normal file
48
modules/rostests/win32/win32k/tests/eng-mem-1.c
Normal file
|
@ -0,0 +1,48 @@
|
|||
#include <ntddk.h>
|
||||
#include <winddi.h>
|
||||
|
||||
#include "regtests.h"
|
||||
|
||||
static void RunTest()
|
||||
{
|
||||
#if 0
|
||||
VOID *pmem1, *pmem2;
|
||||
ULONG AllocSize1, AllocSize2;
|
||||
ULONG AllocTag1, AllocTag2;
|
||||
HANDLE Handle1, Handle2;
|
||||
|
||||
/* Allocate memory with EngAllocMem */
|
||||
pmem1 = 0;
|
||||
AllocSize1 = 1024;
|
||||
AllocTag1 = 'zyxD';
|
||||
pmem1 = EngAllocMem(FL_ZERO_MEMORY, AllocSize1, AllocTag1);
|
||||
_AssertNotEqualValue(pmem1, NULL);
|
||||
|
||||
/* Allocate memory with EngAllocMem */
|
||||
pmem2 = 0;
|
||||
AllocSize2 = 1024;
|
||||
AllocTag2 = 'zyxD';
|
||||
pmem2 = EngAllocUserMem(AllocSize2, AllocTag2);
|
||||
_AssertNotEqualValue(pmem1, NULL);
|
||||
|
||||
/* Lock down memory with EngSecureMem
|
||||
** Dependant functions in ntoskrnl.exe are currently unimplemented
|
||||
Handle1 = EngSecureMem(pmem1, AllocSize1);
|
||||
_AssertNotEqualValue(pmem1, NULL);
|
||||
Handle2 = EngSecureMem(pmem2, AllocSize2);
|
||||
_AssertNotEqualValue(pmem2, NULL);
|
||||
|
||||
/* Unlock down memory with EngSecureMem
|
||||
** Dependant functions in ntoskrnl.exe are currently unimplemented
|
||||
EngUnsecureMem(Handle1);
|
||||
EngUnsecureMem(Handle2); */
|
||||
|
||||
/* Free memory with EngFreeMem */
|
||||
EngFreeMem(pmem1);
|
||||
|
||||
/* Free memory with EngFreeUserMem */
|
||||
EngFreeUserMem(pmem2);
|
||||
#endif
|
||||
}
|
||||
|
||||
_Dispatcher(Eng_mem_1Test, "Win32k Engine Memory API")
|
Loading…
Add table
Add a link
Reference in a new issue