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