| /**************************************************************************** |
| **************************************************************************** |
| *** |
| *** This header was generated from a ReactOS header to make |
| *** information necessary for userspace to call into the Windows |
| *** kernel available to Dr. Memory. It contains only constants, |
| *** structures, and macros generated from the original header, and |
| *** thus, contains no copyrightable information. |
| *** |
| **************************************************************************** |
| ****************************************************************************/ |
| |
| /* from reactos/include/ndk/dbgktypes.h */ |
| |
| #ifndef _DBGKTYPES_H |
| #define _DBGKTYPES_H |
| |
| // |
| // Debug States |
| // |
| typedef enum _DBG_STATE |
| { |
| DbgIdle, |
| DbgReplyPending, |
| DbgCreateThreadStateChange, |
| DbgCreateProcessStateChange, |
| DbgExitThreadStateChange, |
| DbgExitProcessStateChange, |
| DbgExceptionStateChange, |
| DbgBreakpointStateChange, |
| DbgSingleStepStateChange, |
| DbgLoadDllStateChange, |
| DbgUnloadDllStateChange |
| } DBG_STATE, *PDBG_STATE; |
| |
| // |
| // Debug Message Structures |
| // |
| typedef struct _DBGKM_EXCEPTION |
| { |
| EXCEPTION_RECORD ExceptionRecord; |
| ULONG FirstChance; |
| } DBGKM_EXCEPTION, *PDBGKM_EXCEPTION; |
| |
| typedef struct _DBGKM_CREATE_THREAD |
| { |
| ULONG SubSystemKey; |
| PVOID StartAddress; |
| } DBGKM_CREATE_THREAD, *PDBGKM_CREATE_THREAD; |
| |
| typedef struct _DBGKM_CREATE_PROCESS |
| { |
| ULONG SubSystemKey; |
| HANDLE FileHandle; |
| PVOID BaseOfImage; |
| ULONG DebugInfoFileOffset; |
| ULONG DebugInfoSize; |
| DBGKM_CREATE_THREAD InitialThread; |
| } DBGKM_CREATE_PROCESS, *PDBGKM_CREATE_PROCESS; |
| |
| typedef struct _DBGKM_EXIT_THREAD |
| { |
| NTSTATUS ExitStatus; |
| } DBGKM_EXIT_THREAD, *PDBGKM_EXIT_THREAD; |
| |
| typedef struct _DBGKM_EXIT_PROCESS |
| { |
| NTSTATUS ExitStatus; |
| } DBGKM_EXIT_PROCESS, *PDBGKM_EXIT_PROCESS; |
| |
| typedef struct _DBGKM_LOAD_DLL |
| { |
| HANDLE FileHandle; |
| PVOID BaseOfDll; |
| ULONG DebugInfoFileOffset; |
| ULONG DebugInfoSize; |
| PVOID NamePointer; |
| } DBGKM_LOAD_DLL, *PDBGKM_LOAD_DLL; |
| |
| typedef struct _DBGKM_UNLOAD_DLL |
| { |
| PVOID BaseAddress; |
| } DBGKM_UNLOAD_DLL, *PDBGKM_UNLOAD_DLL; |
| |
| // |
| // User-Mode Debug State Change Structure |
| // |
| typedef struct _DBGUI_WAIT_STATE_CHANGE |
| { |
| DBG_STATE NewState; |
| CLIENT_ID AppClientId; |
| union |
| { |
| struct |
| { |
| HANDLE HandleToThread; |
| DBGKM_CREATE_THREAD NewThread; |
| } CreateThread; |
| struct |
| { |
| HANDLE HandleToProcess; |
| HANDLE HandleToThread; |
| DBGKM_CREATE_PROCESS NewProcess; |
| } CreateProcessInfo; |
| DBGKM_EXIT_THREAD ExitThread; |
| DBGKM_EXIT_PROCESS ExitProcess; |
| DBGKM_EXCEPTION Exception; |
| DBGKM_LOAD_DLL LoadDll; |
| DBGKM_UNLOAD_DLL UnloadDll; |
| } StateInfo; |
| } DBGUI_WAIT_STATE_CHANGE, *PDBGUI_WAIT_STATE_CHANGE; |
| |
| // |
| // Debug Object Information Classes for NtQueryDebugObject |
| // |
| typedef enum _DEBUGOBJECTINFOCLASS |
| { |
| DebugObjectUnusedInformation, |
| DebugObjectKillProcessOnExitInformation |
| } DEBUGOBJECTINFOCLASS, *PDEBUGOBJECTINFOCLASS; |
| |
| #endif /*__AFD_SHARED_H */ |