#define global IID_IDebugSystemObjects "{6B86FE2C-2C4F-4F0C-9DA2-174311ACC327}"
#usecom global IDebugSystemObjects IID_IDebugSystemObjects "{}"
#comfunc global IDebugSystemObjects_GetEventThread 3 var
#comfunc global IDebugSystemObjects_GetEventProcess 4 var
#comfunc global IDebugSystemObjects_GetCurrentThreadId 5 var
#comfunc global IDebugSystemObjects_SetCurrentThreadId 6 int
#comfunc global IDebugSystemObjects_GetCurrentProcessId 7 var
#comfunc global IDebugSystemObjects_SetCurrentProcessId 8 int
#comfunc global IDebugSystemObjects_GetNumberThreads 9 var
#comfunc global IDebugSystemObjects_GetTotalNumberThreads 10 var,var
#comfunc global IDebugSystemObjects_GetThreadIdsByIndex 11 int,int,var,var
#comfunc global IDebugSystemObjects_GetThreadIdByProcessor 12 int,var
#comfunc global IDebugSystemObjects_GetCurrentThreadDataOffset 13 var
#comfunc global IDebugSystemObjects_GetThreadIdByDataOffset 14 int64,var
#comfunc global IDebugSystemObjects_GetCurrentThreadTeb 15 var
#comfunc global IDebugSystemObjects_GetThreadIdByTeb 16 int64,var
#comfunc global IDebugSystemObjects_GetCurrentThreadSystemId 17 var
#comfunc global IDebugSystemObjects_GetThreadIdBySystemId 18 int,var
#comfunc global IDebugSystemObjects_GetCurrentThreadHandle 19 var
#comfunc global IDebugSystemObjects_GetThreadIdByHandle 20 int64,var
#comfunc global IDebugSystemObjects_GetNumberProcesses 21 var
#comfunc global IDebugSystemObjects_GetProcessIdsByIndex 22 int,int,var,var
#comfunc global IDebugSystemObjects_GetCurrentProcessDataOffset 23 var
#comfunc global IDebugSystemObjects_GetProcessIdByDataOffset 24 int64,var
#comfunc global IDebugSystemObjects_GetCurrentProcessPeb 25 var
#comfunc global IDebugSystemObjects_GetProcessIdByPeb 26 int64,var
#comfunc global IDebugSystemObjects_GetCurrentProcessSystemId 27 var
#comfunc global IDebugSystemObjects_GetProcessIdBySystemId 28 int,var
#comfunc global IDebugSystemObjects_GetCurrentProcessHandle 29 var
#comfunc global IDebugSystemObjects_GetProcessIdByHandle 30 int64,var
#comfunc global IDebugSystemObjects_GetCurrentProcessExecutableName 31 var,int,var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。#define global IID_IDebugSystemObjects "{6B86FE2C-2C4F-4F0C-9DA2-174311ACC327}"
#usecom global IDebugSystemObjects IID_IDebugSystemObjects "{}"
#comfunc global IDebugSystemObjects_GetEventThread 3 sptr
#comfunc global IDebugSystemObjects_GetEventProcess 4 sptr
#comfunc global IDebugSystemObjects_GetCurrentThreadId 5 sptr
#comfunc global IDebugSystemObjects_SetCurrentThreadId 6 int
#comfunc global IDebugSystemObjects_GetCurrentProcessId 7 sptr
#comfunc global IDebugSystemObjects_SetCurrentProcessId 8 int
#comfunc global IDebugSystemObjects_GetNumberThreads 9 sptr
#comfunc global IDebugSystemObjects_GetTotalNumberThreads 10 sptr,sptr
#comfunc global IDebugSystemObjects_GetThreadIdsByIndex 11 int,int,sptr,sptr
#comfunc global IDebugSystemObjects_GetThreadIdByProcessor 12 int,sptr
#comfunc global IDebugSystemObjects_GetCurrentThreadDataOffset 13 sptr
#comfunc global IDebugSystemObjects_GetThreadIdByDataOffset 14 int64,sptr
#comfunc global IDebugSystemObjects_GetCurrentThreadTeb 15 sptr
#comfunc global IDebugSystemObjects_GetThreadIdByTeb 16 int64,sptr
#comfunc global IDebugSystemObjects_GetCurrentThreadSystemId 17 sptr
#comfunc global IDebugSystemObjects_GetThreadIdBySystemId 18 int,sptr
#comfunc global IDebugSystemObjects_GetCurrentThreadHandle 19 sptr
#comfunc global IDebugSystemObjects_GetThreadIdByHandle 20 int64,sptr
#comfunc global IDebugSystemObjects_GetNumberProcesses 21 sptr
#comfunc global IDebugSystemObjects_GetProcessIdsByIndex 22 int,int,sptr,sptr
#comfunc global IDebugSystemObjects_GetCurrentProcessDataOffset 23 sptr
#comfunc global IDebugSystemObjects_GetProcessIdByDataOffset 24 int64,sptr
#comfunc global IDebugSystemObjects_GetCurrentProcessPeb 25 sptr
#comfunc global IDebugSystemObjects_GetProcessIdByPeb 26 int64,sptr
#comfunc global IDebugSystemObjects_GetCurrentProcessSystemId 27 sptr
#comfunc global IDebugSystemObjects_GetProcessIdBySystemId 28 int,sptr
#comfunc global IDebugSystemObjects_GetCurrentProcessHandle 29 sptr
#comfunc global IDebugSystemObjects_GetProcessIdByHandle 30 int64,sptr
#comfunc global IDebugSystemObjects_GetCurrentProcessExecutableName 31 sptr,int,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。