51 lines
1.3 KiB
PHP
51 lines
1.3 KiB
PHP
;definitions pasted in from WINDOWS.INC for memory management call to KERNEL:
|
|
;
|
|
; Memory manager flags
|
|
;
|
|
LMEM_FIXED = 0000h
|
|
LMEM_MOVEABLE = 0002h
|
|
LMEM_NOCOMPACT = 0010H
|
|
LMEM_NODISCARD = 0020H
|
|
LMEM_ZEROINIT = 0040h
|
|
LMEM_MODIFY = 0080H
|
|
LMEM_DISCARDABLE= 0F00h
|
|
LHND = LMEM_MOVEABLE+LMEM_ZEROINIT
|
|
LPTR = LMEM_FIXED+LMEM_ZEROINIT
|
|
; Flags returned by LocalFlags (in addition to LMEM_DISCARDABLE)
|
|
LMEM_DISCARDED = 4000H
|
|
LMEM_LOCKCOUNT = 00FFH
|
|
|
|
NONZEROLHND = LMEM_MOVEABLE
|
|
NONZEROLPTR = LMEM_FIXED
|
|
|
|
LNOTIFY_OUTOFMEM = 0
|
|
LNOTIFY_MOVE = 1
|
|
LNOTIFY_DISCARD = 2
|
|
|
|
|
|
GMEM_FIXED = 0000h
|
|
GMEM_MOVEABLE = 0002h
|
|
GMEM_NOCOMPACT = 0010h
|
|
GMEM_NODISCARD = 0020h
|
|
GMEM_ZEROINIT = 0040h
|
|
GMEM_MODIFY = 0080h
|
|
GMEM_DISCARDABLE= 0100h
|
|
GMEM_NOT_BANKED = 1000h
|
|
GMEM_DDESHARE = 2000h
|
|
GMEM_SHARE = 2000h
|
|
GMEM_NOTIFY = 4000h
|
|
GMEM_LOWER = GMEM_NOT_BANKED
|
|
GHND = GMEM_MOVEABLE+GMEM_ZEROINIT
|
|
GPTR = GMEM_FIXED+GMEM_ZEROINIT
|
|
|
|
; Flags returned by GlobalFlags (in addition to GMEM_DISCARDABLE)
|
|
GMEM_DISCARDED = 4000h
|
|
GMEM_LOCKCOUNT = 00FFh
|
|
|
|
; Debug fill constants
|
|
|
|
DBGFILL_ALLOC equ 0fdh
|
|
DBGFILL_FREE equ 0fbh
|
|
DBGFILL_BUFFER equ 0f9h
|
|
DBGFILL_STACK equ 0f7h
|