// ntifs.h
VOID SeTokenSetNoChildProcessRestricted(
[in] PACCESS_TOKEN Token,
[in] BOOLEAN UnlessSecure,
[in] BOOLEAN AuditOnly
);
View the official Windows Driver Kit DDI referenceNo description available.
The SeTokenSetNoChildProcessRestricted routine sets the TOKEN_NO_CHILD_PROCESS_UNLESS_SECURE or TOKEN_AUDIT_NO_CHILD_PROCESS flags in the token.
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.
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.
SeTokenGetNoChildProcessRestricted