Files
deepseek-harness/packages/subprocess/win32-process/src/abi.ts
T

53 lines
2.8 KiB
TypeScript

/** Generic Win32 process, stdio, and Job Object constants verified on x64. */
/** STARTUPINFOW uses the standard input, output, and error handles. */
export const STARTF_USESTDHANDLES = 0x00000100
/** STARTUPINFOW applies wShowWindow when creating a console window. */
export const STARTF_USESHOWWINDOW = 0x00000001
/** Initial window visibility that preserves the child's console attachment. */
export const SW_HIDE = 0
/** HandleInformation flag that permits child inheritance. */
export const HANDLE_FLAG_INHERIT = 0x1
/** Infinite WaitForSingleObject timeout. */
export const INFINITE = 0xFFFFFFFF
/** WaitForSingleObject returned because a zero-time probe is not signalled. */
export const WAIT_TIMEOUT = 258
/** CreateProcess flag that prevents user code from running before resume. */
export const CREATE_SUSPENDED = 0x4
/** CreateProcess flag selecting a UTF-16 environment block. */
export const CREATE_UNICODE_ENVIRONMENT = 0x400
/** GetStdHandle selector for standard input. */
export const STD_INPUT_HANDLE = -10
/** GetStdHandle selector for standard output. */
export const STD_OUTPUT_HANDLE = -11
/** GetStdHandle selector for standard error. */
export const STD_ERROR_HANDLE = -12
/** FormatMessage reads the operating system message table. */
export const FORMAT_MESSAGE_FROM_SYSTEM = 0x00001000
/** FormatMessage leaves insertion placeholders uninterpreted. */
export const FORMAT_MESSAGE_IGNORE_INSERTS = 0x00000200
/** Win32 code reporting a caller-provided buffer is too small. */
export const ERROR_INSUFFICIENT_BUFFER = 122
/** Win32 code reporting that the other pipe end closed. */
export const ERROR_BROKEN_PIPE = 109
/** Win32 code reporting that a pipe has no remaining data. */
export const ERROR_NO_DATA = 232
/** Job limit that terminates every member when the final Job handle closes. */
export const JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE = 0x00002000
/** QueryInformationJobObject class for basic accounting and active-process count. */
export const JobObjectBasicAccountingInformation = 1
/** SetInformationJobObject class for JOBOBJECT_EXTENDED_LIMIT_INFORMATION. */
export const JobObjectExtendedLimitInformation = 9
/** x64 JOBOBJECT_BASIC_ACCOUNTING_INFORMATION byte size. */
export const JOBOBJECT_BASIC_ACCOUNTING_SIZE = 48
/** Byte offset of ActiveProcesses in JOBOBJECT_BASIC_ACCOUNTING_INFORMATION. */
export const JOBOBJECT_BASIC_ACCOUNTING_ACTIVE_PROCESSES_OFFSET = 40
/** x64 JOBOBJECT_EXTENDED_LIMIT_INFORMATION byte size. */
export const JOBOBJECT_EXTENDED_LIMIT_SIZE = 144
/** Byte offset of BasicLimitInformation.LimitFlags in the extended Job record. */
export const JOBOBJECT_EXTENDED_LIMIT_FLAGS_OFFSET = 16
/** x64 STARTUPINFOW byte size verified by the native probe. */
export const STARTUPINFOW_SIZE = 104
/** x64 PROCESS_INFORMATION byte size verified by the native probe. */
export const PROCESS_INFORMATION_SIZE = 24