This repository has been archived on 2022-08-05. You can view files and clone it, but cannot push or open issues or pull requests.
2020-05-25 19:32:53 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
|
|
namespace CC_Functions.W32.Native
|
2020-01-15 17:59:29 +01:00
|
|
|
|
{
|
|
|
|
|
internal static class ntdll
|
|
|
|
|
{
|
|
|
|
|
[DllImport("ntdll.dll", SetLastError = true)]
|
|
|
|
|
public static extern IntPtr RtlAdjustPrivilege(int Privilege, bool bEnablePrivilege, bool IsThreadPrivilege,
|
|
|
|
|
out bool PreviousValue);
|
|
|
|
|
|
|
|
|
|
[DllImport("ntdll.dll")]
|
|
|
|
|
public static extern uint NtRaiseHardError(
|
|
|
|
|
uint ErrorStatus,
|
|
|
|
|
uint NumberOfParameters,
|
|
|
|
|
uint UnicodeStringParameterMask,
|
|
|
|
|
IntPtr Parameters,
|
|
|
|
|
uint ValidResponseOption,
|
|
|
|
|
out uint Response
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|