Panoptes 1.0.0
Endpoint Detection and Response
Loading...
Searching...
No Matches
def.h File Reference
#include <Winddi.h>
#include <winternl.h>

Go to the source code of this file.

Classes

struct  _BOOT_ENTRY
 The BOOT_ENTRY structure represents a boot entry in the boot configuration database. https://doxygen.reactos.org/d6/d0e/ndk_2iotypes_8h_source.html#l01140. More...

Macros

#define PANO_QUEUE_USER_APC_FLAGS_SPECIAL_USER_APC   0x1
 QUEUE_USER_APC_FLAGS_SPECIAL_USER_APC: the APC is delivered without the thread having to enter an alertable wait.

Typedefs

typedef struct _BOOT_ENTRY BOOT_ENTRY
 The BOOT_ENTRY structure represents a boot entry in the boot configuration database. https://doxygen.reactos.org/d6/d0e/ndk_2iotypes_8h_source.html#l01140.
typedef struct _BOOT_ENTRY * PBOOT_ENTRY
typedef NTSTATUS(NTAPI * pNtWriteVirtualMemory) (HANDLE ProcessHandle, PVOID BaseAddress, PVOID Buffer, SIZE_T NumberOfBytesToWrite, PSIZE_T NumberOfBytesWritten)
 The NtWriteVirtualMemory function writes memory to a specified process.
typedef NTSTATUS(NTAPI * pNtModifyBootEntry) (PBOOT_ENTRY BootEntry)
 The NtModifyBootEntry function modifies a boot entry in the boot configuration database.
typedef NTSTATUS(NTAPI * pNtMapViewOfSectionEx) (_In_ HANDLE SectionHandle, _In_ HANDLE ProcessHandle, _Inout_ _At_(*BaseAddress, _Readable_bytes_(*ViewSize) _Writable_bytes_(*ViewSize) _Post_readable_byte_size_(*ViewSize)) PVOID *BaseAddress, _Inout_opt_ PLARGE_INTEGER SectionOffset, _Inout_ PSIZE_T ViewSize, _In_ ULONG AllocationType, _In_ ULONG PageProtection, _Inout_updates_opt_(ExtendedParameterCount) PMEM_EXTENDED_PARAMETER ExtendedParameters, _In_ ULONG ExtendedParameterCount)
 The NtMapViewOfSectionEx function maps a view of a section into the address space of a process.
typedef enum _PANO_SECTION_INHERIT PANO_SECTION_INHERIT
 How a mapped view is shared with child processes. Only defined in kernel-mode headers.
typedef NTSTATUS(NTAPI * pNtMapViewOfSection) (_In_ HANDLE SectionHandle, _In_ HANDLE ProcessHandle, _Inout_ PVOID *BaseAddress, _In_ ULONG_PTR ZeroBits, _In_ SIZE_T CommitSize, _Inout_opt_ PLARGE_INTEGER SectionOffset, _Inout_ PSIZE_T ViewSize, _In_ PANO_SECTION_INHERIT InheritDisposition, _In_ ULONG AllocationType, _In_ ULONG Win32Protect)
 The NtMapViewOfSection function maps a view of a section into the address space of a process.
typedef NTSTATUS(NTAPI * pNtUnmapViewOfSection) (_In_ HANDLE ProcessHandle, _In_opt_ PVOID BaseAddress)
 The NtUnmapViewOfSection function unmaps a view of a section from the address space of a process.
typedef NTSTATUS(NTAPI * pNtUnmapViewOfSectionEx) (_In_ HANDLE ProcessHandle, _In_opt_ PVOID BaseAddress, _In_ ULONG Flags)
 The NtUnmapViewOfSectionEx function unmaps a view of a section from the address space of a process, with MEM_UNMAP_* flags.
typedef NTSTATUS(NTAPI * pNtProtectVirtualMemory) (_In_ HANDLE ProcessHandle, _Inout_ PVOID *BaseAddress, _Inout_ PSIZE_T RegionSize, _In_ ULONG NewProtection, _Out_ PULONG OldProtection)
 The NtProtectVirtualMemory function changes the protection of memory in a process.
typedef NTSTATUS(NTAPI * pNtAllocateVirtualMemory) (_In_ HANDLE ProcessHandle, _Inout_ PVOID *BaseAddress, _In_ ULONG_PTR ZeroBits, _Inout_ PSIZE_T RegionSize, _In_ ULONG AllocationType, _In_ ULONG Protection)
 The NtAllocateVirtualMemory function reserves and/or commits memory in a process.
