#ifndef _NTIOAPI_H
// private
/**
* The MUP_FSCTL_UNC_HARDENING_PREFIX_TABLE_ENTRY structure describes a single entry in the MUP UNC hardening prefix table.
*
* Output records for FSCTL_MUP_GET_UNC_HARDENING_CONFIGURATION. There is no
* leading count. The fixed record is 24 bytes, followed by the counted UTF-16
* prefix at PrefixNameOffset relative to this record. Records begin at offsets
* aligned to 16 bytes within the output buffer. NextOffset == 0 ends the list.
* The capability bits are 0x1 mutual authentication, 0x2 integrity, 0x4 privacy.
* OpenCount reports the prefix's open count; this query does not acquire opens.
* STATUS_BUFFER_OVERFLOW can return a partial linked list; grow the buffer and
* restart to obtain the complete table. STATUS_BUFFER_TOO_SMALL is returned
* when no entry fits; do not apply the cache/provider first-ULONG size convention.
* An empty table succeeds with IoStatus.Information == 0.
*/
typedef struct _MUP_FSCTL_UNC_HARDENING_PREFIX_TABLE_ENTRY
{
ULONG NextOffset; // from this struct
ULONG PrefixNameOffset; // to WCHAR[] from this struct
USHORT PrefixNameCbLength; // in bytes
union
{
ULONG RequiredHardeningCapabilities;
struct
{
ULONG RequiresMutualAuth : 1;
ULONG RequiresIntegrity : 1;
ULONG RequiresPrivacy : 1;
} DUMMYSTRUCTNAME;
} DUMMYUNIONNAME;
ULONGLONG OpenCount;
} MUP_FSCTL_UNC_HARDENING_PREFIX_TABLE_ENTRY, *PMUP_FSCTL_UNC_HARDENING_PREFIX_TABLE_ENTRY;
View code on GitHubNo description available.