AppPolicyGetShowDeveloperDiagnostic function (appmodel.h)
Retrieves the method used for a process to surface developer information, such as asserts, to the user.
LONG AppPolicyGetShowDeveloperDiagnostic( [in] HANDLE processToken, [out] AppPolicyShowDeveloperDiagnostic *policy );
A handle that identifies the access token for a process.
A pointer to a variable of the AppPolicyShowDeveloperDiagnostic enumerated type. When the function returns successfully, the variable contains a value indicating the method used for the process to surface developer information, such as asserts, to the user.
If the function succeeds, the function returns ERROR_SUCCESS.
If no known developer information 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.