Kernel32AppPolicyGetProcessTerminationMethod Method
Retrieves the method used to end a process.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
No code example is currently available or this language may not be supported.
- processToken IntPtr
-
A handle that identifies the access token for a process.
- refPolicy AppPolicyProcessTerminationMethod
-
When the function returns successfully, refPolicy contains a value
indicating the method used to end the process.
Win32ErrorCode
If the function succeeds, the function returns
ERROR_SUCCESS.
If no known create file access policy was found for the process token,
the function raises a STATUS_ASSERTION_FAILURE exception and returns
ERROR_NOT_FOUND.
If either
processToken or
refPolicy are null,
the function returns
ERROR_INVALID_PARAMETER.