#ifndef _NTIOAPI_H
/**
* The FILE_MEMORY_PARTITION_INFORMATION structure is used to query information about a memory partition.
* \sa https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/ns-wdm-_file_memory_partition_information
*/
typedef struct _FILE_MEMORY_PARTITION_INFORMATION
{
HANDLE OwnerPartitionHandle;
union
{
struct
{
UCHAR NoCrossPartitionAccess;
UCHAR Spare[3];
};
ULONG AllFlags;
} Flags;
} FILE_MEMORY_PARTITION_INFORMATION, *PFILE_MEMORY_PARTITION_INFORMATION;
View code on GitHub// wdm.h
typedef struct _FILE_MEMORY_PARTITION_INFORMATION {
ULONG_PTR OwnerPartitionHandle;
union {
struct {
UCHAR NoCrossPartitionAccess;
UCHAR Spare[3];
} DUMMYSTRUCTNAME;
ULONG AllFlags;
} Flags;
} FILE_MEMORY_PARTITION_INFORMATION, *PFILE_MEMORY_PARTITION_INFORMATION;
View the official Windows Driver Kit DDI referenceThis structure is documented in Windows Driver Kit.
Stores information about memory partition. This structure is used by the ZwSetInformationFile function.
OwnerPartitionHandleHandle to the specified partition.
FlagsFlags.DUMMYSTRUCTNAMEFlags.DUMMYSTRUCTNAME.NoCrossPartitionAccessDetermines whether cross-partition access is allowed.
Flags.DUMMYSTRUCTNAME.SpareFlags.AllFlagsBitwise of all flags.