bcrypt: Ignore the size parameter in BCRYPT_CHAINING_MODE setters.
[wine.git] / include / dbgeng.h
blob0c97d2c9a70a89709a474ecd382f0a59d6832b56
1 /*
2 * Copyright 2019 Nikolay Sivov for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #include "objbase.h"
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
25 DEFINE_GUID(IID_IDebugInputCallbacks, 0x9f50e42c, 0xf136, 0x499e, 0x9a, 0x97, 0x73, 0x03, 0x6c, 0x94, 0xed, 0x2d);
26 DEFINE_GUID(IID_IDebugOutputCallbacks, 0x4bf58045, 0xd654, 0x4c40, 0xb0, 0xaf, 0x68, 0x30, 0x90, 0xf3, 0x56, 0xdc);
27 DEFINE_GUID(IID_IDebugEventCallbacks, 0x337be28b, 0x5036, 0x4d72, 0xb6, 0xbf, 0xc4, 0x5f, 0xbb, 0x9f, 0x2e, 0xaa);
28 DEFINE_GUID(IID_IDebugClient, 0x27fe5639, 0x8407, 0x4f47, 0x83, 0x64, 0xee, 0x11, 0x8f, 0xb0, 0x8a, 0xc8);
29 DEFINE_GUID(IID_IDebugDataSpaces, 0x88f7dfab, 0x3ea7, 0x4c3a, 0xae, 0xfb, 0xc4, 0xe8, 0x10, 0x61, 0x73, 0xaa);
30 DEFINE_GUID(IID_IDebugDataSpaces2, 0x7a5e852f, 0x96e9, 0x468f, 0xac, 0x1b, 0x0b, 0x3a, 0xdd, 0xc4, 0xa0, 0x49);
31 DEFINE_GUID(IID_IDebugSymbols, 0x8c31e98c, 0x983a, 0x48a5, 0x90, 0x16, 0x6f, 0xe5, 0xd6, 0x67, 0xa9, 0x50);
32 DEFINE_GUID(IID_IDebugSymbols2, 0x3a707211, 0xafdd, 0x4495, 0xad, 0x4f, 0x56, 0xfe, 0xcd, 0xf8, 0x16, 0x3f);
33 DEFINE_GUID(IID_IDebugSymbols3, 0xf02fbecc, 0x50ac, 0x4f36, 0x9a, 0xd9, 0xc9, 0x75, 0xe8, 0xf3, 0x2f, 0xf8);
34 DEFINE_GUID(IID_IDebugControl, 0x5182e668, 0x105e, 0x416e, 0xad, 0x92, 0x24, 0xef, 0x80, 0x04, 0x24, 0xba);
35 DEFINE_GUID(IID_IDebugControl2, 0xd4366723, 0x44df, 0x4bed, 0x8c, 0x7e, 0x4c, 0x05, 0x42, 0x4f, 0x45, 0x88);
36 DEFINE_GUID(IID_IDebugAdvanced, 0xf2df5f53, 0x071f, 0x47bd, 0x9d, 0xe6, 0x57, 0x34, 0xc3, 0xfe, 0xd6, 0x89);
37 DEFINE_GUID(IID_IDebugSystemObjects, 0x6b86fe2c, 0x2c4f, 0x4f0c, 0x9d, 0xa2, 0x17, 0x43, 0x11, 0xac, 0xc3, 0x27);
38 DEFINE_GUID(IID_IDebugSystemObjects2, 0x0ae9f5ff, 0x1852, 0x4679, 0xb0, 0x55, 0x49, 0x4b, 0xee, 0x64, 0x07, 0xee);
39 DEFINE_GUID(IID_IDebugSystemObjects3, 0xe9676e2f, 0xe286, 0x4ea3, 0xb0, 0xf9, 0xdf, 0xe5, 0xd9, 0xfc, 0x33, 0x0e);
41 /* Engine options */
42 #define DEBUG_ENGOPT_IGNORE_DBGHELP_VERSION 0x00000001
43 #define DEBUG_ENGOPT_IGNORE_EXTENSION_VERSIONS 0x00000002
44 #define DEBUG_ENGOPT_ALLOW_NETWORK_PATHS 0x00000004
45 #define DEBUG_ENGOPT_DISALLOW_NETWORK_PATHS 0x00000008
46 #define DEBUG_ENGOPT_IGNORE_LOADER_EXCEPTIONS 0x00000010
47 #define DEBUG_ENGOPT_INITIAL_BREAK 0x00000020
48 #define DEBUG_ENGOPT_INITIAL_MODULE_BREAK 0x00000040
49 #define DEBUG_ENGOPT_FINAL_BREAK 0x00000080
50 #define DEBUG_ENGOPT_NO_EXECUTE_REPEAT 0x00000100
51 #define DEBUG_ENGOPT_FAIL_INCOMPLETE_INFORMATION 0x00000200
52 #define DEBUG_ENGOPT_ALLOW_READ_ONLY_BREAKPOINTS 0x00000400
53 #define DEBUG_ENGOPT_SYNCHRONIZE_BREAKPOINTS 0x00000800
54 #define DEBUG_ENGOPT_DISALLOW_SHELL_COMMANDS 0x00001000
55 #define DEBUG_ENGOPT_KD_QUIET_MODE 0x00002000
56 #define DEBUG_ENGOPT_DISABLE_MANAGED_SUPPORT 0x00004000
57 #define DEBUG_ENGOPT_DISABLE_MODULE_SYMBOL_LOAD 0x00008000
58 #define DEBUG_ENGOPT_DISABLE_EXECUTION_COMMANDS 0x00010000
59 #define DEBUG_ENGOPT_DISALLOW_IMAGE_FILE_MAPPING 0x00020000
60 #define DEBUG_ENGOPT_PREFER_DML 0x00040000
61 #define DEBUG_ENGOPT_DISABLESQM 0x00080000
62 #define DEBUG_ENGOPT_DISABLE_STEPLINES_OPTIONS 0x00200000
63 #define DEBUG_ENGOPT_DEBUGGING_SENSITIVE_DATA 0x00400000
64 #define DEBUG_ENGOPT_ALL 0x004fffff
65 #define DEBUG_ENGOPT_NETWORK_PATHS (DEBUG_ENGOPT_ALLOW_NETWORK_PATHS | DEBUG_ENGOPT_DISALLOW_NETWORK_PATHS)
67 /* AttachProcess() flags */
68 #define DEBUG_ATTACH_DEFAULT 0x00000000
69 #define DEBUG_ATTACH_NONINVASIVE 0x00000001
70 #define DEBUG_ATTACH_EXISTING 0x00000002
71 #define DEBUG_ATTACH_NONINVASIVE_NO_SUSPEND 0x00000004
72 #define DEBUG_ATTACH_INVASIVE_NO_INITIAL_BREAK 0x00000008
73 #define DEBUG_ATTACH_INVASIVE_RESUME_PROCESS 0x00000010
74 #define DEBUG_ATTACH_NONINVASIVE_ALLOW_PARTIAL 0x00000020
76 /* EndSession() flags */
77 #define DEBUG_END_PASSIVE 0x00000000
78 #define DEBUG_END_ACTIVE_TERMINATE 0x00000001
79 #define DEBUG_END_ACTIVE_DETACH 0x00000002
80 #define DEBUG_END_REENTRANT 0x00000003
81 #define DEBUG_END_DISCONNECT 0x00000004
83 /* ChangeEngineState() flags */
84 #define DEBUG_CES_CURRENT_THREAD 0x00000001
85 #define DEBUG_CES_EFFECTIVE_PROCESSOR 0x00000002
86 #define DEBUG_CES_BREAKPOINTS 0x00000004
87 #define DEBUG_CES_CODE_LEVEL 0x00000008
88 #define DEBUG_CES_EXECUTION_STATUS 0x00000010
89 #define DEBUG_CES_ENGINE_OPTIONS 0x00000020
90 #define DEBUG_CES_LOG_FILE 0x00000040
91 #define DEBUG_CES_RADIX 0x00000080
92 #define DEBUG_CES_EVENT_FILTERS 0x00000100
93 #define DEBUG_CES_PROCESS_OPTIONS 0x00000200
94 #define DEBUG_CES_EXTENSIONS 0x00000400
95 #define DEBUG_CES_SYSTEMS 0x00000800
96 #define DEBUG_CES_ASSEMBLY_OPTIONS 0x00001000
97 #define DEBUG_CES_EXPRESSION_SYNTAX 0x00002000
98 #define DEBUG_CES_TEXT_REPLACEMENTS 0x00004000
99 #define DEBUG_CES_ALL 0xffffffff
101 #define DEBUG_STATUS_NO_CHANGE 0
102 #define DEBUG_STATUS_GO 1
103 #define DEBUG_STATUS_GO_HANDLED 2
104 #define DEBUG_STATUS_GO_NOT_HANDLED 3
105 #define DEBUG_STATUS_STEP_OVER 4
106 #define DEBUG_STATUS_STEP_INTO 5
107 #define DEBUG_STATUS_BREAK 6
108 #define DEBUG_STATUS_NO_DEBUGGEE 7
109 #define DEBUG_STATUS_STEP_BRANCH 8
110 #define DEBUG_STATUS_IGNORE_EVENT 9
111 #define DEBUG_STATUS_RESTART_REQUESTED 10
112 #define DEBUG_STATUS_REVERSE_GO 11
113 #define DEBUG_STATUS_REVERSE_STEP_BRANCH 12
114 #define DEBUG_STATUS_REVERSE_STEP_OVER 13
115 #define DEBUG_STATUS_REVERSE_STEP_INTO 14
116 #define DEBUG_STATUS_OUT_OF_SYNC 15
117 #define DEBUG_STATUS_WAIT_INPUT 16
118 #define DEBUG_STATUS_TIMEOUT 17
119 #define DEBUG_STATUS_MASK 0x1f
121 /* ChangeSymbolState() flags */
122 #define DEBUG_CSS_LOADS 0x00000001
123 #define DEBUG_CSS_UNLOADS 0x00000002
124 #define DEBUG_CSS_SCOPE 0x00000004
125 #define DEBUG_CSS_PATHS 0x00000008
126 #define DEBUG_CSS_SYMBOL_OPTIONS 0x00000010
127 #define DEBUG_CSS_TYPE_OPTIONS 0x00000020
128 #define DEBUG_CSS_COLLAPSE_CHILDREN 0x00000040
129 #define DEBUG_CSS_ALL 0xffffffff
131 /* SessionStatus() flags */
132 #define DEBUG_SESSION_ACTIVE 0x00000000
133 #define DEBUG_SESSION_END_SESSION_ACTIVE_TERMINATE 0x00000001
134 #define DEBUG_SESSION_END_SESSION_ACTIVE_DETACH 0x00000002
135 #define DEBUG_SESSION_END_SESSION_PASSIVE 0x00000003
136 #define DEBUG_SESSION_END 0x00000004
137 #define DEBUG_SESSION_REBOOT 0x00000005
138 #define DEBUG_SESSION_HIBERNATE 0x00000006
139 #define DEBUG_SESSION_FAILURE 0x00000007
141 /* ChangeDebuggeeState() flags */
142 #define DEBUG_CDS_REGISTERS 0x00000001
143 #define DEBUG_CDS_DATA 0x00000002
144 #define DEBUG_CDS_REFRESH 0x00000004
145 #define DEBUG_CDS_ALL 0xffffffff
147 #define DEBUG_CDS_REFRESH_EVALUATE 1
148 #define DEBUG_CDS_REFRESH_EXECUTE 2
149 #define DEBUG_CDS_REFRESH_EXECUTECOMMANDFILE 3
150 #define DEBUG_CDS_REFRESH_ADDBREAKPOINT 4
151 #define DEBUG_CDS_REFRESH_REMOVEBREAKPOINT 5
152 #define DEBUG_CDS_REFRESH_WRITEVIRTUAL 6
153 #define DEBUG_CDS_REFRESH_WRITEVIRTUALUNCACHED 7
154 #define DEBUG_CDS_REFRESH_WRITEPHYSICAL 8
155 #define DEBUG_CDS_REFRESH_WRITEPHYSICAL2 9
156 #define DEBUG_CDS_REFRESH_SETVALUE 10
157 #define DEBUG_CDS_REFRESH_SETVALUE2 11
158 #define DEBUG_CDS_REFRESH_SETSCOPE 12
159 #define DEBUG_CDS_REFRESH_SETSCOPEFRAMEBYINDEX 13
160 #define DEBUG_CDS_REFRESH_SETSCOPEFROMJITDEBUGINFO 14
161 #define DEBUG_CDS_REFRESH_SETSCOPEFROMSTOREDEVENT 15
162 #define DEBUG_CDS_REFRESH_INLINESTEP 16
163 #define DEBUG_CDS_REFRESH_INLINESTEP_PSEUDO 17
165 /* GetModuleNameString() indices */
166 #define DEBUG_MODNAME_IMAGE 0
167 #define DEBUG_MODNAME_MODULE 1
168 #define DEBUG_MODNAME_LOADED_IMAGE 2
169 #define DEBUG_MODNAME_SYMBOL_FILE 3
170 #define DEBUG_MODNAME_MAPPED_IMAGE 4
172 #define DEBUG_CLASS_UNINITIALIZED 0
173 #define DEBUG_CLASS_KERNEL 1
174 #define DEBUG_CLASS_USER_WINDOWS 2
175 #define DEBUG_CLASS_IMAGE_FILE 3
177 #define DEBUG_DUMP_SMALL 1024
178 #define DEBUG_DUMP_DEFAULT 1025
179 #define DEBUG_DUMP_FULL 1026
180 #define DEBUG_DUMP_IMAGE_FILE 1027
181 #define DEBUG_DUMP_TRACE_LOG 1028
182 #define DEBUG_DUMP_WINDOWS_CE 1029
183 #define DEBUG_DUMP_ACTIVE 1030
185 #define DEBUG_USER_WINDOWS_PROCESS 0
186 #define DEBUG_USER_WINDOWS_PROCESS_SERVER 1
187 #define DEBUG_USER_WINDOWS_IDNA 2
188 #define DEBUG_USER_WINDOWS_REPT 3
189 #define DEBUG_USER_WINDOWS_SMALL_DUMP DEBUG_DUMP_SMALL
190 #define DEBUG_USER_WINDOWS_DUMP DEBUG_DUMP_DEFAULT
191 #define DEBUG_USER_WINDOWS_DUMP_WINDOWS_CE DEBUG_DUMP_WINDOWS_CE
193 #define DEBUG_INVALID_OFFSET ((ULONG64)-1)
194 #define DEBUG_ANY_ID 0xffffffff
196 typedef struct _DEBUG_MODULE_PARAMETERS
198 ULONG64 Base;
199 ULONG Size;
200 ULONG TimeDateStamp;
201 ULONG Checksum;
202 ULONG Flags;
203 ULONG SymbolType;
204 ULONG ImageNameSize;
205 ULONG ModuleNameSize;
206 ULONG LoadedImageNameSize;
207 ULONG SymbolFileNameSize;
208 ULONG MappedImageNameSize;
209 ULONG64 Reserved[2];
210 } DEBUG_MODULE_PARAMETERS, *PDEBUG_MODULE_PARAMETERS;
212 typedef struct _DEBUG_STACK_FRAME
214 ULONG64 InstructionOffset;
215 ULONG64 ReturnOffset;
216 ULONG64 FrameOffset;
217 ULONG64 StackOffset;
218 ULONG64 FuncTableEntry;
219 ULONG64 Params[4];
220 ULONG64 Reserved[6];
221 BOOL Virtual;
222 ULONG FrameNumber;
223 } DEBUG_STACK_FRAME, *PDEBUG_STACK_FRAME;
225 typedef struct _DEBUG_VALUE
227 union
229 UCHAR I8;
230 USHORT I16;
231 ULONG I32;
232 struct
234 ULONG64 I64;
235 BOOL Nat;
237 float F32;
238 double F64;
239 UCHAR F80Bytes[10];
240 UCHAR F82Bytes[11];
241 UCHAR F128Bytes[16];
242 UCHAR VI8[16];
243 USHORT VI16[8];
244 ULONG VI32[4];
245 ULONG64 VI64[2];
246 float VF32[4];
247 double VF64[2];
248 struct
250 ULONG LowPart;
251 ULONG HighPart;
252 } I64Parts32;
253 struct
255 ULONG64 LowPart;
256 LONG64 HighPart;
257 } F128Parts64;
258 UCHAR RawBytes[24];
260 ULONG TailOfRawBytes;
261 ULONG Type;
262 } DEBUG_VALUE, *PDEBUG_VALUE;
264 typedef struct _DEBUG_BREAKPOINT_PARAMETERS
266 ULONG64 Offset;
267 ULONG Id;
268 ULONG BreakType;
269 ULONG ProcType;
270 ULONG Flags;
271 ULONG DataSize;
272 ULONG DataAccessType;
273 ULONG PassCount;
274 ULONG CurrentPassCount;
275 ULONG MatchThread;
276 ULONG CommandSize;
277 ULONG OffsetExpressionSize;
278 } DEBUG_BREAKPOINT_PARAMETERS, *PDEBUG_BREAKPOINT_PARAMETERS;
280 typedef struct _WINDBG_EXTENSION_APIS32 *PWINDBG_EXTENSION_APIS32;
281 typedef struct _WINDBG_EXTENSION_APIS64 *PWINDBG_EXTENSION_APIS64;
282 typedef struct _MEMORY_BASIC_INFORMATION64 *PMEMORY_BASIC_INFORMATION64;
284 typedef struct _DEBUG_SPECIFIC_FILTER_PARAMETERS
286 ULONG ExecutionOption;
287 ULONG ContinueOption;
288 ULONG TextSize;
289 ULONG CommandSize;
290 ULONG ArgumentSize;
291 } DEBUG_SPECIFIC_FILTER_PARAMETERS, *PDEBUG_SPECIFIC_FILTER_PARAMETERS;
293 typedef struct _DEBUG_EXCEPTION_FILTER_PARAMETERS
295 ULONG ExecutionOption;
296 ULONG ContinueOption;
297 ULONG TextSize;
298 ULONG CommandSize;
299 ULONG SecondCommandSize;
300 ULONG ExceptionCode;
301 } DEBUG_EXCEPTION_FILTER_PARAMETERS, *PDEBUG_EXCEPTION_FILTER_PARAMETERS;
303 typedef struct _DEBUG_MODULE_AND_ID
305 ULONG64 ModuleBase;
306 ULONG64 Id;
307 } DEBUG_MODULE_AND_ID, *PDEBUG_MODULE_AND_ID;
309 typedef struct _DEBUG_OFFSET_REGION
311 ULONG64 Base;
312 ULONG64 Size;
313 } DEBUG_OFFSET_REGION, *PDEBUG_OFFSET_REGION;
315 typedef struct _DEBUG_SYMBOL_ENTRY
317 ULONG64 ModuleBase;
318 ULONG64 Offset;
319 ULONG64 Id;
320 ULONG64 Arg64;
321 ULONG Size;
322 ULONG Flags;
323 ULONG TypeId;
324 ULONG NameSize;
325 ULONG Token;
326 ULONG Tag;
327 ULONG Arg32;
328 ULONG Reserved;
329 } DEBUG_SYMBOL_ENTRY, *PDEBUG_SYMBOL_ENTRY;
331 typedef struct _DEBUG_SYMBOL_SOURCE_ENTRY
333 ULONG64 ModuleBase;
334 ULONG64 Offset;
335 ULONG64 FileNameId;
336 ULONG64 EngineInternal;
337 ULONG Size;
338 ULONG Flags;
339 ULONG FileNameSize;
340 ULONG StartLine;
341 ULONG EndLine;
342 ULONG StartColumn;
343 ULONG EndColumn;
344 ULONG Reserved;
345 } DEBUG_SYMBOL_SOURCE_ENTRY, *PDEBUG_SYMBOL_SOURCE_ENTRY;
347 #define INTERFACE IDebugBreakpoint
348 DECLARE_INTERFACE_(IDebugBreakpoint, IUnknown)
350 /* IUnknown */
351 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
352 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
353 STDMETHOD_(ULONG, Release)(THIS) PURE;
354 /* IDebugBreakpoint */
355 /* FIXME */
357 #undef INTERFACE
359 #define INTERFACE IDebugSymbolGroup
360 DECLARE_INTERFACE_(IDebugSymbolGroup, IUnknown)
362 /* IUnknown */
363 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
364 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
365 STDMETHOD_(ULONG, Release)(THIS) PURE;
366 /* IDebugSymbolGroup */
367 /* FIXME */
369 #undef INTERFACE
371 #define INTERFACE IDebugSymbolGroup2
372 DECLARE_INTERFACE_(IDebugSymbolGroup2, IUnknown)
374 /* IUnknown */
375 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
376 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
377 STDMETHOD_(ULONG, Release)(THIS) PURE;
378 /* IDebugSymbolGroup */
379 /* IDebugSymbolGroup2 */
380 /* FIXME */
382 #undef INTERFACE
384 typedef IDebugBreakpoint *PDEBUG_BREAKPOINT;
385 typedef IDebugSymbolGroup2 *PDEBUG_SYMBOL_GROUP2;
387 #define INTERFACE IDebugInputCallbacks
388 DECLARE_INTERFACE_(IDebugInputCallbacks, IUnknown)
390 /* IUnknown */
391 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
392 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
393 STDMETHOD_(ULONG, Release)(THIS) PURE;
394 /* IDebugInputCallbacks */
395 STDMETHOD(StartInput)(THIS_ ULONG buffer_size) PURE;
396 STDMETHOD(EndInput)(THIS) PURE;
398 #undef INTERFACE
400 #define INTERFACE IDebugOutputCallbacks
401 DECLARE_INTERFACE_(IDebugOutputCallbacks, IUnknown)
403 /* IUnknown */
404 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
405 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
406 STDMETHOD_(ULONG, Release)(THIS) PURE;
407 /* IDebugOutputCallbacks */
408 STDMETHOD(Output)(THIS_ ULONG mask, const char *text) PURE;
410 #undef INTERFACE
412 #ifdef WINE_NO_UNICODE_MACROS
413 #undef CreateProcess
414 #endif
416 #define INTERFACE IDebugEventCallbacks
417 DECLARE_INTERFACE_(IDebugEventCallbacks, IUnknown)
419 /* IUnknown */
420 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
421 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
422 STDMETHOD_(ULONG, Release)(THIS) PURE;
423 /* IDebugEventCallbacks */
424 STDMETHOD(GetInterestMask)(THIS_ ULONG *mask) PURE;
425 STDMETHOD(Breakpoint)(THIS_ PDEBUG_BREAKPOINT breakpoint) PURE;
426 STDMETHOD(Exception)(THIS_ EXCEPTION_RECORD64 *exception, ULONG first_chance) PURE;
427 STDMETHOD(CreateThread)(THIS_ ULONG64 handle, ULONG64 data_offset, ULONG64 start_offset) PURE;
428 STDMETHOD(ExitThread)(THIS_ ULONG exit_code) PURE;
429 STDMETHOD(CreateProcess)(THIS_ ULONG64 image_handle, ULONG64 handle, ULONG64 base_offset, ULONG module_size,
430 const char *module_name, const char *image_name, ULONG checksum, ULONG timedatestamp,
431 ULONG64 initial_thread_handle, ULONG64 thread_data_offset, ULONG64 start_offset) PURE;
432 STDMETHOD(ExitProcess)(THIS_ ULONG exit_code) PURE;
433 STDMETHOD(LoadModule)(THIS_ ULONG64 image_handle, ULONG64 base_offset, ULONG module_size, const char *module_name,
434 const char *image_name, ULONG checksum, ULONG timedatestamp) PURE;
435 STDMETHOD(UnloadModule)(THIS_ const char *image_basename, ULONG64 base_offset) PURE;
436 STDMETHOD(SystemError)(THIS_ ULONG error, ULONG level) PURE;
437 STDMETHOD(SessionStatus)(THIS_ ULONG status) PURE;
438 STDMETHOD(ChangeDebuggeeState)(THIS_ ULONG flags, ULONG64 argument) PURE;
439 STDMETHOD(ChangeEngineState)(THIS_ ULONG flags, ULONG64 argument) PURE;
440 STDMETHOD(ChangeSymbolState)(THIS_ ULONG flags, ULONG64 argument) PURE;
442 #undef INTERFACE
444 #define INTERFACE IDebugClient
445 DECLARE_INTERFACE_(IDebugClient, IUnknown)
447 /* IUnknown */
448 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
449 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
450 STDMETHOD_(ULONG, Release)(THIS) PURE;
451 /* IDebugClient */
452 STDMETHOD(AttachKernel)(THIS_ ULONG flags, const char *options) PURE;
453 STDMETHOD(GetKernelConnectionOptions)(THIS_ char *buffer, ULONG buffer_size, ULONG *options_size) PURE;
454 STDMETHOD(SetKernelConnectionOptions)(THIS_ const char *options) PURE;
455 STDMETHOD(StartProcessServer)(THIS_ ULONG flags, const char *options, void *reserved) PURE;
456 STDMETHOD(ConnectProcessServer)(THIS_ const char *remote_options, ULONG64 *server) PURE;
457 STDMETHOD(DisconnectProcessServer)(THIS_ ULONG64 server) PURE;
458 STDMETHOD(GetRunningProcessSystemIds)(THIS_ ULONG64 server, ULONG *ids, ULONG count, ULONG *actual_count) PURE;
459 STDMETHOD(GetRunningProcessSystemIdByExecutableName)(THIS_ ULONG64 server, const char *exe_name,
460 ULONG flags, ULONG *id) PURE;
461 STDMETHOD(GetRunningProcessDescription)(THIS_ ULONG64 server, ULONG systemid, ULONG flags, char *exe_name,
462 ULONG exe_name_size, ULONG *actual_exe_name_size, char *description, ULONG description_size,
463 ULONG *actual_description_size) PURE;
464 STDMETHOD(AttachProcess)(THIS_ ULONG64 server, ULONG pid, ULONG flags) PURE;
465 STDMETHOD(CreateProcess)(THIS_ ULONG64 server, char *cmdline, ULONG flags) PURE;
466 STDMETHOD(CreateProcessAndAttach)(THIS_ ULONG64 server, char *cmdline, ULONG create_flags,
467 ULONG pid, ULONG attach_flags) PURE;
468 STDMETHOD(GetProcessOptions)(THIS_ ULONG *options) PURE;
469 STDMETHOD(AddProcessOptions)(THIS_ ULONG options) PURE;
470 STDMETHOD(RemoveProcessOptions)(THIS_ ULONG options) PURE;
471 STDMETHOD(SetProcessOptions)(THIS_ ULONG options) PURE;
472 STDMETHOD(OpenDumpFile)(THIS_ const char *filename) PURE;
473 STDMETHOD(WriteDumpFile)(THIS_ const char *filename, ULONG qualifier) PURE;
474 STDMETHOD(ConnectSession)(THIS_ ULONG flags, ULONG history_limit) PURE;
475 STDMETHOD(StartServer)(THIS_ const char *options) PURE;
476 STDMETHOD(OutputServers)(THIS_ ULONG output_control, const char *machine, ULONG flags) PURE;
477 STDMETHOD(TerminateProcesses)(THIS) PURE;
478 STDMETHOD(DetachProcesses)(THIS) PURE;
479 STDMETHOD(EndSession)(THIS_ ULONG flags) PURE;
480 STDMETHOD(GetExitCode)(THIS_ ULONG *code) PURE;
481 STDMETHOD(DispatchCallbacks)(THIS_ ULONG timeout) PURE;
482 STDMETHOD(ExitDispatch)(THIS_ IDebugClient *client) PURE;
483 STDMETHOD(CreateClient)(THIS_ IDebugClient **client) PURE;
484 STDMETHOD(GetInputCallbacks)(THIS_ IDebugInputCallbacks **callbacks) PURE;
485 STDMETHOD(SetInputCallbacks)(THIS_ IDebugInputCallbacks *callbacks) PURE;
486 STDMETHOD(GetOutputCallbacks)(THIS_ IDebugOutputCallbacks **callbacks) PURE;
487 STDMETHOD(SetOutputCallbacks)(THIS_ IDebugOutputCallbacks *callbacks) PURE;
488 STDMETHOD(GetOutputMask)(THIS_ ULONG *mask) PURE;
489 STDMETHOD(SetOutputMask)(THIS_ ULONG mask) PURE;
490 STDMETHOD(GetOtherOutputMask)(THIS_ IDebugClient *client, ULONG *mask) PURE;
491 STDMETHOD(SetOtherOutputMask)(THIS_ IDebugClient *client, ULONG mask) PURE;
492 STDMETHOD(GetOutputWidth)(THIS_ ULONG *columns) PURE;
493 STDMETHOD(SetOutputWidth)(THIS_ ULONG columns) PURE;
494 STDMETHOD(GetOutputLinePrefix)(THIS_ char *buffer, ULONG buffer_size, ULONG *prefix_size) PURE;
495 STDMETHOD(SetOutputLinePrefix)(THIS_ const char *prefix) PURE;
496 STDMETHOD(GetIdentity)(THIS_ char *buffer, ULONG buffer_size, ULONG *identity_size) PURE;
497 STDMETHOD(OutputIdentity)(THIS_ ULONG output_control, ULONG flags, const char *format) PURE;
498 STDMETHOD(GetEventCallbacks)(THIS_ IDebugEventCallbacks **callbacks) PURE;
499 STDMETHOD(SetEventCallbacks)(THIS_ IDebugEventCallbacks *callbacks) PURE;
500 STDMETHOD(FlushCallbacks)(THIS) PURE;
502 #undef INTERFACE
504 #define INTERFACE IDebugDataSpaces
505 DECLARE_INTERFACE_(IDebugDataSpaces, IUnknown)
507 /* IUnknown */
508 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
509 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
510 STDMETHOD_(ULONG, Release)(THIS) PURE;
511 /* IDebugDataSpaces */
512 STDMETHOD(ReadVirtual)(THIS_ ULONG64 offset, void *buffer, ULONG buffer_size, ULONG *read_len) PURE;
513 STDMETHOD(WriteVirtual)(THIS_ ULONG64 offset, void *buffer, ULONG buffer_size, ULONG *written) PURE;
514 STDMETHOD(SearchVirtual)(THIS_ ULONG64 offset, ULONG64 length, void *pattern, ULONG pattern_size,
515 ULONG pattern_granularity, ULONG64 *ret_offset) PURE;
516 STDMETHOD(ReadVirtualUncached)(THIS_ ULONG64 offset, void *buffer, ULONG buffer_size, ULONG *read_len) PURE;
517 STDMETHOD(WriteVirtualUncached)(THIS_ ULONG64 offset, void *buffer, ULONG buffer_size, ULONG *written) PURE;
518 STDMETHOD(ReadPointersVirtual)(THIS_ ULONG count, ULONG64 offset, ULONG64 *pointers) PURE;
519 STDMETHOD(WritePointersVirtual)(THIS_ ULONG count, ULONG64 offset, ULONG64 *pointers) PURE;
520 STDMETHOD(ReadPhysical)(THIS_ ULONG64 offset, void *buffer, ULONG buffer_size, ULONG *read_len) PURE;
521 STDMETHOD(WritePhysical)(THIS_ ULONG64 offset, void *buffer, ULONG buffer_size, ULONG *written) PURE;
522 STDMETHOD(ReadControl)(THIS_ ULONG processor, ULONG64 offset, void *buffer, ULONG buffer_size,
523 ULONG *read_len) PURE;
524 STDMETHOD(WriteControl)(THIS_ ULONG processor, ULONG64 offset, void *buffer, ULONG buffer_size,
525 ULONG *written) PURE;
526 STDMETHOD(ReadIo)(THIS_ ULONG type, ULONG bus_number, ULONG address_space, ULONG64 offset, void *buffer,
527 ULONG buffer_size, ULONG *read_len) PURE;
528 STDMETHOD(WriteIo)(THIS_ ULONG type, ULONG bus_number, ULONG address_space, ULONG64 offset, void *buffer,
529 ULONG buffer_size, ULONG *written) PURE;
530 STDMETHOD(ReadMsr)(THIS_ ULONG msr, ULONG64 *value) PURE;
531 STDMETHOD(WriteMsr)(THIS_ ULONG msr, ULONG64 value) PURE;
532 STDMETHOD(ReadBusData)(THIS_ ULONG data_type, ULONG bus_number, ULONG slot_number, ULONG offset, void *buffer,
533 ULONG buffer_size, ULONG *read_len) PURE;
534 STDMETHOD(WriteBusData)(THIS_ ULONG data_type, ULONG bus_number, ULONG slot_number, ULONG offset, void *buffer,
535 ULONG buffer_size, ULONG *written) PURE;
536 STDMETHOD(CheckLowMemory)(THIS) PURE;
537 STDMETHOD(ReadDebuggerData)(THIS_ ULONG index, void *buffer, ULONG buffer_size, ULONG *data_size) PURE;
538 STDMETHOD(ReadProcessorSystemData)(THIS_ ULONG processor, ULONG index, void *buffer, ULONG buffer_size,
539 ULONG *data_size) PURE;
541 #undef INTERFACE
543 #define INTERFACE IDebugDataSpaces2
544 DECLARE_INTERFACE_(IDebugDataSpaces2, IUnknown)
546 /* IUnknown */
547 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
548 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
549 STDMETHOD_(ULONG, Release)(THIS) PURE;
550 /* IDebugDataSpaces */
551 STDMETHOD(ReadVirtual)(THIS_ ULONG64 offset, void *buffer, ULONG buffer_size, ULONG *read_len) PURE;
552 STDMETHOD(WriteVirtual)(THIS_ ULONG64 offset, void *buffer, ULONG buffer_size, ULONG *written) PURE;
553 STDMETHOD(SearchVirtual)(THIS_ ULONG64 offset, ULONG64 length, void *pattern, ULONG pattern_size,
554 ULONG pattern_granularity, ULONG64 *ret_offset) PURE;
555 STDMETHOD(ReadVirtualUncached)(THIS_ ULONG64 offset, void *buffer, ULONG buffer_size, ULONG *read_len) PURE;
556 STDMETHOD(WriteVirtualUncached)(THIS_ ULONG64 offset, void *buffer, ULONG buffer_size, ULONG *written) PURE;
557 STDMETHOD(ReadPointersVirtual)(THIS_ ULONG count, ULONG64 offset, ULONG64 *pointers) PURE;
558 STDMETHOD(WritePointersVirtual)(THIS_ ULONG count, ULONG64 offset, ULONG64 *pointers) PURE;
559 STDMETHOD(ReadPhysical)(THIS_ ULONG64 offset, void *buffer, ULONG buffer_size, ULONG *read_len) PURE;
560 STDMETHOD(WritePhysical)(THIS_ ULONG64 offset, void *buffer, ULONG buffer_size, ULONG *written) PURE;
561 STDMETHOD(ReadControl)(THIS_ ULONG processor, ULONG64 offset, void *buffer, ULONG buffer_size,
562 ULONG *read_len) PURE;
563 STDMETHOD(WriteControl)(THIS_ ULONG processor, ULONG64 offset, void *buffer, ULONG buffer_size,
564 ULONG *written) PURE;
565 STDMETHOD(ReadIo)(THIS_ ULONG type, ULONG bus_number, ULONG address_space, ULONG64 offset, void *buffer,
566 ULONG buffer_size, ULONG *read_len) PURE;
567 STDMETHOD(WriteIo)(THIS_ ULONG type, ULONG bus_number, ULONG address_space, ULONG64 offset, void *buffer,
568 ULONG buffer_size, ULONG *written) PURE;
569 STDMETHOD(ReadMsr)(THIS_ ULONG msr, ULONG64 *value) PURE;
570 STDMETHOD(WriteMsr)(THIS_ ULONG msr, ULONG64 value) PURE;
571 STDMETHOD(ReadBusData)(THIS_ ULONG data_type, ULONG bus_number, ULONG slot_number, ULONG offset, void *buffer,
572 ULONG buffer_size, ULONG *read_len) PURE;
573 STDMETHOD(WriteBusData)(THIS_ ULONG data_type, ULONG bus_number, ULONG slot_number, ULONG offset, void *buffer,
574 ULONG buffer_size, ULONG *written) PURE;
575 STDMETHOD(CheckLowMemory)(THIS) PURE;
576 STDMETHOD(ReadDebuggerData)(THIS_ ULONG index, void *buffer, ULONG buffer_size, ULONG *data_size) PURE;
577 STDMETHOD(ReadProcessorSystemData)(THIS_ ULONG processor, ULONG index, void *buffer, ULONG buffer_size,
578 ULONG *data_size) PURE;
579 /* IDebugDataSpaces2 */
580 STDMETHOD(VirtualToPhysical)(THIS_ ULONG64 virt, ULONG64 *physical) PURE;
581 STDMETHOD(GetVirtualTranslationPhysicalOffsets)(THIS_ ULONG64 virt, ULONG64 *offsets, ULONG offsets_size,
582 ULONG *levels) PURE;
583 STDMETHOD(ReadHandleData)(THIS_ ULONG64 handle, ULONG datatype, void *buffer, ULONG buffer_size,
584 ULONG *data_size) PURE;
585 STDMETHOD(FillVirtual)(THIS_ ULONG64 start, ULONG size, void *pattern, ULONG pattern_size, ULONG *filled) PURE;
586 STDMETHOD(FillPhysical)(THIS_ ULONG64 start, ULONG size, void *pattern, ULONG pattern_size, ULONG *filled) PURE;
587 STDMETHOD(QueryVirtual)(THIS_ ULONG64 offset, PMEMORY_BASIC_INFORMATION64 info) PURE;
589 #undef INTERFACE
591 #define INTERFACE IDebugSymbols
592 DECLARE_INTERFACE_(IDebugSymbols, IUnknown)
594 /* IUnknown */
595 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
596 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
597 STDMETHOD_(ULONG, Release)(THIS) PURE;
598 /* IDebugSymbols */
599 STDMETHOD(GetSymbolOptions)(THIS_ ULONG *options) PURE;
600 STDMETHOD(AddSymbolOptions)(THIS_ ULONG options) PURE;
601 STDMETHOD(RemoveSymbolOptions)(THIS_ ULONG options) PURE;
602 STDMETHOD(SetSymbolOptions)(THIS_ ULONG options) PURE;
603 STDMETHOD(GetNameByOffset)(THIS_ ULONG64 offset, char *buffer, ULONG buffer_size, ULONG *name_size,
604 ULONG64 *displacement) PURE;
605 STDMETHOD(GetOffsetByName)(THIS_ const char *symbol, ULONG64 *offset) PURE;
606 STDMETHOD(GetNearNameByOffset)(THIS_ ULONG64 offset, LONG delta, char *buffer, ULONG buffer_size,ULONG *name_size,
607 ULONG64 *displacement) PURE;
608 STDMETHOD(GetLineByOffset)(THIS_ ULONG64 offset, ULONG *line, char *buffer, ULONG buffer_size, ULONG *file_size,
609 ULONG64 *displacement) PURE;
610 STDMETHOD(GetOffsetByLine)(THIS_ ULONG line, const char *file, ULONG64 *offset) PURE;
611 STDMETHOD(GetNumberModules)(THIS_ ULONG *loaded, ULONG *unloaded) PURE;
612 STDMETHOD(GetModuleByIndex)(THIS_ ULONG index, ULONG64 *base) PURE;
613 STDMETHOD(GetModuleByModuleName)(THIS_ const char *name, ULONG start_index, ULONG *index, ULONG64 *base) PURE;
614 STDMETHOD(GetModuleByOffset)(THIS_ ULONG64 offset, ULONG start_index, ULONG *index, ULONG64 *base) PURE;
615 STDMETHOD(GetModuleNames)(THIS_ ULONG index, ULONG64 base, char *image_name, ULONG image_name_buffer_size,
616 ULONG *image_name_size, char *module_name, ULONG module_name_buffer_size, ULONG *module_name_size,
617 char *loaded_image_name, ULONG loaded_image_name_buffer_size, ULONG *loaded_image_size) PURE;
618 STDMETHOD(GetModuleParameters)(THIS_ ULONG count, ULONG64 *bases, ULONG start,
619 DEBUG_MODULE_PARAMETERS *parameters) PURE;
620 STDMETHOD(GetSymbolModule)(THIS_ const char *symbol, ULONG64 *base) PURE;
621 STDMETHOD(GetTypeName)(THIS_ ULONG64 base, ULONG type_id, char *buffer, ULONG buffer_size, ULONG *name_size) PURE;
622 STDMETHOD(GetTypeId)(THIS_ ULONG64 module, const char *name, ULONG *type_id) PURE;
623 STDMETHOD(GetTypeSize)(THIS_ ULONG64 module, ULONG type_id, ULONG *size) PURE;
624 STDMETHOD(GetFieldOffset)(THIS_ ULONG64 base, ULONG type_id, const char *field, ULONG *offset) PURE;
625 STDMETHOD(GetSymbolTypeId)(THIS_ const char *symbol, ULONG *type_id, ULONG64 *base) PURE;
626 STDMETHOD(GetOffsetTypeId)(THIS_ ULONG64 offset, ULONG *type_id, ULONG64 *base) PURE;
627 STDMETHOD(ReadTypedDataVirtual)(THIS_ ULONG64 offset, ULONG64 base, ULONG type_id, void *buffer,
628 ULONG buffer_size, ULONG *read_len) PURE;
629 STDMETHOD(WriteTypedDataVirtual)(THIS_ ULONG64 offset, ULONG64 base, ULONG type_id, void *buffer,
630 ULONG buffer_size, ULONG *written) PURE;
631 STDMETHOD(OutputTypedDataVirtual)(THIS_ ULONG output_control, ULONG64 offset, ULONG64 base, ULONG type_id,
632 ULONG flags) PURE;
633 STDMETHOD(ReadTypedDataPhysical)(THIS_ ULONG64 offset, ULONG64 base, ULONG type_id, void *buffer,
634 ULONG buffer_size, ULONG *read_len) PURE;
635 STDMETHOD(WriteTypedDataPhysical)(THIS_ ULONG64 offset, ULONG64 base, ULONG type_id, void *buffer,
636 ULONG buffer_size, ULONG *written) PURE;
637 STDMETHOD(OutputTypedDataPhysical)(THIS_ ULONG output_control, ULONG64 offset, ULONG64 base, ULONG type_id,
638 ULONG flags) PURE;
639 STDMETHOD(GetScope)(THIS_ ULONG64 *instr_offset, DEBUG_STACK_FRAME *frame, void *scope_context,
640 ULONG scope_context_size) PURE;
641 STDMETHOD(SetScope)(THIS_ ULONG64 instr_offset, DEBUG_STACK_FRAME *frame, void *scope_context,
642 ULONG scope_context_size) PURE;
643 STDMETHOD(ResetScope)(THIS) PURE;
644 STDMETHOD(GetScopeSymbolGroup)(THIS_ ULONG flags, IDebugSymbolGroup *update, IDebugSymbolGroup **symbols) PURE;
645 STDMETHOD(CreateSymbolGroup)(THIS_ IDebugSymbolGroup **group) PURE;
646 STDMETHOD(StartSymbolMatch)(THIS_ const char *pattern, ULONG64 *handle) PURE;
647 STDMETHOD(GetNextSymbolMatch)(THIS_ ULONG64 handle, char *buffer, ULONG buffer_size, ULONG *match_size,
648 ULONG64 *offset) PURE;
649 STDMETHOD(EndSymbolMatch)(THIS_ ULONG64 handle) PURE;
650 STDMETHOD(Reload)(THIS_ const char *path) PURE;
651 STDMETHOD(GetSymbolPath)(THIS_ char *buffer, ULONG buffer_size, ULONG *path_size) PURE;
652 STDMETHOD(SetSymbolPath)(THIS_ const char *path) PURE;
653 STDMETHOD(AppendSymbolPath)(THIS_ const char *path) PURE;
654 STDMETHOD(GetImagePath)(THIS_ char *buffer, ULONG buffer_size, ULONG *path_size) PURE;
655 STDMETHOD(SetImagePath)(THIS_ const char *path) PURE;
656 STDMETHOD(AppendImagePath)(THIS_ const char *path) PURE;
657 STDMETHOD(GetSourcePath)(THIS_ char *buffer, ULONG buffer_size, ULONG *path_size) PURE;
658 STDMETHOD(GetSourcePathElement)(THIS_ ULONG index, char *buffer, ULONG buffer_size, ULONG *element_size) PURE;
659 STDMETHOD(SetSourcePath)(THIS_ const char *path) PURE;
660 STDMETHOD(AppendSourcePath)(THIS_ const char *path) PURE;
661 STDMETHOD(FindSourceFile)(THIS_ ULONG start, const char *file, ULONG flags, ULONG *found_element, char *buffer,
662 ULONG buffer_size, ULONG *found_size) PURE;
663 STDMETHOD(GetSourceFileLineOffsets)(THIS_ const char *file, ULONG64 *buffer, ULONG buffer_lines,
664 ULONG *file_lines) PURE;
666 #undef INTERFACE
668 #define INTERFACE IDebugSymbols2
669 DECLARE_INTERFACE_(IDebugSymbols2, IUnknown)
671 /* IUnknown */
672 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
673 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
674 STDMETHOD_(ULONG, Release)(THIS) PURE;
675 /* IDebugSymbols */
676 STDMETHOD(GetSymbolOptions)(THIS_ ULONG *options) PURE;
677 STDMETHOD(AddSymbolOptions)(THIS_ ULONG options) PURE;
678 STDMETHOD(RemoveSymbolOptions)(THIS_ ULONG options) PURE;
679 STDMETHOD(SetSymbolOptions)(THIS_ ULONG options) PURE;
680 STDMETHOD(GetNameByOffset)(THIS_ ULONG64 offset, char *buffer, ULONG buffer_size, ULONG *name_size,
681 ULONG64 *displacement) PURE;
682 STDMETHOD(GetOffsetByName)(THIS_ const char *symbol, ULONG64 *offset) PURE;
683 STDMETHOD(GetNearNameByOffset)(THIS_ ULONG64 offset, LONG delta, char *buffer, ULONG buffer_size,ULONG *name_size,
684 ULONG64 *displacement) PURE;
685 STDMETHOD(GetLineByOffset)(THIS_ ULONG64 offset, ULONG *line, char *buffer, ULONG buffer_size, ULONG *file_size,
686 ULONG64 *displacement) PURE;
687 STDMETHOD(GetOffsetByLine)(THIS_ ULONG line, const char *file, ULONG64 *offset) PURE;
688 STDMETHOD(GetNumberModules)(THIS_ ULONG *loaded, ULONG *unloaded) PURE;
689 STDMETHOD(GetModuleByIndex)(THIS_ ULONG index, ULONG64 *base) PURE;
690 STDMETHOD(GetModuleByModuleName)(THIS_ const char *name, ULONG start_index, ULONG *index, ULONG64 *base) PURE;
691 STDMETHOD(GetModuleByOffset)(THIS_ ULONG64 offset, ULONG start_index, ULONG *index, ULONG64 *base) PURE;
692 STDMETHOD(GetModuleNames)(THIS_ ULONG index, ULONG64 base, char *image_name, ULONG image_name_buffer_size,
693 ULONG *image_name_size, char *module_name, ULONG module_name_buffer_size, ULONG *module_name_size,
694 char *loaded_image_name, ULONG loaded_image_name_buffer_size, ULONG *loaded_image_size) PURE;
695 STDMETHOD(GetModuleParameters)(THIS_ ULONG count, ULONG64 *bases, ULONG start,
696 DEBUG_MODULE_PARAMETERS *parameters) PURE;
697 STDMETHOD(GetSymbolModule)(THIS_ const char *symbol, ULONG64 *base) PURE;
698 STDMETHOD(GetTypeName)(THIS_ ULONG64 base, ULONG type_id, char *buffer, ULONG buffer_size, ULONG *name_size) PURE;
699 STDMETHOD(GetTypeId)(THIS_ ULONG64 module, const char *name, ULONG *type_id) PURE;
700 STDMETHOD(GetTypeSize)(THIS_ ULONG64 module, ULONG type_id, ULONG *size) PURE;
701 STDMETHOD(GetFieldOffset)(THIS_ ULONG64 base, ULONG type_id, const char *field, ULONG *offset) PURE;
702 STDMETHOD(GetSymbolTypeId)(THIS_ const char *symbol, ULONG *type_id, ULONG64 *base) PURE;
703 STDMETHOD(GetOffsetTypeId)(THIS_ ULONG64 offset, ULONG *type_id, ULONG64 *base) PURE;
704 STDMETHOD(ReadTypedDataVirtual)(THIS_ ULONG64 offset, ULONG64 base, ULONG type_id, void *buffer,
705 ULONG buffer_size, ULONG *read_len) PURE;
706 STDMETHOD(WriteTypedDataVirtual)(THIS_ ULONG64 offset, ULONG64 base, ULONG type_id, void *buffer,
707 ULONG buffer_size, ULONG *written) PURE;
708 STDMETHOD(OutputTypedDataVirtual)(THIS_ ULONG output_control, ULONG64 offset, ULONG64 base, ULONG type_id,
709 ULONG flags) PURE;
710 STDMETHOD(ReadTypedDataPhysical)(THIS_ ULONG64 offset, ULONG64 base, ULONG type_id, void *buffer,
711 ULONG buffer_size, ULONG *read_len) PURE;
712 STDMETHOD(WriteTypedDataPhysical)(THIS_ ULONG64 offset, ULONG64 base, ULONG type_id, void *buffer,
713 ULONG buffer_size, ULONG *written) PURE;
714 STDMETHOD(OutputTypedDataPhysical)(THIS_ ULONG output_control, ULONG64 offset, ULONG64 base, ULONG type_id,
715 ULONG flags) PURE;
716 STDMETHOD(GetScope)(THIS_ ULONG64 *instr_offset, DEBUG_STACK_FRAME *frame, void *scope_context,
717 ULONG scope_context_size) PURE;
718 STDMETHOD(SetScope)(THIS_ ULONG64 instr_offset, DEBUG_STACK_FRAME *frame, void *scope_context,
719 ULONG scope_context_size) PURE;
720 STDMETHOD(ResetScope)(THIS) PURE;
721 STDMETHOD(GetScopeSymbolGroup)(THIS_ ULONG flags, IDebugSymbolGroup *update, IDebugSymbolGroup **symbols) PURE;
722 STDMETHOD(CreateSymbolGroup)(THIS_ IDebugSymbolGroup **group) PURE;
723 STDMETHOD(StartSymbolMatch)(THIS_ const char *pattern, ULONG64 *handle) PURE;
724 STDMETHOD(GetNextSymbolMatch)(THIS_ ULONG64 handle, char *buffer, ULONG buffer_size, ULONG *match_size,
725 ULONG64 *offset) PURE;
726 STDMETHOD(EndSymbolMatch)(THIS_ ULONG64 handle) PURE;
727 STDMETHOD(Reload)(THIS_ const char *path) PURE;
728 STDMETHOD(GetSymbolPath)(THIS_ char *buffer, ULONG buffer_size, ULONG *path_size) PURE;
729 STDMETHOD(SetSymbolPath)(THIS_ const char *path) PURE;
730 STDMETHOD(AppendSymbolPath)(THIS_ const char *path) PURE;
731 STDMETHOD(GetImagePath)(THIS_ char *buffer, ULONG buffer_size, ULONG *path_size) PURE;
732 STDMETHOD(SetImagePath)(THIS_ const char *path) PURE;
733 STDMETHOD(AppendImagePath)(THIS_ const char *path) PURE;
734 STDMETHOD(GetSourcePath)(THIS_ char *buffer, ULONG buffer_size, ULONG *path_size) PURE;
735 STDMETHOD(GetSourcePathElement)(THIS_ ULONG index, char *buffer, ULONG buffer_size, ULONG *element_size) PURE;
736 STDMETHOD(SetSourcePath)(THIS_ const char *path) PURE;
737 STDMETHOD(AppendSourcePath)(THIS_ const char *path) PURE;
738 STDMETHOD(FindSourceFile)(THIS_ ULONG start, const char *file, ULONG flags, ULONG *found_element, char *buffer,
739 ULONG buffer_size, ULONG *found_size) PURE;
740 STDMETHOD(GetSourceFileLineOffsets)(THIS_ const char *file, ULONG64 *buffer, ULONG buffer_lines,
741 ULONG *file_lines) PURE;
742 /* IDebugSymbols2 */
743 STDMETHOD(GetModuleVersionInformation)(THIS_ ULONG index, ULONG64 base, const char *item, void *buffer,
744 ULONG buffer_size, ULONG *info_size) PURE;
745 STDMETHOD(GetModuleNameString)(THIS_ ULONG which, ULONG index, ULONG64 base, char *buffer, ULONG buffer_size,
746 ULONG *name_size) PURE;
747 STDMETHOD(GetConstantName)(THIS_ ULONG64 module, ULONG type_id, ULONG64 value, char *buffer, ULONG buffer_size,
748 ULONG *name_size) PURE;
749 STDMETHOD(GetFieldName)(THIS_ ULONG64 module, ULONG type_id, ULONG field_index, char *buffer, ULONG buffer_size,
750 ULONG *name_size) PURE;
751 STDMETHOD(GetTypeOptions)(THIS_ ULONG *options) PURE;
752 STDMETHOD(AddTypeOptions)(THIS_ ULONG options) PURE;
753 STDMETHOD(RemoveTypeOptions)(THIS_ ULONG options) PURE;
754 STDMETHOD(SetTypeOptions)(THIS_ ULONG options) PURE;
756 #undef INTERFACE
758 #define INTERFACE IDebugSymbols3
759 DECLARE_INTERFACE_(IDebugSymbols3, IUnknown)
761 /* IUnknown */
762 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
763 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
764 STDMETHOD_(ULONG, Release)(THIS) PURE;
765 /* IDebugSymbols */
766 STDMETHOD(GetSymbolOptions)(THIS_ ULONG *options) PURE;
767 STDMETHOD(AddSymbolOptions)(THIS_ ULONG options) PURE;
768 STDMETHOD(RemoveSymbolOptions)(THIS_ ULONG options) PURE;
769 STDMETHOD(SetSymbolOptions)(THIS_ ULONG options) PURE;
770 STDMETHOD(GetNameByOffset)(THIS_ ULONG64 offset, char *buffer, ULONG buffer_size, ULONG *name_size,
771 ULONG64 *displacement) PURE;
772 STDMETHOD(GetOffsetByName)(THIS_ const char *symbol, ULONG64 *offset) PURE;
773 STDMETHOD(GetNearNameByOffset)(THIS_ ULONG64 offset, LONG delta, char *buffer, ULONG buffer_size,ULONG *name_size,
774 ULONG64 *displacement) PURE;
775 STDMETHOD(GetLineByOffset)(THIS_ ULONG64 offset, ULONG *line, char *buffer, ULONG buffer_size, ULONG *file_size,
776 ULONG64 *displacement) PURE;
777 STDMETHOD(GetOffsetByLine)(THIS_ ULONG line, const char *file, ULONG64 *offset) PURE;
778 STDMETHOD(GetNumberModules)(THIS_ ULONG *loaded, ULONG *unloaded) PURE;
779 STDMETHOD(GetModuleByIndex)(THIS_ ULONG index, ULONG64 *base) PURE;
780 STDMETHOD(GetModuleByModuleName)(THIS_ const char *name, ULONG start_index, ULONG *index, ULONG64 *base) PURE;
781 STDMETHOD(GetModuleByOffset)(THIS_ ULONG64 offset, ULONG start_index, ULONG *index, ULONG64 *base) PURE;
782 STDMETHOD(GetModuleNames)(THIS_ ULONG index, ULONG64 base, char *image_name, ULONG image_name_buffer_size,
783 ULONG *image_name_size, char *module_name, ULONG module_name_buffer_size, ULONG *module_name_size,
784 char *loaded_image_name, ULONG loaded_image_name_buffer_size, ULONG *loaded_image_size) PURE;
785 STDMETHOD(GetModuleParameters)(THIS_ ULONG count, ULONG64 *bases, ULONG start,
786 DEBUG_MODULE_PARAMETERS *parameters) PURE;
787 STDMETHOD(GetSymbolModule)(THIS_ const char *symbol, ULONG64 *base) PURE;
788 STDMETHOD(GetTypeName)(THIS_ ULONG64 base, ULONG type_id, char *buffer, ULONG buffer_size, ULONG *name_size) PURE;
789 STDMETHOD(GetTypeId)(THIS_ ULONG64 module, const char *name, ULONG *type_id) PURE;
790 STDMETHOD(GetTypeSize)(THIS_ ULONG64 module, ULONG type_id, ULONG *size) PURE;
791 STDMETHOD(GetFieldOffset)(THIS_ ULONG64 base, ULONG type_id, const char *field, ULONG *offset) PURE;
792 STDMETHOD(GetSymbolTypeId)(THIS_ const char *symbol, ULONG *type_id, ULONG64 *base) PURE;
793 STDMETHOD(GetOffsetTypeId)(THIS_ ULONG64 offset, ULONG *type_id, ULONG64 *base) PURE;
794 STDMETHOD(ReadTypedDataVirtual)(THIS_ ULONG64 offset, ULONG64 base, ULONG type_id, void *buffer,
795 ULONG buffer_size, ULONG *read_len) PURE;
796 STDMETHOD(WriteTypedDataVirtual)(THIS_ ULONG64 offset, ULONG64 base, ULONG type_id, void *buffer,
797 ULONG buffer_size, ULONG *written) PURE;
798 STDMETHOD(OutputTypedDataVirtual)(THIS_ ULONG output_control, ULONG64 offset, ULONG64 base, ULONG type_id,
799 ULONG flags) PURE;
800 STDMETHOD(ReadTypedDataPhysical)(THIS_ ULONG64 offset, ULONG64 base, ULONG type_id, void *buffer,
801 ULONG buffer_size, ULONG *read_len) PURE;
802 STDMETHOD(WriteTypedDataPhysical)(THIS_ ULONG64 offset, ULONG64 base, ULONG type_id, void *buffer,
803 ULONG buffer_size, ULONG *written) PURE;
804 STDMETHOD(OutputTypedDataPhysical)(THIS_ ULONG output_control, ULONG64 offset, ULONG64 base, ULONG type_id,
805 ULONG flags) PURE;
806 STDMETHOD(GetScope)(THIS_ ULONG64 *instr_offset, DEBUG_STACK_FRAME *frame, void *scope_context,
807 ULONG scope_context_size) PURE;
808 STDMETHOD(SetScope)(THIS_ ULONG64 instr_offset, DEBUG_STACK_FRAME *frame, void *scope_context,
809 ULONG scope_context_size) PURE;
810 STDMETHOD(ResetScope)(THIS) PURE;
811 STDMETHOD(GetScopeSymbolGroup)(THIS_ ULONG flags, IDebugSymbolGroup *update, IDebugSymbolGroup **symbols) PURE;
812 STDMETHOD(CreateSymbolGroup)(THIS_ IDebugSymbolGroup **group) PURE;
813 STDMETHOD(StartSymbolMatch)(THIS_ const char *pattern, ULONG64 *handle) PURE;
814 STDMETHOD(GetNextSymbolMatch)(THIS_ ULONG64 handle, char *buffer, ULONG buffer_size, ULONG *match_size,
815 ULONG64 *offset) PURE;
816 STDMETHOD(EndSymbolMatch)(THIS_ ULONG64 handle) PURE;
817 STDMETHOD(Reload)(THIS_ const char *path) PURE;
818 STDMETHOD(GetSymbolPath)(THIS_ char *buffer, ULONG buffer_size, ULONG *path_size) PURE;
819 STDMETHOD(SetSymbolPath)(THIS_ const char *path) PURE;
820 STDMETHOD(AppendSymbolPath)(THIS_ const char *path) PURE;
821 STDMETHOD(GetImagePath)(THIS_ char *buffer, ULONG buffer_size, ULONG *path_size) PURE;
822 STDMETHOD(SetImagePath)(THIS_ const char *path) PURE;
823 STDMETHOD(AppendImagePath)(THIS_ const char *path) PURE;
824 STDMETHOD(GetSourcePath)(THIS_ char *buffer, ULONG buffer_size, ULONG *path_size) PURE;
825 STDMETHOD(GetSourcePathElement)(THIS_ ULONG index, char *buffer, ULONG buffer_size, ULONG *element_size) PURE;
826 STDMETHOD(SetSourcePath)(THIS_ const char *path) PURE;
827 STDMETHOD(AppendSourcePath)(THIS_ const char *path) PURE;
828 STDMETHOD(FindSourceFile)(THIS_ ULONG start, const char *file, ULONG flags, ULONG *found_element, char *buffer,
829 ULONG buffer_size, ULONG *found_size) PURE;
830 STDMETHOD(GetSourceFileLineOffsets)(THIS_ const char *file, ULONG64 *buffer, ULONG buffer_lines,
831 ULONG *file_lines) PURE;
832 /* IDebugSymbols2 */
833 STDMETHOD(GetModuleVersionInformation)(THIS_ ULONG index, ULONG64 base, const char *item, void *buffer,
834 ULONG buffer_size, ULONG *info_size) PURE;
835 STDMETHOD(GetModuleNameString)(THIS_ ULONG which, ULONG index, ULONG64 base, char *buffer, ULONG buffer_size,
836 ULONG *name_size) PURE;
837 STDMETHOD(GetConstantName)(THIS_ ULONG64 module, ULONG type_id, ULONG64 value, char *buffer, ULONG buffer_size,
838 ULONG *name_size) PURE;
839 STDMETHOD(GetFieldName)(THIS_ ULONG64 module, ULONG type_id, ULONG field_index, char *buffer, ULONG buffer_size,
840 ULONG *name_size) PURE;
841 STDMETHOD(GetTypeOptions)(THIS_ ULONG *options) PURE;
842 STDMETHOD(AddTypeOptions)(THIS_ ULONG options) PURE;
843 STDMETHOD(RemoveTypeOptions)(THIS_ ULONG options) PURE;
844 STDMETHOD(SetTypeOptions)(THIS_ ULONG options) PURE;
845 /* IDebugSymbols3 */
846 STDMETHOD(GetNameByOffsetWide)(THIS_ ULONG64 offset, WCHAR *buffer, ULONG buffer_size, ULONG *name_size,
847 ULONG64 *displacement) PURE;
848 STDMETHOD(GetOffsetByNameWide)(THIS_ const WCHAR *symbol, ULONG64 *offset) PURE;
849 STDMETHOD(GetNearNameByOffsetWide)(THIS_ ULONG64 offset, LONG delta, WCHAR *buffer, ULONG buffer_size,
850 ULONG *name_size, ULONG64 *displacement) PURE;
851 STDMETHOD(GetLineByOffsetWide)(THIS_ ULONG64 offset, ULONG *line, WCHAR *buffer, ULONG buffer_size,
852 ULONG *file_size, ULONG64 *displacement) PURE;
853 STDMETHOD(GetOffsetByLineWide)(THIS_ ULONG line, const WCHAR *file, ULONG64 *offset) PURE;
854 STDMETHOD(GetModuleByModuleNameWide)(THIS_ const WCHAR *name, ULONG start_index, ULONG *index, ULONG64 *base) PURE;
855 STDMETHOD(GetSymbolModuleWide)(THIS_ const WCHAR *symbol, ULONG64 *base) PURE;
856 STDMETHOD(GetTypeNameWide)(THIS_ ULONG64 module, ULONG type_id, WCHAR *buffer, ULONG buffer_size,
857 ULONG *name_size) PURE;
858 STDMETHOD(GetTypeIdWide)(THIS_ ULONG64 module, const WCHAR *name, ULONG *type_id) PURE;
859 STDMETHOD(GetFieldOffsetWide)(THIS_ ULONG64 module, ULONG type_id, const WCHAR *field, ULONG *offset) PURE;
860 STDMETHOD(GetSymbolTypeIdWide)(THIS_ const WCHAR *symbol, ULONG *type_id, ULONG64 *module) PURE;
861 STDMETHOD(GetScopeSymbolGroup2)(THIS_ ULONG flags, PDEBUG_SYMBOL_GROUP2 update,
862 PDEBUG_SYMBOL_GROUP2 *symbols) PURE;
863 STDMETHOD(CreateSymbolGroup2)(THIS_ PDEBUG_SYMBOL_GROUP2 *group) PURE;
864 STDMETHOD(StartSymbolMatchWide)(THIS_ const WCHAR *pattern, ULONG64 *handle) PURE;
865 STDMETHOD(GetNextSymbolMatchWide)(THIS_ ULONG64 handle, WCHAR *buffer, ULONG buffer_size, ULONG *match_size,
866 ULONG64 *offset) PURE;
867 STDMETHOD(ReloadWide)(THIS_ const WCHAR *module) PURE;
868 STDMETHOD(GetSymbolPathWide)(THIS_ WCHAR *buffer, ULONG buffer_size, ULONG *path_size) PURE;
869 STDMETHOD(SetSymbolPathWide)(THIS_ const WCHAR *path) PURE;
870 STDMETHOD(AppendSymbolPathWide)(THIS_ const WCHAR *addition) PURE;
871 STDMETHOD(GetImagePathWide)(THIS_ WCHAR *buffer, ULONG buffer_size, ULONG *path_size) PURE;
872 STDMETHOD(SetImagePathWide)(THIS_ const WCHAR *path) PURE;
873 STDMETHOD(AppendImagePathWide)(THIS_ const WCHAR *addition) PURE;
874 STDMETHOD(GetSourcePathWide)(THIS_ WCHAR *buffer, ULONG buffer_size, ULONG *path_size) PURE;
875 STDMETHOD(GetSourcePathElementWide)(THIS_ ULONG index, WCHAR *buffer, ULONG buffer_size, ULONG *element_size) PURE;
876 STDMETHOD(SetSourcePathWide)(THIS_ const WCHAR *path) PURE;
877 STDMETHOD(AppendSourcePathWide)(THIS_ const WCHAR *addition) PURE;
878 STDMETHOD(FindSourceFileWide)(THIS_ ULONG start_element, const WCHAR *file, ULONG flags, ULONG *found_element,
879 WCHAR *buffer, ULONG buffer_size, ULONG *found_size) PURE;
880 STDMETHOD(GetSourceFileLineOffsetsWide)(THIS_ const WCHAR *file, ULONG64 *buffer, ULONG buffer_lines,
881 ULONG *file_lines) PURE;
882 STDMETHOD(GetModuleVersionInformationWide)(THIS_ ULONG index, ULONG64 base, const WCHAR *item, void *buffer,
883 ULONG buffer_size, ULONG *version_info_size) PURE;
884 STDMETHOD(GetModuleNameStringWide)(THIS_ ULONG which, ULONG index, ULONG64 base, WCHAR *buffer, ULONG buffer_size,
885 ULONG *name_size) PURE;
886 STDMETHOD(GetConstantNameWide)(THIS_ ULONG64 module, ULONG type_id, ULONG64 value, WCHAR *buffer,
887 ULONG buffer_size, ULONG *name_size) PURE;
888 STDMETHOD(GetFieldNameWide)(THIS_ ULONG64 module, ULONG type_id, ULONG field_index, WCHAR *buffer,
889 ULONG buffer_size, ULONG *name_size) PURE;
890 STDMETHOD(IsManagedModule)(THIS_ ULONG index, ULONG64 base) PURE;
891 STDMETHOD(GetModuleByModuleName2)(THIS_ const char *name, ULONG start_index, ULONG flags, ULONG *index,
892 ULONG64 *base) PURE;
893 STDMETHOD(GetModuleByModuleName2Wide)(THIS_ const WCHAR *name, ULONG start_index, ULONG flags, ULONG *index,
894 ULONG64 *base) PURE;
895 STDMETHOD(GetModuleByOffset2)(THIS_ ULONG64 offset, ULONG start_index, ULONG flags, ULONG *index,
896 ULONG64 *base) PURE;
897 STDMETHOD(AddSyntheticModule)(THIS_ ULONG64 base, ULONG size, const char *image_path, const char *module_name,
898 ULONG flags) PURE;
899 STDMETHOD(AddSyntheticModuleWide)(THIS_ ULONG64 base, ULONG size, const WCHAR *image_path,
900 const WCHAR *module_name, ULONG flags) PURE;
901 STDMETHOD(RemoveSyntheticModule)(THIS_ ULONG64 base) PURE;
902 STDMETHOD(GetCurrentScopeFrameIndex)(THIS_ ULONG *index) PURE;
903 STDMETHOD(SetScopeFrameByIndex)(THIS_ ULONG index) PURE;
904 STDMETHOD(SetScopeFromJitDebugInfo)(THIS_ ULONG output_control, ULONG64 info_offset) PURE;
905 STDMETHOD(SetScopeFromStoredEvent)(THIS) PURE;
906 STDMETHOD(OutputSymbolByOffset)(THIS_ ULONG output_control, ULONG flags, ULONG64 offset) PURE;
907 STDMETHOD(GetFunctionEntryByOffset)(THIS_ ULONG64 offset, ULONG flags, void *buffer, ULONG buffer_size,
908 ULONG *needed_size) PURE;
909 STDMETHOD(GetFieldTypeAndOffset)(THIS_ ULONG64 module, ULONG container_type_id, const char *field,
910 ULONG *field_type_id, ULONG *offset) PURE;
911 STDMETHOD(GetFieldTypeAndOffsetWide)(THIS_ ULONG64 module, ULONG container_type_id, const WCHAR *field,
912 ULONG *field_type_id, ULONG *offset) PURE;
913 STDMETHOD(AddSyntheticSymbol)(THIS_ ULONG64 offset, ULONG size, const char *name, ULONG flags,
914 DEBUG_MODULE_AND_ID *id) PURE;
915 STDMETHOD(AddSyntheticSymbolWide)(THIS_ ULONG64 offset, ULONG size, const WCHAR *name, ULONG flags,
916 DEBUG_MODULE_AND_ID *id) PURE;
917 STDMETHOD(RemoveSyntheticSymbol)(THIS_ DEBUG_MODULE_AND_ID *id) PURE;
918 STDMETHOD(GetSymbolEntriesByOffset)(THIS_ ULONG64 offset, ULONG flags, DEBUG_MODULE_AND_ID *ids,
919 LONG64 *displacements, ULONG count, ULONG *entries) PURE;
920 STDMETHOD(GetSymbolEntriesByName)(THIS_ const char *symbol, ULONG flags, DEBUG_MODULE_AND_ID *ids, ULONG count,
921 ULONG *entries) PURE;
922 STDMETHOD(GetSymbolEntriesByNameWide)(THIS_ const WCHAR *symbol, ULONG flags, DEBUG_MODULE_AND_ID *ids,
923 ULONG count, ULONG *entries) PURE;
924 STDMETHOD(GetSymbolEntryByToken)(THIS_ ULONG64 base, ULONG token, DEBUG_MODULE_AND_ID *id) PURE;
925 STDMETHOD(GetSymbolEntryInformation)(THIS_ DEBUG_MODULE_AND_ID *id, DEBUG_SYMBOL_ENTRY *info) PURE;
926 STDMETHOD(GetSymbolEntryString)(THIS_ DEBUG_MODULE_AND_ID *id, ULONG which, char *buffer, ULONG buffer_size,
927 ULONG *string_size) PURE;
928 STDMETHOD(GetSymbolEntryStringWide)(THIS_ DEBUG_MODULE_AND_ID *id, ULONG which, WCHAR *buffer, ULONG buffer_size,
929 ULONG *string_size) PURE;
930 STDMETHOD(GetSymbolEntryOffsetRegions)(THIS_ DEBUG_MODULE_AND_ID *id, ULONG flags, DEBUG_OFFSET_REGION *regions,
931 ULONG regions_count, ULONG *regions_avail) PURE;
932 STDMETHOD(GetSymbolEntryBySymbolEntry)(THIS_ DEBUG_MODULE_AND_ID *from_id, ULONG flags,
933 DEBUG_MODULE_AND_ID *to_id) PURE;
934 STDMETHOD(GetSourceEntriesByOffset)(THIS_ ULONG64 offset, ULONG flags, DEBUG_SYMBOL_SOURCE_ENTRY *entries,
935 ULONG count, ULONG *entries_avail) PURE;
936 STDMETHOD(GetSourceEntriesByLine)(THIS_ ULONG line, const char *file, ULONG flags,
937 DEBUG_SYMBOL_SOURCE_ENTRY *entries, ULONG count, ULONG *entries_avail) PURE;
938 STDMETHOD(GetSourceEntriesByLineWide)(THIS_ ULONG line, const WCHAR *file, ULONG flags,
939 DEBUG_SYMBOL_SOURCE_ENTRY *entries, ULONG count, ULONG *entries_avail) PURE;
940 STDMETHOD(GetSourceEntryString)(THIS_ DEBUG_SYMBOL_SOURCE_ENTRY *entry, ULONG which, char *buffer,
941 ULONG buffer_size, ULONG *string_size) PURE;
942 STDMETHOD(GetSourceEntryStringWide)(THIS_ DEBUG_SYMBOL_SOURCE_ENTRY *entry, ULONG which, WCHAR *buffer,
943 ULONG buffer_size, ULONG *string_size) PURE;
944 STDMETHOD(GetSourceEntryOffsetRegions)(THIS_ DEBUG_SYMBOL_SOURCE_ENTRY *entry, ULONG flags,
945 DEBUG_OFFSET_REGION *regions, ULONG count, ULONG *regions_avail) PURE;
946 STDMETHOD(GetSourceEntryBySourceEntry)(THIS_ DEBUG_SYMBOL_SOURCE_ENTRY *from_entry, ULONG flags,
947 DEBUG_SYMBOL_SOURCE_ENTRY *to_entry) PURE;
949 #undef INTERFACE
951 #define INTERFACE IDebugControl
952 DECLARE_INTERFACE_(IDebugControl, IUnknown)
954 /* IUnknown */
955 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
956 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
957 STDMETHOD_(ULONG, Release)(THIS) PURE;
958 /* IDebugControl */
959 STDMETHOD(GetInterrupt)(THIS) PURE;
960 STDMETHOD(SetInterrupt)(THIS_ ULONG flags) PURE;
961 STDMETHOD(GetIterruptTimeout)(THIS_ ULONG *timeout) PURE;
962 STDMETHOD(SetInterruptTimeout)(THIS_ ULONG timeout) PURE;
963 STDMETHOD(GetLogFile)(THIS_ char *buffer, ULONG buffer_size, ULONG *file_size, BOOL *append) PURE;
964 STDMETHOD(OpenLogFile)(THIS_ const char *file, BOOL append) PURE;
965 STDMETHOD(CloseLogFile)(THIS) PURE;
966 STDMETHOD(GetLogMask)(THIS_ ULONG *mask) PURE;
967 STDMETHOD(SetLogMask)(THIS_ ULONG mask) PURE;
968 STDMETHOD(Input)(THIS_ char *buffer, ULONG buffer_size, ULONG *input_size) PURE;
969 STDMETHOD(ReturnInput)(THIS_ const char *buffer) PURE;
970 STDMETHODV(Output)(THIS_ ULONG mask, const char *format, ...) PURE;
971 STDMETHOD(OutputVaList)(THIS_ ULONG mask, const char *format, __ms_va_list args) PURE;
972 STDMETHODV(ControlledOutput)(THIS_ ULONG output_control, ULONG mask, const char *format, ...) PURE;
973 STDMETHOD(ControlledOutputVaList)(THIS_ ULONG output_control, ULONG mask, const char *format,
974 __ms_va_list args) PURE;
975 STDMETHODV(OutputPrompt)(THIS_ ULONG output_control, const char *format, ...) PURE;
976 STDMETHOD(OutputPromptVaList)(THIS_ ULONG output_control, const char *format, __ms_va_list args) PURE;
977 STDMETHOD(GetPromptText)(THIS_ char *buffer, ULONG buffer_size, ULONG *text_size) PURE;
978 STDMETHOD(OutputCurrentState)(THIS_ ULONG output_control, ULONG flags) PURE;
979 STDMETHOD(OutputVersionInformation)(THIS_ ULONG output_control) PURE;
980 STDMETHOD(GetNotifyEventHandle)(THIS_ ULONG64 *handle) PURE;
981 STDMETHOD(SetNotifyEventHandle)(THIS_ ULONG64 handle) PURE;
982 STDMETHOD(Assemble)(THIS_ ULONG64 offset, const char *code, ULONG64 *end_offset) PURE;
983 STDMETHOD(Disassemble)(THIS_ ULONG64 offset, ULONG flags, char *buffer, ULONG buffer_size, ULONG *disassm_size,
984 ULONG64 *end_offset) PURE;
985 STDMETHOD(GetDisassembleEffectiveOffset)(THIS_ ULONG64 *offset) PURE;
986 STDMETHOD(OutputDisassembly)(THIS_ ULONG output_control, ULONG64 offset, ULONG flags, ULONG64 *end_offset) PURE;
987 STDMETHOD(OutputDisassemblyLines)(THIS_ ULONG output_control, ULONG prev_lines, ULONG total_lines, ULONG64 offset,
988 ULONG flags, ULONG *offset_line, ULONG64 *start_offset, ULONG64 *end_offset, ULONG64 *line_offsets) PURE;
989 STDMETHOD(GetNearInstruction)(THIS_ ULONG64 offset, LONG delta, ULONG64 *instr_offset) PURE;
990 STDMETHOD(GetStackTrace)(THIS_ ULONG64 frame_offset, ULONG64 stack_offset, ULONG64 instr_offset,
991 DEBUG_STACK_FRAME *frames, ULONG frames_size, ULONG *frames_filled) PURE;
992 STDMETHOD(GetReturnOffset)(THIS_ ULONG64 *offset) PURE;
993 STDMETHOD(OutputStackTrace)(THIS_ ULONG output_control, DEBUG_STACK_FRAME *frames, ULONG frames_size,
994 ULONG flags) PURE;
995 STDMETHOD(GetDebuggeeType)(THIS_ ULONG *_class, ULONG *qualifier) PURE;
996 STDMETHOD(GetActualProcessorType)(THIS_ ULONG *type) PURE;
997 STDMETHOD(GetExecutingProcessorType)(THIS_ ULONG *type) PURE;
998 STDMETHOD(GetNumberPossibleExecutingProcessorTypes)(THIS_ ULONG *count) PURE;
999 STDMETHOD(GetPossibleExecutingProcessorTypes)(THIS_ ULONG start, ULONG count, ULONG *types) PURE;
1000 STDMETHOD(GetNumberProcessors)(THIS_ ULONG *count) PURE;
1001 STDMETHOD(GetSystemVersion)(THIS_ ULONG *platform_id, ULONG *major, ULONG *minor, char *sp_string,
1002 ULONG sp_string_size, ULONG *sp_string_used, ULONG *sp_number, char *build_string, ULONG build_string_size,
1003 ULONG *build_string_used) PURE;
1004 STDMETHOD(GetPageSize)(THIS_ ULONG *size) PURE;
1005 STDMETHOD(IsPointer64Bit)(THIS) PURE;
1006 STDMETHOD(ReadBugCheckData)(THIS_ ULONG *code, ULONG64 *arg1, ULONG64 *arg2, ULONG64 *arg3, ULONG64 *arg4) PURE;
1007 STDMETHOD(GetNumberSupportedProcessorTypes)(THIS_ ULONG *count) PURE;
1008 STDMETHOD(GetSupportedProcessorTypes)(THIS_ ULONG start, ULONG count, ULONG *types) PURE;
1009 STDMETHOD(GetProcessorTypeNames)(THIS_ ULONG type, char *full_name, ULONG full_name_buffer_size,
1010 ULONG *full_name_size, char *abbrev_name, ULONG abbrev_name_buffer_size, ULONG *abbrev_name_size) PURE;
1011 STDMETHOD(GetEffectiveProcessorType)(THIS_ ULONG *type) PURE;
1012 STDMETHOD(SetEffectiveProcessorType)(THIS_ ULONG type) PURE;
1013 STDMETHOD(GetExecutionStatus)(THIS_ ULONG *status) PURE;
1014 STDMETHOD(SetExecutionStatus)(THIS_ ULONG status) PURE;
1015 STDMETHOD(GetCodeLevel)(THIS_ ULONG *level) PURE;
1016 STDMETHOD(SetCodeLevel)(THIS_ ULONG level) PURE;
1017 STDMETHOD(GetEngineOptions)(THIS_ ULONG *options) PURE;
1018 STDMETHOD(AddEngineOptions)(THIS_ ULONG options) PURE;
1019 STDMETHOD(RemoveEngineOptions)(THIS_ ULONG options) PURE;
1020 STDMETHOD(SetEngineOptions)(THIS_ ULONG options) PURE;
1021 STDMETHOD(GetSystemErrorControl)(THIS_ ULONG *output_level, ULONG *break_level) PURE;
1022 STDMETHOD(SetSystemErrorControl)(THIS_ ULONG output_level, ULONG break_level) PURE;
1023 STDMETHOD(GetTextMacro)(THIS_ ULONG slot, char *buffer, ULONG buffer_size, ULONG *macro_size) PURE;
1024 STDMETHOD(SetTextMacro)(THIS_ ULONG slot, const char *macro) PURE;
1025 STDMETHOD(GetRadix)(THIS_ ULONG *radix) PURE;
1026 STDMETHOD(SetRadix)(THIS_ ULONG radix) PURE;
1027 STDMETHOD(Evaluate)(THIS_ const char *expression, ULONG desired_type, DEBUG_VALUE *value,
1028 ULONG *remainder_index) PURE;
1029 STDMETHOD(CoerceValue)(THIS_ DEBUG_VALUE input, ULONG output_type, DEBUG_VALUE *output) PURE;
1030 STDMETHOD(CoerceValues)(THIS_ ULONG count, DEBUG_VALUE *input, ULONG *output_types, DEBUG_VALUE *output) PURE;
1031 STDMETHOD(Execute)(THIS_ ULONG output_control, const char *command, ULONG flags) PURE;
1032 STDMETHOD(ExecuteCommandFile)(THIS_ ULONG output_control, const char *command_file, ULONG flags) PURE;
1033 STDMETHOD(GetNumberBreakpoints)(THIS_ ULONG *count) PURE;
1034 STDMETHOD(GetBreakpointByIndex)(THIS_ ULONG index, IDebugBreakpoint **bp) PURE;
1035 STDMETHOD(GetBreakpointById)(THIS_ ULONG id, IDebugBreakpoint **bp) PURE;
1036 STDMETHOD(GetBreakpointParameters)(THIS_ ULONG count, ULONG *ids, ULONG start,
1037 DEBUG_BREAKPOINT_PARAMETERS *parameters) PURE;
1038 STDMETHOD(AddBreakpoint)(THIS_ ULONG type, ULONG desired_id, IDebugBreakpoint **bp) PURE;
1039 STDMETHOD(RemoveBreakpoint)(THIS_ IDebugBreakpoint *bp) PURE;
1040 STDMETHOD(AddExtension)(THIS_ const char *path, ULONG flags, ULONG64 *handle) PURE;
1041 STDMETHOD(RemoveExtension)(THIS_ ULONG64 handle) PURE;
1042 STDMETHOD(GetExtensionByPath)(THIS_ const char *path, ULONG64 *handle) PURE;
1043 STDMETHOD(CallExtension)(THIS_ ULONG64 handle, const char *function, const char *args) PURE;
1044 STDMETHOD(GetExtensionFunction)(THIS_ ULONG64 handle, const char *name, void *function) PURE;
1045 STDMETHOD(GetWindbgExtensionApis32)(THIS_ PWINDBG_EXTENSION_APIS32 api) PURE;
1046 STDMETHOD(GetWindbgExtensionApis64)(THIS_ PWINDBG_EXTENSION_APIS64 api) PURE;
1047 STDMETHOD(GetNumberEventFilters)(THIS_ ULONG *specific_events, ULONG *specific_exceptions,
1048 ULONG *arbitrary_exceptions) PURE;
1049 STDMETHOD(GetEventFilterText)(THIS_ ULONG index, char *buffer, ULONG buffer_size, ULONG *text_size) PURE;
1050 STDMETHOD(GetEventFilterCommand)(THIS_ ULONG index, char *buffer, ULONG buffer_size, ULONG *command_size) PURE;
1051 STDMETHOD(SetEventFilterCommand)(THIS_ ULONG index, const char *command) PURE;
1052 STDMETHOD(GetSpecificFilterParameters)(THIS_ ULONG start, ULONG count,
1053 DEBUG_SPECIFIC_FILTER_PARAMETERS *parameters) PURE;
1054 STDMETHOD(SetSpecificFilterParameters)(THIS_ ULONG start, ULONG count,
1055 DEBUG_SPECIFIC_FILTER_PARAMETERS *parameters) PURE;
1056 STDMETHOD(GetSpecificFilterArgument)(THIS_ ULONG index, char *buffer, ULONG buffer_size,
1057 ULONG *argument_size) PURE;
1058 STDMETHOD(SetSpecificFilterArgument)(THIS_ ULONG index, const char *argument) PURE;
1059 STDMETHOD(GetExceptionFilterParameters)(THIS_ ULONG count, ULONG *codes, ULONG start,
1060 DEBUG_EXCEPTION_FILTER_PARAMETERS *parameters) PURE;
1061 STDMETHOD(SetExceptionFilterParameters)(THIS_ ULONG count, DEBUG_EXCEPTION_FILTER_PARAMETERS *parameters) PURE;
1062 STDMETHOD(GetExceptionFilterSecondCommand)(THIS_ ULONG index, char *buffer, ULONG buffer_size,
1063 ULONG *command_size) PURE;
1064 STDMETHOD(SetExceptionFilterSecondCommand)(THIS_ ULONG index, const char *command) PURE;
1065 STDMETHOD(WaitForEvent)(THIS_ ULONG flags, ULONG timeout) PURE;
1066 STDMETHOD(GetLastEventInformation)(THIS_ ULONG *type, ULONG *pid, ULONG *tid, void *extra_info,
1067 ULONG extra_info_size, ULONG *extra_info_used, char *description, ULONG desc_size, ULONG *desc_used) PURE;
1069 #undef INTERFACE
1071 #define INTERFACE IDebugControl2
1072 DECLARE_INTERFACE_(IDebugControl2, IUnknown)
1074 /* IUnknown */
1075 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
1076 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
1077 STDMETHOD_(ULONG, Release)(THIS) PURE;
1078 /* IDebugControl */
1079 STDMETHOD(GetInterrupt)(THIS) PURE;
1080 STDMETHOD(SetInterrupt)(THIS_ ULONG flags) PURE;
1081 STDMETHOD(GetIterruptTimeout)(THIS_ ULONG *timeout) PURE;
1082 STDMETHOD(SetInterruptTimeout)(THIS_ ULONG timeout) PURE;
1083 STDMETHOD(GetLogFile)(THIS_ char *buffer, ULONG buffer_size, ULONG *file_size, BOOL *append) PURE;
1084 STDMETHOD(OpenLogFile)(THIS_ const char *file, BOOL append) PURE;
1085 STDMETHOD(CloseLogFile)(THIS) PURE;
1086 STDMETHOD(GetLogMask)(THIS_ ULONG *mask) PURE;
1087 STDMETHOD(SetLogMask)(THIS_ ULONG mask) PURE;
1088 STDMETHOD(Input)(THIS_ char *buffer, ULONG buffer_size, ULONG *input_size) PURE;
1089 STDMETHOD(ReturnInput)(THIS_ const char *buffer) PURE;
1090 STDMETHODV(Output)(THIS_ ULONG mask, const char *format, ...) PURE;
1091 STDMETHOD(OutputVaList)(THIS_ ULONG mask, const char *format, __ms_va_list args) PURE;
1092 STDMETHODV(ControlledOutput)(THIS_ ULONG output_control, ULONG mask, const char *format, ...) PURE;
1093 STDMETHOD(ControlledOutputVaList)(THIS_ ULONG output_control, ULONG mask, const char *format,
1094 __ms_va_list args) PURE;
1095 STDMETHODV(OutputPrompt)(THIS_ ULONG output_control, const char *format, ...) PURE;
1096 STDMETHOD(OutputPromptVaList)(THIS_ ULONG output_control, const char *format, __ms_va_list args) PURE;
1097 STDMETHOD(GetPromptText)(THIS_ char *buffer, ULONG buffer_size, ULONG *text_size) PURE;
1098 STDMETHOD(OutputCurrentState)(THIS_ ULONG output_control, ULONG flags) PURE;
1099 STDMETHOD(OutputVersionInformation)(THIS_ ULONG output_control) PURE;
1100 STDMETHOD(GetNotifyEventHandle)(THIS_ ULONG64 *handle) PURE;
1101 STDMETHOD(SetNotifyEventHandle)(THIS_ ULONG64 handle) PURE;
1102 STDMETHOD(Assemble)(THIS_ ULONG64 offset, const char *code, ULONG64 *end_offset) PURE;
1103 STDMETHOD(Disassemble)(THIS_ ULONG64 offset, ULONG flags, char *buffer, ULONG buffer_size, ULONG *disassm_size,
1104 ULONG64 *end_offset) PURE;
1105 STDMETHOD(GetDisassembleEffectiveOffset)(THIS_ ULONG64 *offset) PURE;
1106 STDMETHOD(OutputDisassembly)(THIS_ ULONG output_control, ULONG64 offset, ULONG flags, ULONG64 *end_offset) PURE;
1107 STDMETHOD(OutputDisassemblyLines)(THIS_ ULONG output_control, ULONG prev_lines, ULONG total_lines, ULONG64 offset,
1108 ULONG flags, ULONG *offset_line, ULONG64 *start_offset, ULONG64 *end_offset, ULONG64 *line_offsets) PURE;
1109 STDMETHOD(GetNearInstruction)(THIS_ ULONG64 offset, LONG delta, ULONG64 *instr_offset) PURE;
1110 STDMETHOD(GetStackTrace)(THIS_ ULONG64 frame_offset, ULONG64 stack_offset, ULONG64 instr_offset,
1111 DEBUG_STACK_FRAME *frames, ULONG frames_size, ULONG *frames_filled) PURE;
1112 STDMETHOD(GetReturnOffset)(THIS_ ULONG64 *offset) PURE;
1113 STDMETHOD(OutputStackTrace)(THIS_ ULONG output_control, DEBUG_STACK_FRAME *frames, ULONG frames_size,
1114 ULONG flags) PURE;
1115 STDMETHOD(GetDebuggeeType)(THIS_ ULONG *_class, ULONG *qualifier) PURE;
1116 STDMETHOD(GetActualProcessorType)(THIS_ ULONG *type) PURE;
1117 STDMETHOD(GetExecutingProcessorType)(THIS_ ULONG *type) PURE;
1118 STDMETHOD(GetNumberPossibleExecutingProcessorTypes)(THIS_ ULONG *count) PURE;
1119 STDMETHOD(GetPossibleExecutingProcessorTypes)(THIS_ ULONG start, ULONG count, ULONG *types) PURE;
1120 STDMETHOD(GetNumberProcessors)(THIS_ ULONG *count) PURE;
1121 STDMETHOD(GetSystemVersion)(THIS_ ULONG *platform_id, ULONG *major, ULONG *minor, char *sp_string,
1122 ULONG sp_string_size, ULONG *sp_string_used, ULONG *sp_number, char *build_string, ULONG build_string_size,
1123 ULONG *build_string_used) PURE;
1124 STDMETHOD(GetPageSize)(THIS_ ULONG *size) PURE;
1125 STDMETHOD(IsPointer64Bit)(THIS) PURE;
1126 STDMETHOD(ReadBugCheckData)(THIS_ ULONG *code, ULONG64 *arg1, ULONG64 *arg2, ULONG64 *arg3, ULONG64 *arg4) PURE;
1127 STDMETHOD(GetNumberSupportedProcessorTypes)(THIS_ ULONG *count) PURE;
1128 STDMETHOD(GetSupportedProcessorTypes)(THIS_ ULONG start, ULONG count, ULONG *types) PURE;
1129 STDMETHOD(GetProcessorTypeNames)(THIS_ ULONG type, char *full_name, ULONG full_name_buffer_size,
1130 ULONG *full_name_size, char *abbrev_name, ULONG abbrev_name_buffer_size, ULONG *abbrev_name_size) PURE;
1131 STDMETHOD(GetEffectiveProcessorType)(THIS_ ULONG *type) PURE;
1132 STDMETHOD(SetEffectiveProcessorType)(THIS_ ULONG type) PURE;
1133 STDMETHOD(GetExecutionStatus)(THIS_ ULONG *status) PURE;
1134 STDMETHOD(SetExecutionStatus)(THIS_ ULONG status) PURE;
1135 STDMETHOD(GetCodeLevel)(THIS_ ULONG *level) PURE;
1136 STDMETHOD(SetCodeLevel)(THIS_ ULONG level) PURE;
1137 STDMETHOD(GetEngineOptions)(THIS_ ULONG *options) PURE;
1138 STDMETHOD(AddEngineOptions)(THIS_ ULONG options) PURE;
1139 STDMETHOD(RemoveEngineOptions)(THIS_ ULONG options) PURE;
1140 STDMETHOD(SetEngineOptions)(THIS_ ULONG options) PURE;
1141 STDMETHOD(GetSystemErrorControl)(THIS_ ULONG *output_level, ULONG *break_level) PURE;
1142 STDMETHOD(SetSystemErrorControl)(THIS_ ULONG output_level, ULONG break_level) PURE;
1143 STDMETHOD(GetTextMacro)(THIS_ ULONG slot, char *buffer, ULONG buffer_size, ULONG *macro_size) PURE;
1144 STDMETHOD(SetTextMacro)(THIS_ ULONG slot, const char *macro) PURE;
1145 STDMETHOD(GetRadix)(THIS_ ULONG *radix) PURE;
1146 STDMETHOD(SetRadix)(THIS_ ULONG radix) PURE;
1147 STDMETHOD(Evaluate)(THIS_ const char *expression, ULONG desired_type, DEBUG_VALUE *value,
1148 ULONG *remainder_index) PURE;
1149 STDMETHOD(CoerceValue)(THIS_ DEBUG_VALUE input, ULONG output_type, DEBUG_VALUE *output) PURE;
1150 STDMETHOD(CoerceValues)(THIS_ ULONG count, DEBUG_VALUE *input, ULONG *output_types, DEBUG_VALUE *output) PURE;
1151 STDMETHOD(Execute)(THIS_ ULONG output_control, const char *command, ULONG flags) PURE;
1152 STDMETHOD(ExecuteCommandFile)(THIS_ ULONG output_control, const char *command_file, ULONG flags) PURE;
1153 STDMETHOD(GetNumberBreakpoints)(THIS_ ULONG *count) PURE;
1154 STDMETHOD(GetBreakpointByIndex)(THIS_ ULONG index, IDebugBreakpoint **bp) PURE;
1155 STDMETHOD(GetBreakpointById)(THIS_ ULONG id, IDebugBreakpoint **bp) PURE;
1156 STDMETHOD(GetBreakpointParameters)(THIS_ ULONG count, ULONG *ids, ULONG start,
1157 DEBUG_BREAKPOINT_PARAMETERS *parameters) PURE;
1158 STDMETHOD(AddBreakpoint)(THIS_ ULONG type, ULONG desired_id, IDebugBreakpoint **bp) PURE;
1159 STDMETHOD(RemoveBreakpoint)(THIS_ IDebugBreakpoint *bp) PURE;
1160 STDMETHOD(AddExtension)(THIS_ const char *path, ULONG flags, ULONG64 *handle) PURE;
1161 STDMETHOD(RemoveExtension)(THIS_ ULONG64 handle) PURE;
1162 STDMETHOD(GetExtensionByPath)(THIS_ const char *path, ULONG64 *handle) PURE;
1163 STDMETHOD(CallExtension)(THIS_ ULONG64 handle, const char *function, const char *args) PURE;
1164 STDMETHOD(GetExtensionFunction)(THIS_ ULONG64 handle, const char *name, void *function) PURE;
1165 STDMETHOD(GetWindbgExtensionApis32)(THIS_ PWINDBG_EXTENSION_APIS32 api) PURE;
1166 STDMETHOD(GetWindbgExtensionApis64)(THIS_ PWINDBG_EXTENSION_APIS64 api) PURE;
1167 STDMETHOD(GetNumberEventFilters)(THIS_ ULONG *specific_events, ULONG *specific_exceptions,
1168 ULONG *arbitrary_exceptions) PURE;
1169 STDMETHOD(GetEventFilterText)(THIS_ ULONG index, char *buffer, ULONG buffer_size, ULONG *text_size) PURE;
1170 STDMETHOD(GetEventFilterCommand)(THIS_ ULONG index, char *buffer, ULONG buffer_size, ULONG *command_size) PURE;
1171 STDMETHOD(SetEventFilterCommand)(THIS_ ULONG index, const char *command) PURE;
1172 STDMETHOD(GetSpecificFilterParameters)(THIS_ ULONG start, ULONG count,
1173 DEBUG_SPECIFIC_FILTER_PARAMETERS *parameters) PURE;
1174 STDMETHOD(SetSpecificFilterParameters)(THIS_ ULONG start, ULONG count,
1175 DEBUG_SPECIFIC_FILTER_PARAMETERS *parameters) PURE;
1176 STDMETHOD(GetSpecificFilterArgument)(THIS_ ULONG index, char *buffer, ULONG buffer_size,
1177 ULONG *argument_size) PURE;
1178 STDMETHOD(SetSpecificFilterArgument)(THIS_ ULONG index, const char *argument) PURE;
1179 STDMETHOD(GetExceptionFilterParameters)(THIS_ ULONG count, ULONG *codes, ULONG start,
1180 DEBUG_EXCEPTION_FILTER_PARAMETERS *parameters) PURE;
1181 STDMETHOD(SetExceptionFilterParameters)(THIS_ ULONG count, DEBUG_EXCEPTION_FILTER_PARAMETERS *parameters) PURE;
1182 STDMETHOD(GetExceptionFilterSecondCommand)(THIS_ ULONG index, char *buffer, ULONG buffer_size,
1183 ULONG *command_size) PURE;
1184 STDMETHOD(SetExceptionFilterSecondCommand)(THIS_ ULONG index, const char *command) PURE;
1185 STDMETHOD(WaitForEvent)(THIS_ ULONG flags, ULONG timeout) PURE;
1186 STDMETHOD(GetLastEventInformation)(THIS_ ULONG *type, ULONG *pid, ULONG *tid, void *extra_info,
1187 ULONG extra_info_size, ULONG *extra_info_used, char *description, ULONG desc_size, ULONG *desc_used) PURE;
1188 /* IDebugControl2 */
1189 STDMETHOD(GetCurrentTimeDate)(THIS_ ULONG timedate) PURE;
1190 STDMETHOD(GetCurrentSystemUpTime)(THIS_ ULONG uptime) PURE;
1191 STDMETHOD(GetDumpFormatFlags)(THIS_ ULONG *flags) PURE;
1192 STDMETHOD(GetNumberTextPlacements)(THIS_ ULONG *count) PURE;
1193 STDMETHOD(GetNumberTextReplacement)(THIS_ const char *src_text, ULONG index, char *src_buffer,
1194 ULONG src_buffer_size, ULONG *src_size, char *dst_buffer, ULONG dst_buffer_size, ULONG *dst_size) PURE;
1195 STDMETHOD(SetTextReplacement)(THIS_ const char *src_text, const char *dst_text) PURE;
1196 STDMETHOD(RemoveTextReplacements)(THIS) PURE;
1197 STDMETHOD(OutputTextReplacements)(THIS_ ULONG output_control, ULONG flags) PURE;
1199 #undef INTERFACE
1201 #define INTERFACE IDebugAdvanced
1202 DECLARE_INTERFACE_(IDebugAdvanced, IUnknown)
1204 /* IUnknown */
1205 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
1206 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
1207 STDMETHOD_(ULONG, Release)(THIS) PURE;
1208 /* IDebugAdvanced */
1209 STDMETHOD(GetThreadContext)(THIS_ void *context, ULONG context_size) PURE;
1210 STDMETHOD(SetThreadContext)(THIS_ void *context, ULONG context_size) PURE;
1212 #undef INTERFACE
1214 #define INTERFACE IDebugSystemObjects
1215 DECLARE_INTERFACE_(IDebugSystemObjects, IUnknown)
1217 /* IUnknown */
1218 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
1219 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
1220 STDMETHOD_(ULONG, Release)(THIS) PURE;
1221 /* IDebugSystemObjects */
1222 STDMETHOD(GetEventThread)(THIS_ ULONG *id) PURE;
1223 STDMETHOD(GetEventProcess)(THIS_ ULONG *id) PURE;
1224 STDMETHOD(GetCurrentThreadId)(THIS_ ULONG *id) PURE;
1225 STDMETHOD(SetCurrentThreadId)(THIS_ ULONG id) PURE;
1226 STDMETHOD(SetCurrentProcessId)(THIS_ ULONG id) PURE;
1227 STDMETHOD(GetNumberThreads)(THIS_ ULONG *number) PURE;
1228 STDMETHOD(GetTotalNumberThreads)(THIS_ ULONG *total, ULONG *largest_process) PURE;
1229 STDMETHOD(GetThreadIdsByIndex)(THIS_ ULONG start, ULONG count, ULONG *ids, ULONG *sysids) PURE;
1230 STDMETHOD(GetThreadIdByProcessor)(THIS_ ULONG processor, ULONG *id) PURE;
1231 STDMETHOD(GetCurrentThreadDataOffset)(THIS_ ULONG64 *offset) PURE;
1232 STDMETHOD(GetThreadIdByDataOffset)(THIS_ ULONG64 offset, ULONG *id) PURE;
1233 STDMETHOD(GetCurrentThreadTeb)(THIS_ ULONG64 *offset) PURE;
1234 STDMETHOD(GetThreadIdByTeb)(THIS_ ULONG64 offset, ULONG *id) PURE;
1235 STDMETHOD(GetCurrentThreadSystemId)(THIS_ ULONG *sysid) PURE;
1236 STDMETHOD(GetThreadIdBySystemId)(THIS_ ULONG sysid, ULONG *id) PURE;
1237 STDMETHOD(GetCurrentThreadHandle)(THIS_ ULONG64 *handle) PURE;
1238 STDMETHOD(GetThreadIdByHandle)(THIS_ ULONG64 handle, ULONG *id) PURE;
1239 STDMETHOD(GetNumberProcesses)(THIS_ ULONG *number) PURE;
1240 STDMETHOD(GetProcessIdsByIndex)(THIS_ ULONG start, ULONG count, ULONG *ids, ULONG *sysids) PURE;
1241 STDMETHOD(GetCurrentProcessDataOffset)(THIS_ ULONG64 *offset) PURE;
1242 STDMETHOD(GetProcessIdByDataOffset)(THIS_ ULONG64 offset, ULONG *id) PURE;
1243 STDMETHOD(GetCurrentProcessPeb)(THIS_ ULONG64 *offset) PURE;
1244 STDMETHOD(GetProcessIdByPeb)(THIS_ ULONG64 offset, ULONG *id) PURE;
1245 STDMETHOD(GetCurrentProcessSystemId)(THIS_ ULONG *sysid) PURE;
1246 STDMETHOD(GetProcessIdBySystemId)(THIS_ ULONG sysid, ULONG *id) PURE;
1247 STDMETHOD(GetCurrentProcessHandle)(THIS_ ULONG64 *handle) PURE;
1248 STDMETHOD(GetProcessIdByHandle)(THIS_ ULONG64 handle, ULONG *id) PURE;
1249 STDMETHOD(GetCurrentProcessExecutableName)(THIS_ char *buffer, ULONG buffer_size, ULONG *exe_size) PURE;
1251 #undef INTERFACE
1253 #define INTERFACE IDebugSystemObjects2
1254 DECLARE_INTERFACE_(IDebugSystemObjects2, IUnknown)
1256 /* IUnknown */
1257 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
1258 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
1259 STDMETHOD_(ULONG, Release)(THIS) PURE;
1260 /* IDebugSystemObjects */
1261 STDMETHOD(GetEventThread)(THIS_ ULONG *id) PURE;
1262 STDMETHOD(GetEventProcess)(THIS_ ULONG *id) PURE;
1263 STDMETHOD(GetCurrentThreadId)(THIS_ ULONG *id) PURE;
1264 STDMETHOD(SetCurrentThreadId)(THIS_ ULONG id) PURE;
1265 STDMETHOD(SetCurrentProcessId)(THIS_ ULONG id) PURE;
1266 STDMETHOD(GetNumberThreads)(THIS_ ULONG *number) PURE;
1267 STDMETHOD(GetTotalNumberThreads)(THIS_ ULONG *total, ULONG *largest_process) PURE;
1268 STDMETHOD(GetThreadIdsByIndex)(THIS_ ULONG start, ULONG count, ULONG *ids, ULONG *sysids) PURE;
1269 STDMETHOD(GetThreadIdByProcessor)(THIS_ ULONG processor, ULONG *id) PURE;
1270 STDMETHOD(GetCurrentThreadDataOffset)(THIS_ ULONG64 *offset) PURE;
1271 STDMETHOD(GetThreadIdByDataOffset)(THIS_ ULONG64 offset, ULONG *id) PURE;
1272 STDMETHOD(GetCurrentThreadTeb)(THIS_ ULONG64 *offset) PURE;
1273 STDMETHOD(GetThreadIdByTeb)(THIS_ ULONG64 offset, ULONG *id) PURE;
1274 STDMETHOD(GetCurrentThreadSystemId)(THIS_ ULONG *sysid) PURE;
1275 STDMETHOD(GetThreadIdBySystemId)(THIS_ ULONG sysid, ULONG *id) PURE;
1276 STDMETHOD(GetCurrentThreadHandle)(THIS_ ULONG64 *handle) PURE;
1277 STDMETHOD(GetThreadIdByHandle)(THIS_ ULONG64 handle, ULONG *id) PURE;
1278 STDMETHOD(GetNumberProcesses)(THIS_ ULONG *number) PURE;
1279 STDMETHOD(GetProcessIdsByIndex)(THIS_ ULONG start, ULONG count, ULONG *ids, ULONG *sysids) PURE;
1280 STDMETHOD(GetCurrentProcessDataOffset)(THIS_ ULONG64 *offset) PURE;
1281 STDMETHOD(GetProcessIdByDataOffset)(THIS_ ULONG64 offset, ULONG *id) PURE;
1282 STDMETHOD(GetCurrentProcessPeb)(THIS_ ULONG64 *offset) PURE;
1283 STDMETHOD(GetProcessIdByPeb)(THIS_ ULONG64 offset, ULONG *id) PURE;
1284 STDMETHOD(GetCurrentProcessSystemId)(THIS_ ULONG *sysid) PURE;
1285 STDMETHOD(GetProcessIdBySystemId)(THIS_ ULONG sysid, ULONG *id) PURE;
1286 STDMETHOD(GetCurrentProcessHandle)(THIS_ ULONG64 *handle) PURE;
1287 STDMETHOD(GetProcessIdByHandle)(THIS_ ULONG64 handle, ULONG *id) PURE;
1288 STDMETHOD(GetCurrentProcessExecutableName)(THIS_ char *buffer, ULONG buffer_size, ULONG *exe_size) PURE;
1289 /* IDebugSystemObjects2 */
1290 STDMETHOD(GetCurrentProcessUpTime)(THIS_ ULONG *uptime) PURE;
1291 STDMETHOD(GetImplicitThreadDataOffset)(THIS_ ULONG64 *offset) PURE;
1292 STDMETHOD(SetImplicitThreadDataOffset)(THIS_ ULONG64 offset) PURE;
1293 STDMETHOD(GetImplicitProcessDataOffset)(THIS_ ULONG64 *offset) PURE;
1294 STDMETHOD(SetImplicitProcessDataOffset)(THIS_ ULONG64 offset) PURE;
1296 #undef INTERFACE
1298 #define INTERFACE IDebugSystemObjects3
1299 DECLARE_INTERFACE_(IDebugSystemObjects3, IUnknown)
1301 /* IUnknown */
1302 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
1303 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
1304 STDMETHOD_(ULONG, Release)(THIS) PURE;
1305 /* IDebugSystemObjects */
1306 STDMETHOD(GetEventThread)(THIS_ ULONG *id) PURE;
1307 STDMETHOD(GetEventProcess)(THIS_ ULONG *id) PURE;
1308 STDMETHOD(GetCurrentThreadId)(THIS_ ULONG *id) PURE;
1309 STDMETHOD(SetCurrentThreadId)(THIS_ ULONG id) PURE;
1310 STDMETHOD(SetCurrentProcessId)(THIS_ ULONG id) PURE;
1311 STDMETHOD(GetNumberThreads)(THIS_ ULONG *number) PURE;
1312 STDMETHOD(GetTotalNumberThreads)(THIS_ ULONG *total, ULONG *largest_process) PURE;
1313 STDMETHOD(GetThreadIdsByIndex)(THIS_ ULONG start, ULONG count, ULONG *ids, ULONG *sysids) PURE;
1314 STDMETHOD(GetThreadIdByProcessor)(THIS_ ULONG processor, ULONG *id) PURE;
1315 STDMETHOD(GetCurrentThreadDataOffset)(THIS_ ULONG64 *offset) PURE;
1316 STDMETHOD(GetThreadIdByDataOffset)(THIS_ ULONG64 offset, ULONG *id) PURE;
1317 STDMETHOD(GetCurrentThreadTeb)(THIS_ ULONG64 *offset) PURE;
1318 STDMETHOD(GetThreadIdByTeb)(THIS_ ULONG64 offset, ULONG *id) PURE;
1319 STDMETHOD(GetCurrentThreadSystemId)(THIS_ ULONG *sysid) PURE;
1320 STDMETHOD(GetThreadIdBySystemId)(THIS_ ULONG sysid, ULONG *id) PURE;
1321 STDMETHOD(GetCurrentThreadHandle)(THIS_ ULONG64 *handle) PURE;
1322 STDMETHOD(GetThreadIdByHandle)(THIS_ ULONG64 handle, ULONG *id) PURE;
1323 STDMETHOD(GetNumberProcesses)(THIS_ ULONG *number) PURE;
1324 STDMETHOD(GetProcessIdsByIndex)(THIS_ ULONG start, ULONG count, ULONG *ids, ULONG *sysids) PURE;
1325 STDMETHOD(GetCurrentProcessDataOffset)(THIS_ ULONG64 *offset) PURE;
1326 STDMETHOD(GetProcessIdByDataOffset)(THIS_ ULONG64 offset, ULONG *id) PURE;
1327 STDMETHOD(GetCurrentProcessPeb)(THIS_ ULONG64 *offset) PURE;
1328 STDMETHOD(GetProcessIdByPeb)(THIS_ ULONG64 offset, ULONG *id) PURE;
1329 STDMETHOD(GetCurrentProcessSystemId)(THIS_ ULONG *sysid) PURE;
1330 STDMETHOD(GetProcessIdBySystemId)(THIS_ ULONG sysid, ULONG *id) PURE;
1331 STDMETHOD(GetCurrentProcessHandle)(THIS_ ULONG64 *handle) PURE;
1332 STDMETHOD(GetProcessIdByHandle)(THIS_ ULONG64 handle, ULONG *id) PURE;
1333 STDMETHOD(GetCurrentProcessExecutableName)(THIS_ char *buffer, ULONG buffer_size, ULONG *exe_size) PURE;
1334 /* IDebugSystemObjects2 */
1335 STDMETHOD(GetCurrentProcessUpTime)(THIS_ ULONG *uptime) PURE;
1336 STDMETHOD(GetImplicitThreadDataOffset)(THIS_ ULONG64 *offset) PURE;
1337 STDMETHOD(SetImplicitThreadDataOffset)(THIS_ ULONG64 offset) PURE;
1338 STDMETHOD(GetImplicitProcessDataOffset)(THIS_ ULONG64 *offset) PURE;
1339 STDMETHOD(SetImplicitProcessDataOffset)(THIS_ ULONG64 offset) PURE;
1340 /* IDebugSystemObjects3 */
1341 STDMETHOD(GetEventSystem)(THIS_ ULONG *id) PURE;
1342 STDMETHOD(GetCurrentSystemId)(THIS_ ULONG *id) PURE;
1343 STDMETHOD(SetCurrentSystemId)(THIS_ ULONG id) PURE;
1344 STDMETHOD(GetNumberSystems)(THIS_ ULONG *number) PURE;
1345 STDMETHOD(GetSystemIdsByIndex)(THIS_ ULONG start, ULONG count, ULONG *ids) PURE;
1346 STDMETHOD(GetTotalNumberThreadsAndProcesses)(THIS_ ULONG *total_threads, ULONG *total_processes,
1347 ULONG *largest_process_threads, ULONG *largest_system_threads, ULONG *largest_system_processes) PURE;
1348 STDMETHOD(GetCurrentSystemServer)(THIS_ ULONG64 *server) PURE;
1349 STDMETHOD(GetSystemByServer)(THIS_ ULONG64 server, ULONG *id) PURE;
1350 STDMETHOD(GetCurrentSystemServerName)(THIS_ char *buffer, ULONG buffer_size, ULONG *name_size) PURE;
1352 #undef INTERFACE
1354 HRESULT WINAPI DebugCreate(REFIID riid, void **out);
1356 #ifdef __cplusplus
1358 #endif