typedef NTSTATUS(NTAPI * pNtAllocateVirtualMemoryEx) (_In_ HANDLE ProcessHandle, _Inout_ PVOID *BaseAddress, _Inout_ PSIZE_T RegionSize, _In_ ULONG AllocationType, _In_ ULONG PageProtection, _Inout_updates_opt_(ExtendedParameterCount) PMEM_EXTENDED_PARAMETER ExtendedParameters, _In_ ULONG ExtendedParameterCount)
 The NtAllocateVirtualMemoryEx function reserves and/or commits memory in a process, with extended parameters.
typedef NTSTATUS(NTAPI * pNtReadVirtualMemory) (_In_ HANDLE ProcessHandle, _In_opt_ PVOID BaseAddress, _Out_writes_bytes_(NumberOfBytesToRead) PVOID Buffer, _In_ SIZE_T NumberOfBytesToRead, _Out_opt_ PSIZE_T NumberOfBytesRead)
 The NtReadVirtualMemory function reads memory from a specified process.
typedef NTSTATUS(NTAPI * pNtCreateThreadEx) (_Out_ PHANDLE ThreadHandle, _In_ ACCESS_MASK DesiredAccess, _In_opt_ POBJECT_ATTRIBUTES ObjectAttributes, _In_ HANDLE ProcessHandle, _In_ PVOID StartRoutine, _In_opt_ PVOID Argument, _In_ ULONG CreateFlags, _In_ SIZE_T ZeroBits, _In_ SIZE_T StackSize, _In_ SIZE_T MaximumStackSize, _In_opt_ PVOID AttributeList)
 The NtCreateThreadEx function creates a thread in a specified process. StartRoutine is a PUSER_THREAD_START_ROUTINE and AttributeList a PPS_ATTRIBUTE_LIST, neither of which is in the SDK headers.
typedef VOID(NTAPI * PPANO_APC_ROUTINE) (_In_opt_ PVOID ApcArgument1, _In_opt_ PVOID ApcArgument2, _In_opt_ PVOID ApcArgument3)
 The routine an APC queued with NtQueueApcThread runs. Not in the SDK headers.
typedef NTSTATUS(NTAPI * pNtQueueApcThread) (_In_ HANDLE ThreadHandle, _In_ PPANO_APC_ROUTINE ApcRoutine, _In_opt_ PVOID ApcArgument1, _In_opt_ PVOID ApcArgument2, _In_opt_ PVOID ApcArgument3)
 The NtQueueApcThread function queues a user-mode APC to a thread.
typedef NTSTATUS(NTAPI * pNtQueueApcThreadEx2) (_In_ HANDLE ThreadHandle, _In_opt_ HANDLE ReserveHandle, _In_ ULONG ApcFlags, _In_ PPANO_APC_ROUTINE ApcRoutine, _In_opt_ PVOID ApcArgument1, _In_opt_ PVOID ApcArgument2, _In_opt_ PVOID ApcArgument3)
 The NtQueueApcThreadEx2 function queues a user-mode APC to a thread, optionally as a special user APC. Exported by ntdll on Windows 10 2004 and later; KernelBase's QueueUserAPC and QueueUserAPC2 call it.
typedef NTSTATUS(NTAPI * pNtSetInformationProcess) (_In_ HANDLE ProcessHandle, _In_ PROCESSINFOCLASS ProcessInformationClass, _In_reads_bytes_(ProcessInformationLength) PVOID ProcessInformation, _In_ ULONG ProcessInformationLength)
 The NtSetInformationProcess function sets information about a process.

Enumerations

enum  _PANO_SECTION_INHERIT { PanoViewShare = 1 , PanoViewUnmap = 2 }
 How a mapped view is shared with child processes. Only defined in kernel-mode headers. More...

Macro Definition Documentation

◆ PANO_QUEUE_USER_APC_FLAGS_SPECIAL_USER_APC

#define PANO_QUEUE_USER_APC_FLAGS_SPECIAL_USER_APC   0x1

QUEUE_USER_APC_FLAGS_SPECIAL_USER_APC: the APC is delivered without the thread having to enter an alertable wait.

Definition at line 160 of file def.h.

Typedef Documentation

◆ BOOT_ENTRY

typedef struct _BOOT_ENTRY BOOT_ENTRY

The BOOT_ENTRY structure represents a boot entry in the boot configuration database. https://doxygen.reactos.org/d6/d0e/ndk_2iotypes_8h_source.html#l01140.

