1 /*++ NDK Version: 0098 2 3 Copyright (c) Alex Ionescu. All rights reserved. 4 5 Header Name: 6 7 kdfuncs.h 8 9 Abstract: 10 11 Function definitions for the Kernel Debugger. 12 13 Author: 14 15 Alex Ionescu (alexi@tinykrnl.org) - Updated - 27-Feb-2006 16 17 --*/ 18 19 #ifndef _KDFUNCS_H 20 #define _KDFUNCS_H 21 22 // 23 // Dependencies 24 // 25 #include <umtypes.h> 26 #include <kdtypes.h> 27 28 #ifndef NTOS_MODE_USER 29 30 // 31 // Debugger API 32 // 33 NTSTATUS 34 NTAPI 35 KdSystemDebugControl( 36 _In_ SYSDBG_COMMAND Command, 37 _In_ PVOID InputBuffer, 38 _In_ ULONG InputBufferLength, 39 _Out_ PVOID OutputBuffer, 40 _In_ ULONG OutputBufferLength, 41 _Inout_ PULONG ReturnLength, 42 _In_ KPROCESSOR_MODE PreviousMode 43 ); 44 45 BOOLEAN 46 NTAPI 47 KdPollBreakIn( 48 VOID 49 ); 50 51 #endif 52 53 // 54 // Native Calls 55 // 56 NTSYSCALLAPI 57 NTSTATUS 58 NTAPI 59 NtQueryDebugFilterState( 60 _In_ ULONG ComponentId, 61 _In_ ULONG Level 62 ); 63 64 NTSYSCALLAPI 65 NTSTATUS 66 NTAPI 67 NtSetDebugFilterState( 68 _In_ ULONG ComponentId, 69 _In_ ULONG Level, 70 _In_ BOOLEAN State 71 ); 72 73 NTSYSCALLAPI 74 NTSTATUS 75 NTAPI 76 NtSystemDebugControl( 77 SYSDBG_COMMAND ControlCode, 78 PVOID InputBuffer, 79 ULONG InputBufferLength, 80 PVOID OutputBuffer, 81 ULONG OutputBufferLength, 82 PULONG ReturnLength 83 ); 84 85 NTSYSAPI 86 NTSTATUS 87 NTAPI 88 ZwQueryDebugFilterState( 89 ULONG ComponentId, 90 ULONG Level 91 ); 92 93 NTSYSAPI 94 NTSTATUS 95 NTAPI 96 ZwSetDebugFilterState( 97 ULONG ComponentId, 98 ULONG Level, 99 BOOLEAN State 100 ); 101 102 NTSYSAPI 103 NTSTATUS 104 NTAPI 105 ZwSystemDebugControl( 106 SYSDBG_COMMAND ControlCode, 107 PVOID InputBuffer, 108 ULONG InputBufferLength, 109 PVOID OutputBuffer, 110 ULONG OutputBufferLength, 111 PULONG ReturnLength 112 ); 113 #endif 114