AppPolicyGetThreadInitializationType function (appmodel.h)
Retrieves the kind of initialization that should be automatically performed for a process when beginthread[ex] creates a thread.
Syntax
LONG AppPolicyGetThreadInitializationType(
[in] HANDLE processToken,
[out] AppPolicyThreadInitializationType *policy
);
Parameters
[in] processToken
A handle that identifies the access token for a process.
[out] policy
A pointer to a variable of the AppPolicyThreadInitializationType enumerated type. When the function returns successfully, the variable contains a value indicating the kind of initialization that should be automatically performed for the process when beginthread[ex] creates a thread.
Return value
If the function succeeds, the function returns ERROR_SUCCESS.
If no known thread initialization policy was found for the process token, the function raises a STATUS_ASSERTION_FAILURE exception and returns ERROR_NOT_FOUND.
If either processToken or policy are null, the function returns ERROR_INVALID_PARAMETER.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | appmodel.h |
Library | OneCoreUap.lib |
DLL | Api-ms-win-appmodel-runtime-l1-1-2.dll |