22 lines
653 B
C#
22 lines
653 B
C#
|
using System;
|
|||
|
using System.Runtime.InteropServices;
|
|||
|
|
|||
|
namespace CC_Functions.W32.Native
|
|||
|
{
|
|||
|
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
|
|||
|
);
|
|||
|
}
|
|||
|
}
|