ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

dbgk.h
Go to the documentation of this file.
00001 /*
00002  * PROJECT:         ReactOS Kernel
00003  * LICENSE:         GPL - See COPYING in the top level directory
00004  * FILE:            ntoskrnl/include/dbgk.h
00005  * PURPOSE:         Internal header for the User-Mode Debugging Backend
00006  * PROGRAMMERS:     Alex Ionescu (alex.ionescu@reactos.org)
00007  */
00008 
00009 //
00010 // Define this if you want debugging support
00011 //
00012 #define _DBGK_DEBUG_                                    0x00
00013 
00014 //
00015 // These define the Debug Masks Supported
00016 //
00017 #define DBGK_THREAD_DEBUG                               0x01
00018 #define DBGK_PROCESS_DEBUG                              0x02
00019 #define DBGK_OBJECT_DEBUG                               0x04
00020 #define DBGK_MESSAGE_DEBUG                              0x08
00021 #define DBGK_EXCEPTION_DEBUG                            0x10
00022 
00023 //
00024 // Debug/Tracing support
00025 //
00026 #if _DBGK_DEBUG_
00027 #ifdef NEW_DEBUG_SYSTEM_IMPLEMENTED // enable when Debug Filters are implemented
00028 #define DBGKTRACE(x, ...)                                   \
00029     {                                                       \
00030         DbgPrintEx("%s [%.16s] - ",                         \
00031                    __FUNCTION__,                            \
00032                    PsGetCurrentProcess()->ImageFileName);   \
00033         DbgPrintEx(__VA_ARGS__);                            \
00034     }
00035 #else
00036 #define DBGKTRACE(x, ...)                                   \
00037     if (x & DbgkpTraceLevel)                                \
00038     {                                                       \
00039         DbgPrint("%s [%.16s] - ",                           \
00040                  __FUNCTION__,                              \
00041                  PsGetCurrentProcess()->ImageFileName);     \
00042         DbgPrint(__VA_ARGS__);                              \
00043     }
00044 #endif
00045 #else
00046 #define DBGKTRACE(x, fmt, ...) DPRINT(fmt, ##__VA_ARGS__)
00047 #endif
00048 
00049 VOID
00050 INIT_FUNCTION
00051 NTAPI
00052 DbgkInitialize(
00053     VOID
00054 );
00055 
00056 VOID
00057 NTAPI
00058 DbgkCreateThread(
00059     IN PETHREAD Thread,
00060     IN PVOID StartAddress
00061 );
00062 
00063 VOID
00064 NTAPI
00065 DbgkExitProcess(
00066     IN NTSTATUS ExitStatus
00067 );
00068 
00069 VOID
00070 NTAPI
00071 DbgkExitThread(
00072     IN NTSTATUS ExitStatus
00073 );
00074 
00075 VOID
00076 NTAPI
00077 DbgkMapViewOfSection(
00078     IN PVOID Section,
00079     IN PVOID BaseAddress,
00080     IN ULONG SectionOffset,
00081     IN ULONG_PTR ViewSize
00082 );
00083 
00084 VOID
00085 NTAPI
00086 DbgkUnMapViewOfSection(
00087     IN PVOID BaseAddress
00088 );
00089 
00090 BOOLEAN
00091 NTAPI
00092 DbgkpSuspendProcess(
00093     VOID
00094 );
00095 
00096 VOID
00097 NTAPI
00098 DbgkpResumeProcess(
00099     VOID
00100 );
00101 
00102 NTSTATUS
00103 NTAPI
00104 DbgkpSendApiMessage(
00105     IN OUT PDBGKM_MSG ApiMsg,
00106     IN BOOLEAN SuspendProcess
00107 );
00108 
00109 HANDLE
00110 NTAPI
00111 DbgkpSectionToFileHandle(
00112     IN PVOID Section
00113 );
00114 
00115 VOID
00116 NTAPI
00117 DbgkCopyProcessDebugPort(
00118     IN PEPROCESS Process,
00119     IN PEPROCESS Parent
00120 );
00121 
00122 BOOLEAN
00123 NTAPI
00124 DbgkForwardException(
00125     IN PEXCEPTION_RECORD ExceptionRecord,
00126     IN BOOLEAN DebugPort,
00127     IN BOOLEAN SecondChance
00128 );
00129 
00130 NTSTATUS
00131 NTAPI
00132 DbgkClearProcessDebugObject(
00133     IN PEPROCESS Process,
00134     IN PDEBUG_OBJECT SourceDebugObject
00135 );
00136 
00137 NTSTATUS
00138 NTAPI
00139 DbgkOpenProcessDebugPort(
00140     IN PEPROCESS Process,
00141     IN KPROCESSOR_MODE PreviousMode,
00142     OUT HANDLE *DebugHandle
00143 );
00144                          
00145 extern ULONG DbgkpTraceLevel;
00146 extern POBJECT_TYPE DbgkDebugObjectType;
00147 
00148 /* EOF */

Generated on Sun May 27 2012 04:37:13 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.