◆ PANO_SECTION_INHERIT

How a mapped view is shared with child processes. Only defined in kernel-mode headers.

◆ PBOOT_ENTRY

typedef struct _BOOT_ENTRY * PBOOT_ENTRY

◆ pNtAllocateVirtualMemory

typedef NTSTATUS(NTAPI * pNtAllocateVirtualMemory) (_In_ HANDLE ProcessHandle, _Inout_ PVOID *BaseAddress, _In_ ULONG_PTR ZeroBits, _Inout_ PSIZE_T RegionSize, _In_ ULONG AllocationType, _In_ ULONG Protection)

The NtAllocateVirtualMemory function reserves and/or commits memory in a process.

Definition at line 95 of file def.h.

◆ pNtAllocateVirtualMemoryEx

typedef NTSTATUS(NTAPI * pNtAllocateVirtualMemoryEx) (_In_ HANDLE ProcessHandle, _Inout_ PVOID *BaseAddress, _Inout_ PSIZE_T RegionSize, _In_ ULONG AllocationType, _In_ ULONG PageProtection, _Inout_updates_opt_(ExtendedParameterCount) PMEM_EXTENDED_PARAMETER ExtendedParameters, _In_ ULONG ExtendedParameterCount)

The NtAllocateVirtualMemoryEx function reserves and/or commits memory in a process, with extended parameters.

Definition at line 106 of file def.h.

◆ pNtCreateThreadEx

typedef NTSTATUS(NTAPI * pNtCreateThreadEx) (_Out_ PHANDLE ThreadHandle, _In_ ACCESS_MASK DesiredAccess, _In_opt_ POBJECT_ATTRIBUTES ObjectAttributes, _In_ HANDLE ProcessHandle, _In_ PVOID StartRoutine, _In_opt_ PVOID Argument, _In_ ULONG CreateFlags, _In_ SIZE_T ZeroBits, _In_ SIZE_T StackSize, _In_ SIZE_T MaximumStackSize, _In_opt_ PVOID AttributeList)

The NtCreateThreadEx function creates a thread in a specified process. StartRoutine is a PUSER_THREAD_START_ROUTINE and AttributeList a PPS_ATTRIBUTE_LIST, neither of which is in the SDK headers.

Definition at line 128 of file def.h.

◆ pNtMapViewOfSection

typedef NTSTATUS(NTAPI * pNtMapViewOfSection) (_In_ HANDLE SectionHandle, _In_ HANDLE ProcessHandle, _Inout_ PVOID *BaseAddress, _In_ ULONG_PTR ZeroBits, _In_ SIZE_T CommitSize, _Inout_opt_ PLARGE_INTEGER SectionOffset, _Inout_ PSIZE_T ViewSize, _In_ PANO_SECTION_INHERIT InheritDisposition, _In_ ULONG AllocationType, _In_ ULONG Win32Protect)

The NtMapViewOfSection function maps a view of a section into the address space of a process.

Definition at line 57 of file def.h.

◆ pNtMapViewOfSectionEx

typedef NTSTATUS(NTAPI * pNtMapViewOfSectionEx) (_In_ HANDLE SectionHandle, _In_ HANDLE ProcessHandle, _Inout_ _At_(*BaseAddress, _Readable_bytes_(*ViewSize) _Writable_bytes_(*ViewSize) _Post_readable_byte_size_(*ViewSize)) PVOID *BaseAddress, _Inout_opt_ PLARGE_INTEGER SectionOffset, _Inout_ PSIZE_T ViewSize, _In_ ULONG AllocationType, _In_ ULONG PageProtection, _Inout_updates_opt_(ExtendedParameterCount) PMEM_EXTENDED_PARAMETER ExtendedParameters, _In_ ULONG ExtendedParameterCount)

The NtMapViewOfSectionEx function maps a view of a section into the address space of a process.

Definition at line 36 of file def.h.

◆ pNtModifyBootEntry

typedef NTSTATUS(NTAPI * pNtModifyBootEntry) (PBOOT_ENTRY BootEntry)

The NtModifyBootEntry function modifies a boot entry in the boot configuration database.

Definition at line 30 of file def.h.

◆ pNtProtectVirtualMemory

typedef NTSTATUS(NTAPI * pNtProtectVirtualMemory) (_In_ HANDLE ProcessHandle, _Inout_ PVOID *BaseAddress, _Inout_ PSIZE_T RegionSize, _In_ ULONG NewProtection, _Out_ PULONG OldProtection)

