32 PCHAR DestinationBytes, SourceBytes;
37 while (
Length--) *DestinationBytes++ = *SourceBytes++;
46 PCHAR DestinationBytes;
50 while (
Length--) *DestinationBytes++ = 0;
64 ULONG RemainingLength, CopyChunk;
79 RemainingLength = TotalSize;
81 while (RemainingLength > 0)
88 while (((CopyChunk * 2) <= RemainingLength) &&
90 ((
Address & ((CopyChunk * 2) - 1)) == 0))
100 while (CopyChunk > RemainingLength)
117 RemainingLength = RemainingLength - CopyChunk;
127 if (ActualSize) *ActualSize = TotalSize - RemainingLength;
200 KdpDprintf(
"Memory Search support is unimplemented!\n");
222 KdpDprintf(
"Memory Fill support is unimplemented!\n");
312 KdpDprintf(
"Extended Breakpoint Write support is unimplemented!\n");
335 KdpDprintf(
"Extended Breakpoint Restore support is unimplemented!\n");
357 KdpDprintf(
"Custom Breakpoint Write is unimplemented\n");
390 ULONG InstructionCount;
394 WaitStateChange->NewState = NewState;
407 &WaitStateChange->ControlReport.InstructionStream[0],
412 WaitStateChange->ControlReport.InstructionCount = (
USHORT)InstructionCount;
418 WaitStateChange->ControlReport.InstructionCount - 1));
423 &WaitStateChange->ControlReport.InstructionStream[0],
743 ProcessorState.ContextFrame;
799 ProcessorState.ContextFrame;
835 ContextEx = &
State->u.ContextEx;
855 ProcessorState.ContextFrame;
897 ContextEx = &
State->u.ContextEx;
919 ProcessorState.ContextFrame;
1163 ReadWriteIoExtended;
1200 ReadWriteIoExtended;
1271 KdpDprintf(
"%u is not a valid processor number\n", ProcessorIndex);
1439 KdpDprintf(
"Special Call support is unimplemented!\n");
1447 KdpDprintf(
"Internal Breakpoint support is unimplemented!\n");
1501 KdpDprintf(
"Page-In support is unimplemented!\n");
1562 KdpDprintf(
"Partition Switch support is unimplemented!\n");
1614 ULONG PathNameLength;
1703 Length =
min(128 - 1, NameString->Length);
1718 Length = CommandString->Length;
1842 LONG OldSlip, NewSlip, PendingSlip;
1849 OldSlip = PendingSlip;
1850 NewSlip = OldSlip > 1 ? 1 : 0;
1855 OldSlip) != OldSlip);
1879 DueTime.QuadPart = -1800000000;
1936 KdpDprintf(
"FreezeLock was jammed! Backup SpinLock was used!\n");
1943 KdpDprintf(
"Some processors not frozen in debugger!\n");
1994#if defined(__GNUC__)
2071#if defined(__GNUC__)
2218#if defined(_M_IX86) && !defined(_WINKD_)
2224 case ID_Win32PreServiceHook:
2228 case ID_Win32PostServiceHook:
2256 DbgPrint(
"KdSystemDebugControl is unimplemented!\n");
2283 if (OutBufferNeeded) *OutBufferNeeded = 0;
2288 if ((InBufferBytes !=
sizeof(
BOOLEAN)) ||
2289 (OutBufferBytes != 0) ||
2310 if (OutBufferNeeded) *OutBufferNeeded = 0;
2368 KdpDprintf(
"KDTARGET: Refreshing KD connection\n");
2375 return DebuggerNotPresent;
2405#if (NTDDI_VERSION >= NTDDI_VISTA)
2417 Level &= ~DPFLTR_MASK;
2467#if (NTDDI_VERSION >= NTDDI_VISTA)
2478 Level &= ~DPFLTR_MASK;
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char const char UINT32 ComponentId
#define InterlockedIncrement
DECLSPEC_NORETURN VOID NTAPI KeBugCheck(ULONG BugCheckCode)
#define STATUS_NOT_IMPLEMENTED
#define NT_SUCCESS(StatCode)
BOOLEAN NTAPI KeInsertQueueDpc(IN PKDPC Dpc, IN PVOID SystemArgument1, IN PVOID SystemArgument2)
IN CINT OUT PVOID IN ULONG OUT PULONG ReturnLength
#define KeRaiseIrql(irql, oldIrql)
#define KeReleaseSpinLock(sl, irql)
#define KeLowerIrql(oldIrql)
#define KeSetEvent(pEvt, foo, foo2)
#define KeAcquireSpinLock(sl, irql)
#define KeGetCurrentIrql()
#define ExGetPreviousMode
static VOID NTAPI Unload(PDRIVER_OBJECT DriverObject)
_In_ PLIST_ENTRY _In_ PSTRING _In_ USHORT _In_opt_ PSTRING _In_opt_ PSTRING _In_ ULONG _In_ ULONG _In_opt_ PVOID TargetContext
#define KeRosDumpStackFrames(Frames, Count)
LARGE_INTEGER NTAPI KeQueryPerformanceCounter(IN PLARGE_INTEGER PerformanceFreq)
#define KeGetCurrentThread
VOID NTAPI HalReturnToFirmware(_In_ FIRMWARE_REENTRY Action)
#define InterlockedCompareExchange
VOID SendPacket(PVOID Context, PNDIS_PACKET NdisPacket, UINT Offset, PVOID LinkAddress, USHORT Type)
NTSTATUS NTAPI KdpSysReadBusData(IN ULONG BusDataType, IN ULONG BusNumber, IN ULONG SlotNumber, IN ULONG Offset, IN PVOID Buffer, IN ULONG Length, OUT PULONG ActualLength)
BOOLEAN KdPreviouslyEnabled
BOOLEAN NTAPI KdInitSystem(_In_ ULONG BootPhase, _In_opt_ PLOADER_PARAMETER_BLOCK LoaderBlock)
ULONG TraceDataBufferPosition
BOOLEAN NTAPI KdpDeleteBreakpointRange(IN PVOID Base, IN PVOID Limit)
LARGE_INTEGER KdTimerStop
NTSTATUS NTAPI KdpSysReadControlSpace(IN ULONG Processor, IN ULONG64 BaseAddress, IN PVOID Buffer, IN ULONG Length, OUT PULONG ActualLength)
BOOLEAN KdEnteredDebugger
VOID NTAPI KdpPortLock(VOID)
VOID NTAPI KdpSetContextState(IN PDBGKD_ANY_WAIT_STATE_CHANGE WaitStateChange, IN PCONTEXT Context)
NTSTATUS NTAPI KdpSysCheckLowMemory(IN ULONG Flags)
VOID NTAPI KdpGetStateChange(IN PDBGKD_MANIPULATE_STATE64 State, IN PCONTEXT Context)
ULONG KdComponentTableSize
DBGKD_GET_VERSION64 KdVersionBlock
LARGE_INTEGER KdTimerStart
NTSTATUS NTAPI KdpSysWriteBusData(IN ULONG BusDataType, IN ULONG BusNumber, IN ULONG SlotNumber, IN ULONG Offset, IN PVOID Buffer, IN ULONG Length, OUT PULONG ActualLength)
KSPIN_LOCK KdpDebuggerLock
NTSTATUS NTAPI KdpSysWriteMsr(IN ULONG Msr, IN PLARGE_INTEGER MsrValue)
PKDEBUG_ROUTINE KiDebugRoutine
KSPIN_LOCK KdpTimeSlipEventLock
NTSTATUS NTAPI KdpSysWriteControlSpace(IN ULONG Processor, IN ULONG64 BaseAddress, IN PVOID Buffer, IN ULONG Length, OUT PULONG ActualLength)
ULONG TraceDataBuffer[40]
VOID NTAPI KdpPortUnlock(VOID)
BOOLEAN NTAPI KdpStub(IN PKTRAP_FRAME TrapFrame, IN PKEXCEPTION_FRAME ExceptionFrame, IN PEXCEPTION_RECORD ExceptionRecord, IN PCONTEXT ContextRecord, IN KPROCESSOR_MODE PreviousMode, IN BOOLEAN SecondChanceException)
WORK_QUEUE_ITEM KdpTimeSlipWorkItem
VOID NTAPI KdpRestoreAllBreakpoints(VOID)
NTSTATUS NTAPI KdpSysReadMsr(IN ULONG Msr, OUT PLARGE_INTEGER MsrValue)
NTSTATUS NTAPI KdpSysWriteIoSpace(IN ULONG InterfaceType, IN ULONG BusNumber, IN ULONG AddressSpace, IN ULONG64 IoAddress, IN PVOID DataValue, IN ULONG DataSize, OUT PULONG ActualDataSize)
ULONG KdpNumInternalBreakpoints
CHAR KdpPathBuffer[KDP_MSG_BUFFER_SIZE]
CHAR KdpMessageBuffer[KDP_MSG_BUFFER_SIZE]
PULONG KdComponentTable[MAX_KD_COMPONENT_TABLE_ENTRIES]
ULONG NTAPI KdpAddBreakpoint(IN PVOID Address)
NTSTATUS NTAPI KdpSysReadIoSpace(IN ULONG InterfaceType, IN ULONG BusNumber, IN ULONG AddressSpace, IN ULONG64 IoAddress, IN PVOID DataValue, IN ULONG DataSize, OUT PULONG ActualDataSize)
NTSTATUS NTAPI KdpAllowDisable(VOID)
BOOLEAN NTAPI KdpDeleteBreakpoint(IN ULONG BpEntry)
VOID NTAPI KdpSuspendAllBreakPoints(VOID)
LARGE_INTEGER KdTimerDifference
static KCONTINUE_STATUS KdpSwitchProcessor(_In_ USHORT ProcessorIndex)
VOID NTAPI KdpRestoreBreakPointEx(IN PDBGKD_MANIPULATE_STATE64 State, IN PSTRING Data, IN PCONTEXT Context)
VOID NTAPI KdpFillMemory(IN PDBGKD_MANIPULATE_STATE64 State, IN PSTRING Data, IN PCONTEXT Context)
NTSTATUS NTAPI NtQueryDebugFilterState(_In_ ULONG ComponentId, _In_ ULONG Level)
VOID NTAPI KdpWriteMachineSpecificRegister(IN PDBGKD_MANIPULATE_STATE64 State, IN PSTRING Data, IN PCONTEXT Context)
NTSTATUS NTAPI NtSetDebugFilterState(_In_ ULONG ComponentId, _In_ ULONG Level, _In_ BOOLEAN State)
NTSTATUS NTAPI KdDisableDebuggerWithLock(IN BOOLEAN NeedLock)
VOID NTAPI KdpRestoreBreakpoint(IN PDBGKD_MANIPULATE_STATE64 State, IN PSTRING Data, IN PCONTEXT Context)
NTSTATUS NTAPI KdChangeOption(IN KD_OPTION Option, IN ULONG InBufferBytes OPTIONAL, IN PVOID InBuffer, IN ULONG OutBufferBytes OPTIONAL, OUT PVOID OutBuffer, OUT PULONG OutBufferNeeded OPTIONAL)
VOID NTAPI KdpGetVersion(IN PDBGKD_MANIPULATE_STATE64 State)
VOID NTAPI PspDumpThreads(BOOLEAN SystemThreads)
VOID NTAPI KdpGetContext(IN PDBGKD_MANIPULATE_STATE64 State, IN PSTRING Data, IN PCONTEXT Context)
BOOLEAN NTAPI KdRefreshDebuggerNotPresent(VOID)
VOID NTAPI KdpNotSupported(IN PDBGKD_MANIPULATE_STATE64 State)
VOID NTAPI KdpReadVirtualMemory(IN PDBGKD_MANIPULATE_STATE64 State, IN PSTRING Data, IN PCONTEXT Context)
VOID NTAPI KdpGetContextEx(IN PDBGKD_MANIPULATE_STATE64 State, IN PSTRING Data, IN PCONTEXT Context)
VOID NTAPI KdpQueryMemory(IN PDBGKD_MANIPULATE_STATE64 State, IN PCONTEXT Context)
VOID NTAPI KdpSetCommonState(IN ULONG NewState, IN PCONTEXT Context, IN PDBGKD_ANY_WAIT_STATE_CHANGE WaitStateChange)
VOID NTAPI DumpTraceData(IN PSTRING TraceData)
VOID NTAPI KdpSearchMemory(IN PDBGKD_MANIPULATE_STATE64 State, IN PSTRING Data, IN PCONTEXT Context)
VOID NTAPI KdpReadPhysicalMemory(IN PDBGKD_MANIPULATE_STATE64 State, IN PSTRING Data, IN PCONTEXT Context)
VOID NTAPI KdpTimeSlipWork(IN PVOID Context)
VOID NTAPI KdpReadControlSpace(IN PDBGKD_MANIPULATE_STATE64 State, IN PSTRING Data, IN PCONTEXT Context)
KCONTINUE_STATUS NTAPI KdReportProcessorChange(VOID)
BOOLEAN NTAPI KdpReportExceptionStateChange(IN PEXCEPTION_RECORD ExceptionRecord, IN OUT PCONTEXT Context, IN BOOLEAN SecondChanceException)
VOID NTAPI KdpWriteBreakpoint(IN PDBGKD_MANIPULATE_STATE64 State, IN PSTRING Data, IN PCONTEXT Context)
VOID NTAPI KdpCauseBugCheck(IN PDBGKD_MANIPULATE_STATE64 State)
VOID NTAPI KdpWriteVirtualMemory(IN PDBGKD_MANIPULATE_STATE64 State, IN PSTRING Data, IN PCONTEXT Context)
VOID NTAPI KdpReadIoSpace(IN PDBGKD_MANIPULATE_STATE64 State, IN PSTRING Data, IN PCONTEXT Context)
VOID NTAPI KdpReportCommandStringStateChange(IN PSTRING NameString, IN PSTRING CommandString, IN OUT PCONTEXT Context)
NTSTATUS NTAPI KdpWriteBreakPointEx(IN PDBGKD_MANIPULATE_STATE64 State, IN PSTRING Data, IN PCONTEXT Context)
VOID NTAPI KdpWriteIoSpace(IN PDBGKD_MANIPULATE_STATE64 State, IN PSTRING Data, IN PCONTEXT Context)
NTSTATUS NTAPI KdPowerTransition(IN DEVICE_POWER_STATE NewState)
VOID NTAPI KdpSetContext(IN PDBGKD_MANIPULATE_STATE64 State, IN PSTRING Data, IN PCONTEXT Context)
VOID NTAPI KdpReportLoadSymbolsStateChange(IN PSTRING PathName, IN PKD_SYMBOLS_INFO SymbolInfo, IN BOOLEAN Unload, IN OUT PCONTEXT Context)
VOID NTAPI KdpWritePhysicalMemory(IN PDBGKD_MANIPULATE_STATE64 State, IN PSTRING Data, IN PCONTEXT Context)
NTSTATUS NTAPI KdDisableDebugger(VOID)
VOID NTAPI KdpZeroMemory(_In_ PVOID Destination, _In_ SIZE_T Length)
NTSTATUS NTAPI KdEnableDebugger(VOID)
VOID NTAPI KdpSetContextEx(IN PDBGKD_MANIPULATE_STATE64 State, IN PSTRING Data, IN PCONTEXT Context)
VOID NTAPI KdpSetBusData(IN PDBGKD_MANIPULATE_STATE64 State, IN PSTRING Data, IN PCONTEXT Context)
KCONTINUE_STATUS NTAPI KdpSendWaitContinue(IN ULONG PacketType, IN PSTRING SendHeader, IN PSTRING SendData OPTIONAL, IN OUT PCONTEXT Context)
VOID NTAPI KdpReadIoSpaceExtended(IN PDBGKD_MANIPULATE_STATE64 State, IN PSTRING Data, IN PCONTEXT Context)
NTSTATUS NTAPI KdpCopyMemoryChunks(_In_ ULONG64 Address, _In_ PVOID Buffer, _In_ ULONG TotalSize, _In_ ULONG ChunkSize, _In_ ULONG Flags, _Out_opt_ PULONG ActualSize)
BOOLEAN NTAPI KdEnterDebugger(IN PKTRAP_FRAME TrapFrame, IN PKEXCEPTION_FRAME ExceptionFrame)
VOID NTAPI KdExitDebugger(IN BOOLEAN Enable)
VOID NTAPI KdpReadMachineSpecificRegister(IN PDBGKD_MANIPULATE_STATE64 State, IN PSTRING Data, IN PCONTEXT Context)
VOID NTAPI KdpMoveMemory(_In_ PVOID Destination, _In_ PVOID Source, _In_ SIZE_T Length)
NTSTATUS NTAPI KdSystemDebugControl(_In_ SYSDBG_COMMAND Command, _In_ PVOID InputBuffer, _In_ ULONG InputBufferLength, _Out_ PVOID OutputBuffer, _In_ ULONG OutputBufferLength, _Inout_ PULONG ReturnLength, _In_ KPROCESSOR_MODE PreviousMode)
VOID NTAPI KdpCheckLowMemory(IN PDBGKD_MANIPULATE_STATE64 State)
VOID NTAPI KdpTimeSlipDpcRoutine(IN PKDPC Dpc, IN PVOID DeferredContext, IN PVOID SystemArgument1, IN PVOID SystemArgument2)
VOID NTAPI KdpWriteIoSpaceExtended(IN PDBGKD_MANIPULATE_STATE64 State, IN PSTRING Data, IN PCONTEXT Context)
NTSTATUS NTAPI KdEnableDebuggerWithLock(IN BOOLEAN NeedLock)
VOID NTAPI KdpWriteCustomBreakpoint(IN PDBGKD_MANIPULATE_STATE64 State, IN PSTRING Data, IN PCONTEXT Context)
VOID NTAPI KdpGetBusData(IN PDBGKD_MANIPULATE_STATE64 State, IN PSTRING Data, IN PCONTEXT Context)
VOID NTAPI KdpWriteControlSpace(IN PDBGKD_MANIPULATE_STATE64 State, IN PSTRING Data, IN PCONTEXT Context)
VOID NTAPI KdpSysGetVersion(IN PDBGKD_GET_VERSION64 Version)
LARGE_INTEGER NTAPI KdpQueryPerformanceCounter(IN PKTRAP_FRAME TrapFrame)
BOOLEAN NTAPI KdbRegisterCliCallback(PVOID Callback, BOOLEAN Deregister)
NTSTATUS NTAPI KdD0Transition(VOID)
NTSTATUS NTAPI KdRestore(IN BOOLEAN SleepTransition)
NTSTATUS NTAPI KdD3Transition(VOID)
NTSTATUS NTAPI KdSave(IN BOOLEAN SleepTransition)
BOOLEAN KdDebuggerNotPresent
BOOLEAN KdDebuggerEnabled
VOID NTAPI KdSendPacket(IN ULONG PacketType, IN PSTRING MessageHeader, IN PSTRING MessageData, IN OUT PKD_CONTEXT KdContext)
KDP_STATUS NTAPI KdReceivePacket(IN ULONG PacketType, OUT PSTRING MessageHeader, OUT PSTRING MessageData, OUT PULONG DataLength, IN OUT PKD_CONTEXT KdContext)
#define STATUS_DEBUGGER_INACTIVE
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
FORCEINLINE struct _KPRCB * KeGetCurrentPrcb(VOID)
enum _SYSDBG_COMMAND SYSDBG_COMMAND
enum _KCONTINUE_STATUS KCONTINUE_STATUS
@ ContinueProcessorReselected
_In_ PUNICODE_STRING _Inout_ PUNICODE_STRING Destination
_IRQL_requires_same_ _In_ PVOID _Inout_ struct _CONTEXT * ContextRecord
_In_ ULONG _In_ ULONG _In_ ULONG Length
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
VOID NTAPI ExUpdateSystemTimeFromCmos(IN BOOLEAN UpdateInterruptTime, IN ULONG MaxSepInSeconds)
VOID NTAPI ExReleaseTimeRefreshLock(VOID)
BOOLEAN NTAPI ExAcquireTimeRefreshLock(IN BOOLEAN Wait)
FORCEINLINE VOID KeSweepICache(IN PVOID BaseAddress, IN SIZE_T FlushSize)
#define KeGetTrapFrameInterruptState(TrapFrame)
#define KeGetContextPc(Context)
PKPRCB KiProcessorBlock[]
KCONTINUE_STATUS NTAPI KxSwitchKdProcessor(_In_ ULONG ProcessorIndex)
BOOLEAN NTAPI KeFreezeExecution(IN PKTRAP_FRAME TrapFrame, IN PKEXCEPTION_FRAME ExceptionFrame)
VOID NTAPI KeThawExecution(IN BOOLEAN Enable)
#define MMDBG_COPY_PHYSICAL
BOOLEAN NTAPI MmIsSessionAddress(IN PVOID Address)
#define MMDBG_COPY_UNSAFE
VOID NTAPI MmDumpArmPfnDatabase(IN BOOLEAN StatusOnly)
#define MMDBG_COPY_MAX_SIZE
#define MMDBG_COPY_WRITE_COMBINED
NTSTATUS NTAPI MmDbgCopyMemory(IN ULONG64 Address, IN PVOID Buffer, IN ULONG Size, IN ULONG Flags)
#define MMDBG_COPY_CACHED
#define MMDBG_COPY_UNCACHED
const LUID SeDebugPrivilege
BOOLEAN FASTCALL KeTryToAcquireSpinLockAtDpcLevel(IN OUT PKSPIN_LOCK SpinLock)
BOOLEAN NTAPI SeSinglePrivilegeCheck(_In_ LUID PrivilegeValue, _In_ KPROCESSOR_MODE PreviousMode)
Checks if a single privilege is present in the context of the calling thread.
static BOOL SendData(PINFO pInfo)
enum _DEVICE_POWER_STATE DEVICE_POWER_STATE
_In_opt_ PENTER_STATE_SYSTEM_HANDLER _In_opt_ PVOID _In_ LONG _In_opt_ LONG volatile * Number
#define STATUS_ACCESS_VIOLATION
#define STATUS_INVALID_INFO_CLASS
#define STATUS_INVALID_PARAMETER_1
#define STATUS_WAKE_SYSTEM_DEBUGGER
PVOID MmHighestUserAddress
_In_ UCHAR _In_ ULONG _Out_ PUCHAR _Outptr_result_bytebuffer_ OutBufferLength PVOID * OutBuffer
#define KdPacketNeedsResend
FORCEINLINE ULONG KeGetCurrentProcessorNumber(VOID)
PULONG MinorVersion OPTIONAL
DBGKD_COMMAND_STRING CommandString
union _DBGKD_ANY_WAIT_STATE_CHANGE::@3550 u
DBGKM_EXCEPTION64 Exception
DBGKD_LOAD_SYMBOLS64 LoadSymbols
DBGKD_CONTINUE2 Continue2
union _DBGKD_MANIPULATE_STATE64::@3558 u
ULONG64 BreakPointAddress
EXCEPTION_RECORD64 ExceptionRecord
KPROCESSOR_STATE ProcessorState
BOOLEAN NTAPI KeSetTimer(IN OUT PKTIMER Timer, IN LARGE_INTEGER DueTime, IN PKDPC Dpc OPTIONAL)
#define STATUS_ACCESS_DENIED
#define STATUS_INVALID_PARAMETER
#define STATUS_UNSUCCESSFUL
_Must_inspect_result_ _In_ PWDF_DPC_CONFIG _In_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFDPC * Dpc
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE _In_ USHORT _In_ USHORT Version
_In_ WDFREQUEST _In_ size_t OutputBufferLength
_In_ WDFREQUEST _In_ size_t _In_ size_t InputBufferLength
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR OutputBuffer
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR InputBuffer
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _In_ _Strict_type_match_ POOL_TYPE _In_opt_ ULONG _In_ _Out_ WDFMEMORY * Memory
_In_ WDFTIMER _In_ LONGLONG DueTime
_Must_inspect_result_ _In_ WDFUSBPIPE _In_ WDFREQUEST _In_opt_ WDFMEMORY ReadMemory
_Must_inspect_result_ _In_ WDFUSBPIPE _In_ WDFREQUEST _In_opt_ WDFMEMORY WriteMemory
#define DbgKdClearAllInternalBreakpointsApi
#define DbgKdCheckLowMemoryApi
#define DbgKdWriteControlSpaceApi
#define DbgKdGetVersionApi
#define DbgKdReadControlSpaceApi
#define DbgKdGetContextApi
#define DbgKdLoadSymbolsStateChange
#define DBGKD_CACHING_WRITE_COMBINED
#define DbgKdSetContextExApi
#define DBGKD_CACHING_CACHED
#define DbgKdWriteVirtualMemoryApi
#define DbgKdGetContextExApi
#define DbgKdWriteCustomBreakpointApi
#define DbgKdSwitchPartition
#define DBGKD_QUERY_MEMORY_PROCESS
#define DBGKD_QUERY_MEMORY_READ
#define DbgKdSetContextApi
struct _DBGKD_ANY_WAIT_STATE_CHANGE DBGKD_ANY_WAIT_STATE_CHANGE
#define DbgKdReadIoSpaceApi
#define DBGKD_QUERY_MEMORY_SESSION
#define DbgKdCommandStringStateChange
#define PACKET_TYPE_KD_STATE_MANIPULATE
#define DbgKdWriteBreakPointExApi
#define DbgKdSearchMemoryApi
#define DbgKdGetInternalBreakPointApi
#define DBGKD_CACHING_UNCACHED
#define DbgKdQuerySpecialCallsApi
#define DBGKD_QUERY_MEMORY_WRITE
#define DbgKdReadVirtualMemoryApi
#define DbgKdFillMemoryApi
#define DbgKdWriteMachineSpecificRegister
#define DbgKdCauseBugCheckApi
#define DbgKdContinueApi2
#define DbgKdWriteBreakPointApi
#define DbgKdExceptionStateChange
#define PACKET_TYPE_KD_STATE_CHANGE64
#define DbgKdWriteIoSpaceApi
#define DbgKdSetInternalBreakPointApi
#define DbgKdGetBusDataApi
#define DbgKdClearSpecialCallsApi
#define DBGKD_QUERY_MEMORY_EXECUTE
#define DBGKD_QUERY_MEMORY_VIRTUAL
#define DbgKdWriteIoSpaceExtendedApi
#define DBGKD_QUERY_MEMORY_KERNEL
#define DbgKdSetBusDataApi
#define DbgKdSetSpecialCallApi
static __inline VOID NTAPI ExceptionRecord32To64(IN PEXCEPTION_RECORD32 Ex32, OUT PEXCEPTION_RECORD64 Ex64)
#define DbgKdWritePhysicalMemoryApi
#define DbgKdRestoreBreakPointExApi
#define DbgKdQueryMemoryApi
#define DbgKdReadMachineSpecificRegister
#define DbgKdReadIoSpaceExtendedApi
#define DbgKdSwitchProcessor
#define DbgKdRestoreBreakPointApi
#define DbgKdReadPhysicalMemoryApi
struct _DBGKD_MANIPULATE_STATE64 DBGKD_MANIPULATE_STATE64
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level
VOID NTAPI ExQueueWorkItem(IN PWORK_QUEUE_ITEM WorkItem, IN WORK_QUEUE_TYPE QueueType)
_Must_inspect_result_ _In_ ULONG Flags
_Requires_lock_held_ Interrupt _Releases_lock_ Interrupt _In_ _IRQL_restores_ KIRQL OldIrql
enum _KD_OPTION KD_OPTION
_In_opt_ PVOID _In_opt_ PVOID SystemArgument1
_In_opt_ PVOID DeferredContext
_In_opt_ PVOID _In_opt_ PVOID _In_opt_ PVOID SystemArgument2
@ KD_OPTION_SET_BLOCK_ENABLE
_Inout_ PUCHAR _In_ PUCHAR _Out_ PUCHAR _Out_ PULONG ChunkSize
_In_ KPROCESSOR_MODE PreviousMode