2006-05-10 17:47:44 +00:00
|
|
|
/*++ NDK Version: 0098
|
2006-05-05 18:13:26 +00:00
|
|
|
|
|
|
|
Copyright (c) Alex Ionescu. All rights reserved.
|
|
|
|
|
|
|
|
Header Name:
|
|
|
|
|
|
|
|
dbgkfuncs.h
|
|
|
|
|
|
|
|
Abstract:
|
|
|
|
|
|
|
|
Function definitions for the User Mode Debugging Facility.
|
|
|
|
|
|
|
|
Author:
|
|
|
|
|
2006-05-10 17:47:44 +00:00
|
|
|
Alex Ionescu (alexi@tinykrnl.org) - Updated - 27-Feb-2006
|
2006-05-05 18:13:26 +00:00
|
|
|
|
|
|
|
--*/
|
|
|
|
|
|
|
|
#ifndef _DBGKFUNCS_H
|
|
|
|
#define _DBGKFUNCS_H
|
|
|
|
|
|
|
|
//
|
|
|
|
// Dependencies
|
|
|
|
//
|
|
|
|
#include <umtypes.h>
|
2006-06-28 17:02:37 +00:00
|
|
|
#include <dbgktypes.h>
|
2006-05-05 18:13:26 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Native calls
|
|
|
|
//
|
2006-06-28 17:02:37 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtDebugActiveProcess(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE Process,
|
|
|
|
_In_ HANDLE DebugObject
|
2006-06-28 17:02:37 +00:00
|
|
|
);
|
|
|
|
|
2006-05-05 18:13:26 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtCreateDebugObject(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE DebugHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
_In_ ULONG Flags
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtDebugContinue(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE DebugObject,
|
|
|
|
_In_ PCLIENT_ID AppClientId,
|
|
|
|
_In_ NTSTATUS ContinueStatus
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtWaitForDebugEvent(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE DebugObject,
|
|
|
|
_In_ BOOLEAN Alertable,
|
|
|
|
_In_opt_ PLARGE_INTEGER Timeout,
|
|
|
|
_Out_ PDBGUI_WAIT_STATE_CHANGE StateChange
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
2006-06-28 17:02:37 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtRemoveProcessDebug(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE Process,
|
|
|
|
_In_ HANDLE DebugObject
|
2006-06-28 17:02:37 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtSetInformationDebugObject(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE DebugObject,
|
|
|
|
_In_ DEBUGOBJECTINFOCLASS InformationClass,
|
|
|
|
_In_ PVOID Information,
|
|
|
|
_In_ ULONG InformationLength,
|
|
|
|
_Out_opt_ PULONG ReturnLength
|
2006-06-28 17:02:37 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwDebugActiveProcess(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE Process,
|
|
|
|
_In_ HANDLE DebugObject
|
2006-06-28 17:02:37 +00:00
|
|
|
);
|
|
|
|
|
2006-05-10 17:47:44 +00:00
|
|
|
NTSYSAPI
|
2006-05-05 18:13:26 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwCreateDebugObject(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE DebugHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
_In_ ULONG Flags
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
2006-05-10 17:47:44 +00:00
|
|
|
NTSYSAPI
|
2006-05-05 18:13:26 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwDebugContinue(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE DebugObject,
|
|
|
|
_In_ PCLIENT_ID AppClientId,
|
|
|
|
_In_ NTSTATUS ContinueStatus
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
2006-06-28 17:02:37 +00:00
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwRemoveProcessDebug(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE Process,
|
|
|
|
_In_ HANDLE DebugObject
|
2006-06-28 17:02:37 +00:00
|
|
|
);
|
|
|
|
|
2006-05-10 17:47:44 +00:00
|
|
|
NTSYSAPI
|
2006-05-05 18:13:26 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwWaitForDebugEvent(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE DebugObject,
|
|
|
|
_In_ BOOLEAN Alertable,
|
|
|
|
_In_opt_ PLARGE_INTEGER Timeout,
|
|
|
|
_Out_ PDBGUI_WAIT_STATE_CHANGE StateChange
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
2006-06-28 17:02:37 +00:00
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwSetInformationDebugObject(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE DebugObject,
|
|
|
|
_In_ DEBUGOBJECTINFOCLASS InformationClass,
|
|
|
|
_In_ PVOID Information,
|
|
|
|
_In_ ULONG InformationLength,
|
|
|
|
_Out_opt_ PULONG ReturnLength
|
2006-06-28 17:02:37 +00:00
|
|
|
);
|
2006-05-05 18:13:26 +00:00
|
|
|
#endif
|