#ifndef _NTDBG_H
/**
* Sets information for a debug object.
*
* \param DebugObjectHandle A handle to the debug object.
* \param DebugObjectInformationClass The information class to be set.
* \param DebugInformation A pointer to the buffer that contains the information.
* \param DebugInformationLength The length of the information buffer, in bytes.
* \param ReturnLength Optional. A pointer to a variable that receives the number of bytes returned.
* \return NTSTATUS Successful or errant status.
* \remarks The setter accepts only class 1, exactly 4 input bytes, and flag bit
* 0x1. It requires debug-object access 0x4. ReturnLength is initialized to zero and becomes 4 on a length
* mismatch; it is not a general count of data returned by this setter. Input alignment is checked at 4 bytes.
*/
_Kernel_entry_
NTSYSCALLAPI
NTSTATUS
NTAPI
NtSetInformationDebugObject(
_In_ HANDLE DebugObjectHandle,
_In_ DEBUGOBJECTINFOCLASS DebugObjectInformationClass,
_In_reads_bytes_(DebugInformationLength) PVOID DebugInformation,
_In_ ULONG DebugInformationLength,
_Out_opt_ PULONG ReturnLength
);
View code on GitHub#ifndef _NTZWAPI_H
_Kernel_entry_
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwSetInformationDebugObject(
_In_ HANDLE DebugObjectHandle,
_In_ DEBUGOBJECTINFOCLASS DebugObjectInformationClass,
_In_reads_bytes_(DebugInformationLength) PVOID DebugInformation,
_In_ ULONG DebugInformationLength,
_Out_opt_ PULONG ReturnLength
);
View code on GitHubNo description available.