Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.3 KiB

  1. ;definitions pasted in from WINDOWS.INC for memory management call to KERNEL:
  2. ;
  3. ; Memory manager flags
  4. ;
  5. LMEM_FIXED = 0000h
  6. LMEM_MOVEABLE = 0002h
  7. LMEM_NOCOMPACT = 0010H
  8. LMEM_NODISCARD = 0020H
  9. LMEM_ZEROINIT = 0040h
  10. LMEM_MODIFY = 0080H
  11. LMEM_DISCARDABLE= 0F00h
  12. LHND = LMEM_MOVEABLE+LMEM_ZEROINIT
  13. LPTR = LMEM_FIXED+LMEM_ZEROINIT
  14. ; Flags returned by LocalFlags (in addition to LMEM_DISCARDABLE)
  15. LMEM_DISCARDED = 4000H
  16. LMEM_LOCKCOUNT = 00FFH
  17. NONZEROLHND = LMEM_MOVEABLE
  18. NONZEROLPTR = LMEM_FIXED
  19. LNOTIFY_OUTOFMEM = 0
  20. LNOTIFY_MOVE = 1
  21. LNOTIFY_DISCARD = 2
  22. GMEM_FIXED = 0000h
  23. GMEM_MOVEABLE = 0002h
  24. GMEM_NOCOMPACT = 0010h
  25. GMEM_NODISCARD = 0020h
  26. GMEM_ZEROINIT = 0040h
  27. GMEM_MODIFY = 0080h
  28. GMEM_DISCARDABLE= 0100h
  29. GMEM_NOT_BANKED = 1000h
  30. GMEM_DDESHARE = 2000h
  31. GMEM_SHARE = 2000h
  32. GMEM_NOTIFY = 4000h
  33. GMEM_LOWER = GMEM_NOT_BANKED
  34. GHND = GMEM_MOVEABLE+GMEM_ZEROINIT
  35. GPTR = GMEM_FIXED+GMEM_ZEROINIT
  36. ; Flags returned by GlobalFlags (in addition to GMEM_DISCARDABLE)
  37. GMEM_DISCARDED = 4000h
  38. GMEM_LOCKCOUNT = 00FFh
  39. ; Debug fill constants
  40. DBGFILL_ALLOC equ 0fdh
  41. DBGFILL_FREE equ 0fbh
  42. DBGFILL_BUFFER equ 0f9h
  43. DBGFILL_STACK equ 0f7h