APIProcConstants.au3 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. #include-once
  2. ; #INDEX# =======================================================================================================================
  3. ; Title .........: WinAPIProc Constants UDF Library for AutoIt3
  4. ; AutoIt Version : 3.3.14.5
  5. ; Language ......: English
  6. ; Description ...: Constants that can be used with UDF library
  7. ; Author(s) .....: Yashied, Jpm
  8. ; ===============================================================================================================================
  9. ; #CONSTANTS# ===================================================================================================================
  10. ; _WinAPI_CreateProcess(), _WinAPI_CreateProcessWithToken()
  11. Global Const $CREATE_BREAKAWAY_FROM_JOB = 0x01000000
  12. Global Const $CREATE_DEFAULT_ERROR_MODE = 0x04000000
  13. Global Const $CREATE_NEW_CONSOLE = 0x00000010
  14. Global Const $CREATE_NEW_PROCESS_GROUP = 0x00000200
  15. Global Const $CREATE_NO_WINDOW = 0x08000000
  16. Global Const $CREATE_PROTECTED_PROCESS = 0x00040000
  17. Global Const $CREATE_PRESERVE_CODE_AUTHZ_LEVEL = 0x02000000
  18. Global Const $CREATE_SEPARATE_WOW_VDM = 0x00000800
  19. Global Const $CREATE_SHARED_WOW_VDM = 0x00001000
  20. Global Const $CREATE_SUSPENDED = 0x00000004
  21. Global Const $CREATE_UNICODE_ENVIRONMENT = 0x00000400
  22. ; move in SecurityConstants.au3
  23. ; Global Const $LOGON_WITH_PROFILE = 0x01
  24. ; Global Const $LOGON_NETCREDENTIALS_ONLY = 0x02
  25. ; _WinAPI_EnumProcessModules()
  26. Global Const $LIST_MODULES_32BIT = 1
  27. Global Const $LIST_MODULES_64BIT = 2
  28. Global Const $LIST_MODULES_ALL = 3
  29. Global Const $LIST_MODULES_DEFAULT = 0
  30. ; _WinAPI_GetPriorityClass(), _WinAPI_SetPriorityClass()
  31. Global Const $ABOVE_NORMAL_PRIORITY_CLASS = 0x00008000
  32. Global Const $BELOW_NORMAL_PRIORITY_CLASS = 0x00004000
  33. Global Const $HIGH_PRIORITY_CLASS = 0x00000080
  34. Global Const $IDLE_PRIORITY_CLASS = 0x00000040
  35. Global Const $NORMAL_PRIORITY_CLASS = 0x00000020
  36. Global Const $REALTIME_PRIORITY_CLASS = 0x00000100
  37. Global Const $PROCESS_MODE_BACKGROUND_BEGIN = 0x00100000
  38. Global Const $PROCESS_MODE_BACKGROUND_END = 0x00200000
  39. ; _WinAPI_OpenMutex()
  40. Global Const $MUTEX_MODIFY_STATE = 0x0001
  41. Global Const $MUTEX_ALL_ACCESS = 0x001F0001 ; BitOR($STANDARD_RIGHTS_ALL, $MUTEX_MODIFY_STATE)
  42. ; _WinAPI_OpenJobObject(), _WinAPI_QueryInformationJobObject(), _WinAPI_SetInformationJobObject()
  43. Global Const $JOB_OBJECT_ASSIGN_PROCESS = 0x0001
  44. Global Const $JOB_OBJECT_QUERY = 0x0004
  45. Global Const $JOB_OBJECT_SET_ATTRIBUTES = 0x0002
  46. Global Const $JOB_OBJECT_SET_SECURITY_ATTRIBUTES = 0x0010
  47. Global Const $JOB_OBJECT_TERMINATE = 0x0008
  48. Global Const $JOB_OBJECT_ALL_ACCESS = 0x001F001F ; BitOR($STANDARD_RIGHTS_ALL, $JOB_OBJECT_ASSIGN_PROCESS, $JOB_OBJECT_QUERY, $JOB_OBJECT_SET_ATTRIBUTES, $JOB_OBJECT_SET_SECURITY_ATTRIBUTES, $JOB_OBJECT_TERMINATE)
  49. Global Const $JOB_OBJECT_LIMIT_ACTIVE_PROCESS = 0x00000008
  50. Global Const $JOB_OBJECT_LIMIT_AFFINITY = 0x00000010
  51. Global Const $JOB_OBJECT_LIMIT_BREAKAWAY_OK = 0x00000800
  52. Global Const $JOB_OBJECT_LIMIT_DIE_ON_UNHANDLED_EXCEPTION = 0x00000400
  53. Global Const $JOB_OBJECT_LIMIT_JOB_MEMORY = 0x00000200
  54. Global Const $JOB_OBJECT_LIMIT_JOB_TIME = 0x00000004
  55. Global Const $JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE = 0x00002000
  56. Global Const $JOB_OBJECT_LIMIT_PRESERVE_JOB_TIME = 0x00000040
  57. Global Const $JOB_OBJECT_LIMIT_PRIORITY_CLASS = 0x00000020
  58. Global Const $JOB_OBJECT_LIMIT_PROCESS_MEMORY = 0x00000100
  59. Global Const $JOB_OBJECT_LIMIT_PROCESS_TIME = 0x00000002
  60. Global Const $JOB_OBJECT_LIMIT_SCHEDULING_CLASS = 0x00000080
  61. Global Const $JOB_OBJECT_LIMIT_SILENT_BREAKAWAY_OK = 0x00001000
  62. Global Const $JOB_OBJECT_LIMIT_WORKINGSET = 0x00000001
  63. Global Const $JOB_OBJECT_UILIMIT_DESKTOP = 0x00000040
  64. Global Const $JOB_OBJECT_UILIMIT_DISPLAYSETTINGS = 0x00000010
  65. Global Const $JOB_OBJECT_UILIMIT_EXITWINDOWS = 0x00000080
  66. Global Const $JOB_OBJECT_UILIMIT_GLOBALATOMS = 0x00000020
  67. Global Const $JOB_OBJECT_UILIMIT_HANDLES = 0x00000001
  68. Global Const $JOB_OBJECT_UILIMIT_READCLIPBOARD = 0x00000002
  69. Global Const $JOB_OBJECT_UILIMIT_SYSTEMPARAMETERS = 0x00000008
  70. Global Const $JOB_OBJECT_UILIMIT_WRITECLIPBOARD = 0x00000004
  71. Global Const $JOB_OBJECT_SECURITY_FILTER_TOKENS = 0x00000008
  72. Global Const $JOB_OBJECT_SECURITY_NO_ADMIN = 0x00000001
  73. Global Const $JOB_OBJECT_SECURITY_ONLY_TOKEN = 0x00000004
  74. Global Const $JOB_OBJECT_SECURITY_RESTRICTED_TOKEN = 0x00000002
  75. Global Const $JOB_OBJECT_TERMINATE_AT_END_OF_JOB = 0
  76. Global Const $JOB_OBJECT_POST_AT_END_OF_JOB = 1
  77. ; _WinAPI_OpenSemaphore()
  78. Global Const $SEMAPHORE_MODIFY_STATE = 0x0002
  79. Global Const $SEMAPHORE_QUERY_STATE = 0x0001
  80. Global Const $SEMAPHORE_ALL_ACCESS = 0x001F0003 ; BitOR($STANDARD_RIGHTS_ALL, $SEMAPHORE_MODIFY_STATE, $SEMAPHORE_QUERY_STATE)
  81. ; _WinAPI_SetThreadExecutionState()
  82. Global Const $ES_AWAYMODE_REQUIRED = 0x00000040
  83. Global Const $ES_CONTINUOUS = 0x80000000
  84. Global Const $ES_DISPLAY_REQUIRED = 0x00000002
  85. Global Const $ES_SYSTEM_REQUIRED = 0x00000001
  86. Global Const $ES_USER_PRESENT = 0x00000004
  87. ; ===============================================================================================================================