Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

49 rindas
1.4 KiB

  1. // Copyright 2017 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package windows
  5. const (
  6. MEM_COMMIT = 0x00001000
  7. MEM_RESERVE = 0x00002000
  8. MEM_DECOMMIT = 0x00004000
  9. MEM_RELEASE = 0x00008000
  10. MEM_RESET = 0x00080000
  11. MEM_TOP_DOWN = 0x00100000
  12. MEM_WRITE_WATCH = 0x00200000
  13. MEM_PHYSICAL = 0x00400000
  14. MEM_RESET_UNDO = 0x01000000
  15. MEM_LARGE_PAGES = 0x20000000
  16. PAGE_NOACCESS = 0x00000001
  17. PAGE_READONLY = 0x00000002
  18. PAGE_READWRITE = 0x00000004
  19. PAGE_WRITECOPY = 0x00000008
  20. PAGE_EXECUTE = 0x00000010
  21. PAGE_EXECUTE_READ = 0x00000020
  22. PAGE_EXECUTE_READWRITE = 0x00000040
  23. PAGE_EXECUTE_WRITECOPY = 0x00000080
  24. PAGE_GUARD = 0x00000100
  25. PAGE_NOCACHE = 0x00000200
  26. PAGE_WRITECOMBINE = 0x00000400
  27. PAGE_TARGETS_INVALID = 0x40000000
  28. PAGE_TARGETS_NO_UPDATE = 0x40000000
  29. QUOTA_LIMITS_HARDWS_MIN_DISABLE = 0x00000002
  30. QUOTA_LIMITS_HARDWS_MIN_ENABLE = 0x00000001
  31. QUOTA_LIMITS_HARDWS_MAX_DISABLE = 0x00000008
  32. QUOTA_LIMITS_HARDWS_MAX_ENABLE = 0x00000004
  33. )
  34. type MemoryBasicInformation struct {
  35. BaseAddress uintptr
  36. AllocationBase uintptr
  37. AllocationProtect uint32
  38. PartitionId uint16
  39. RegionSize uintptr
  40. State uint32
  41. Protect uint32
  42. Type uint32
  43. }