The NtProtectVirtualMemory function changes the protection of memory in a process.

Definition at line 86 of file def.h.

◆ pNtQueueApcThread

typedef NTSTATUS(NTAPI * pNtQueueApcThread) (_In_ HANDLE ThreadHandle, _In_ PPANO_APC_ROUTINE ApcRoutine, _In_opt_ PVOID ApcArgument1, _In_opt_ PVOID ApcArgument2, _In_opt_ PVOID ApcArgument3)

The NtQueueApcThread function queues a user-mode APC to a thread.

Definition at line 150 of file def.h.

◆ pNtQueueApcThreadEx2

typedef NTSTATUS(NTAPI * pNtQueueApcThreadEx2) (_In_ HANDLE ThreadHandle, _In_opt_ HANDLE ReserveHandle, _In_ ULONG ApcFlags, _In_ PPANO_APC_ROUTINE ApcRoutine, _In_opt_ PVOID ApcArgument1, _In_opt_ PVOID ApcArgument2, _In_opt_ PVOID ApcArgument3)

The NtQueueApcThreadEx2 function queues a user-mode APC to a thread, optionally as a special user APC. Exported by ntdll on Windows 10 2004 and later; KernelBase's QueueUserAPC and QueueUserAPC2 call it.

Definition at line 165 of file def.h.

◆ pNtReadVirtualMemory

typedef NTSTATUS(NTAPI * pNtReadVirtualMemory) (_In_ HANDLE ProcessHandle, _In_opt_ PVOID BaseAddress, _Out_writes_bytes_(NumberOfBytesToRead) PVOID Buffer, _In_ SIZE_T NumberOfBytesToRead, _Out_opt_ PSIZE_T NumberOfBytesRead)

The NtReadVirtualMemory function reads memory from a specified process.

Definition at line 117 of file def.h.

◆ pNtSetInformationProcess

typedef NTSTATUS(NTAPI * pNtSetInformationProcess) (_In_ HANDLE ProcessHandle, _In_ PROCESSINFOCLASS ProcessInformationClass, _In_reads_bytes_(ProcessInformationLength) PVOID ProcessInformation, _In_ ULONG ProcessInformationLength)

The NtSetInformationProcess function sets information about a process.

Definition at line 176 of file def.h.

◆ pNtUnmapViewOfSection

typedef NTSTATUS(NTAPI * pNtUnmapViewOfSection) (_In_ HANDLE ProcessHandle, _In_opt_ PVOID BaseAddress)

The NtUnmapViewOfSection function unmaps a view of a section from the address space of a process.

Definition at line 72 of file def.h.

◆ pNtUnmapViewOfSectionEx

typedef NTSTATUS(NTAPI * pNtUnmapViewOfSectionEx) (_In_ HANDLE ProcessHandle, _In_opt_ PVOID BaseAddress, _In_ ULONG Flags)

The NtUnmapViewOfSectionEx function unmaps a view of a section from the address space of a process, with MEM_UNMAP_* flags.

Definition at line 79 of file def.h.

◆ pNtWriteVirtualMemory

typedef NTSTATUS(NTAPI * pNtWriteVirtualMemory) (HANDLE ProcessHandle, PVOID BaseAddress, PVOID Buffer, SIZE_T NumberOfBytesToWrite, PSIZE_T NumberOfBytesWritten)

The NtWriteVirtualMemory function writes memory to a specified process.

Definition at line 21 of file def.h.

◆ PPANO_APC_ROUTINE

typedef VOID(NTAPI * PPANO_APC_ROUTINE) (_In_opt_ PVOID ApcArgument1, _In_opt_ PVOID ApcArgument2, _In_opt_ PVOID ApcArgument3)

The routine an APC queued with NtQueueApcThread runs. Not in the SDK headers.

Definition at line 143 of file def.h.

Enumeration Type Documentation

◆ _PANO_SECTION_INHERIT

How a mapped view is shared with child processes. Only defined in kernel-mode headers.

Enumerator
PanoViewShare 
PanoViewUnmap 

Definition at line 50 of file def.h.

50 {
51 PanoViewShare = 1,
enum _PANO_SECTION_INHERIT PANO_SECTION_INHERIT
How a mapped view is shared with child processes. Only defined in kernel-mode headers.
@ PanoViewShare
Definition def.h:51
@ PanoViewUnmap
Definition def.h:52