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.

memory_windows.go 890B

12345678910111213141516171819202122232425262728293031
  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 = 0x01
  17. PAGE_READONLY = 0x02
  18. PAGE_READWRITE = 0x04
  19. PAGE_WRITECOPY = 0x08
  20. PAGE_EXECUTE_READ = 0x20
  21. PAGE_EXECUTE_READWRITE = 0x40
  22. PAGE_EXECUTE_WRITECOPY = 0x80
  23. QUOTA_LIMITS_HARDWS_MIN_DISABLE = 0x00000002
  24. QUOTA_LIMITS_HARDWS_MIN_ENABLE = 0x00000001
  25. QUOTA_LIMITS_HARDWS_MAX_DISABLE = 0x00000008
  26. QUOTA_LIMITS_HARDWS_MAX_ENABLE = 0x00000004
  27. )