abi.ts 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /** Generic Win32 process, stdio, and Job Object constants verified on x64. */
  2. /** STARTUPINFOW uses the standard input, output, and error handles. */
  3. export const STARTF_USESTDHANDLES = 0x00000100
  4. /** HandleInformation flag that permits child inheritance. */
  5. export const HANDLE_FLAG_INHERIT = 0x1
  6. /** Infinite WaitForSingleObject timeout. */
  7. export const INFINITE = 0xFFFFFFFF
  8. /** CreateProcess flag that prevents user code from running before resume. */
  9. export const CREATE_SUSPENDED = 0x4
  10. /** GetStdHandle selector for standard input. */
  11. export const STD_INPUT_HANDLE = -10
  12. /** GetStdHandle selector for standard output. */
  13. export const STD_OUTPUT_HANDLE = -11
  14. /** GetStdHandle selector for standard error. */
  15. export const STD_ERROR_HANDLE = -12
  16. /** FormatMessage reads the operating system message table. */
  17. export const FORMAT_MESSAGE_FROM_SYSTEM = 0x00001000
  18. /** FormatMessage leaves insertion placeholders uninterpreted. */
  19. export const FORMAT_MESSAGE_IGNORE_INSERTS = 0x00000200
  20. /** Win32 code reporting a caller-provided buffer is too small. */
  21. export const ERROR_INSUFFICIENT_BUFFER = 122
  22. /** Win32 code reporting that the other pipe end closed. */
  23. export const ERROR_BROKEN_PIPE = 109
  24. /** Win32 code reporting that a pipe has no remaining data. */
  25. export const ERROR_NO_DATA = 232
  26. /** Job limit that terminates every member when the final Job handle closes. */
  27. export const JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE = 0x00002000
  28. /** SetInformationJobObject class for JOBOBJECT_EXTENDED_LIMIT_INFORMATION. */
  29. export const JobObjectExtendedLimitInformation = 9
  30. /** x64 JOBOBJECT_EXTENDED_LIMIT_INFORMATION byte size. */
  31. export const JOBOBJECT_EXTENDED_LIMIT_SIZE = 144
  32. /** Byte offset of BasicLimitInformation.LimitFlags in the extended Job record. */
  33. export const JOBOBJECT_EXTENDED_LIMIT_FLAGS_OFFSET = 16
  34. /** x64 STARTUPINFOW byte size verified by the native probe. */
  35. export const STARTUPINFOW_SIZE = 104
  36. /** x64 PROCESS_INFORMATION byte size verified by the native probe. */
  37. export const PROCESS_INFORMATION_SIZE = 24