#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 reference
This structure is documented in Windows Driver Kit.
Stores information about memory partition. This structure is used by the ZwSetInformationFile function.
OwnerPartitionHandle
Handle to the specified partition.
Flags
Flags.DUMMYSTRUCTNAME
Flags.DUMMYSTRUCTNAME.NoCrossPartitionAccess
Determines whether cross-partition access is allowed.
Flags.DUMMYSTRUCTNAME.Spare
Flags.AllFlags
Bitwise of all flags.