NAP Type Constants
Note
The Network Access Protection platform is not available starting with Windows 10
The following NAP constants are defined.
The following NAP constants are defined in NapTypes.h:
-
maxSoHAttributeCount
-
-
0x64
-
The maximum number of SoHAttribute type-length-value (TLV) objects associated with an SoH packet.
-
-
maxSoHAttributeSize
-
-
0xFA0
-
The maximum size, in bytes, of a SoHAttribute object associated with a statement of health (SoH) packet.
-
-
minNetworkSoHSize
-
-
0xC
-
The minimum size, in bytes, of an SoH packet.
-
-
maxNetworkSoHSize
-
-
0xFA0
-
The maximum size, in bytes, of an SoH packet.
-
-
maxDwordCountPerSoHAttribute
-
-
maxSoHAttributeSize / sizeof(DWORD)
-
The maximum number of DWORD values associated with an SoHAttribute.
-
-
maxIpv4CountPerSoHAttribute
-
-
maxSoHAttributeSize / 0x4
-
The maximum number of IPv4 addresses associated with an SoHAttribute.
-
-
maxIpv6CountPerSoHAttribute
-
-
maxSoHAttributeSize / 0x10
-
The maximum number of IPv6 addresses associated with an SoHAttribute.
-
-
maxStringLength
-
-
0x400
-
The maximum length of a string specified by the CountedString structure.
-
-
maxStringLengthInBytes
-
-
(maxStringLength + 1) * sizeof(WCHAR)
-
The maximum length, in bytes, of a string specified by the CountedString structure.
-
-
maxSystemHealthEntityCount
-
-
0x14
-
The maximum number of system health entities, such as SHVs and SHAs.
-
-
SystemHealthEntityCount
-
-
[range(0, maxSystemHealthEntityCount)]
-
The range of possible values for the number of system health entities.
-
-
maxEnforcerCount
-
-
0x14
-
The maximum number of enforcement entities, such as QECs.
-
-
EnforcementEntityCount
-
-
[range(0, maxEnforcerCount)]
-
The range of possible values for the number of enforcement entities.
-
-
maxPrivateDataSize
-
-
0xC8
-
The maximum size, in bytes, of a PrivateData structure.
-
-
maxConnectionCountPerEnforcer
-
-
0x14
-
The maximum number of INapEnforcementClientConnection objects associated with an enforcement entity.
-
-
maxCachedSoHCount
-
-
maxSystemHealthEntityCount * maxEnforcerCount * maxConnectionCountPerEnforcer
-
The maximum number of cached SoH connections for all system health and enforcement entities.
-
-
freshSoHRequest
-
-
0x1
-
Specifies that an SoHResponseis due to a new request, not a cached request. This flag is used by the NAP agent on an INapEnforcementClientConnection object.
-
-
shaFixup
-
-
0x1
-
Specifies that fix-up is required. This flag is used by a SHA.
-
-
failureCategoryCount
-
-
0x5
-
The number of failure categories contained within a FailureCategoryMapping structure.
-
-
ComponentTypeEnforcementClientSoH
-
-
0x1
-
The component is a quarantine enforcement client (QEC) that sends an SoH packet in-band during connection authentication.
Note
This value is not used by SHAs and SHVs.
-
-
ComponentTypeEnforcementClientRp
-
-
0x2
-
The component is a QEC that implements INapCertRelyingParty and must interact with the Health Certificate Server (HCS) in order to obtain a health certificate.
Note
This value is not used by SHAs and SHVs.
-
The following NAP constants are defined in NapEnforcementClient.h.
-
defaultProtocolMaxSize
-
-
0x0FA0
-
The default maximum size, in bytes, of an SoH packet.
-
-
maxProtocolMaxSize
-
-
0xFFFF
-
The maximum possible size, in bytes, of an SoH packet.
-
-
minProtocolMaxSize
-
-
0x012C
-
The smallest possible maximum size, in bytes, of an SoH packet. The actual size of the SoH packet may be smaller than minProtocolMaxSize.
-
-
ProtocolMaxSize
-
-
range(minProtocolMaxSize, maxProtocolMaxSize)
-
The range of possible values for the maximum size of a SoH packet.
-
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
Header |
|