SeTokenSetNoChildProcessRestricted - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntifs.h

VOID SeTokenSetNoChildProcessRestricted(
  [in] PACCESS_TOKEN Token,
  [in] BOOLEAN       UnlessSecure,
  [in] BOOLEAN       AuditOnly
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ntifs-setokensetnochildprocessrestricted)

SeTokenSetNoChildProcessRestricted function

Description

The SeTokenSetNoChildProcessRestricted routine sets the TOKEN_NO_CHILD_PROCESS_UNLESS_SECURE or TOKEN_AUDIT_NO_CHILD_PROCESS flags in the token.

Parameters

Token [in]

Specifies a pointer to the access token.

UnlessSecure [in]

A pointer to a boolean that indicates that secure process creation should always be enabled.

AuditOnly [in]

A pointer to a boolean that indicates if the mitigation should be enabled in audit-only mode.

Remarks

Note that both flags cannot be set at the same time and it is possible to upgrade from audit-only mode to enforcement mode but not vice-versa.

See also

SeTokenGetNoChildProcessRestricted