コード例 #1
0
        internal static void ThrowWin32Exception(string message, Enumerations.NtStatus ntStatus)
        {
            // Convert the nt status into a DOS error code

            var errorCode = PInvoke.RtlNtStatusToDosError(ntStatus);

            throw new Win32Exception($"{message} with error code {errorCode}");
        }
コード例 #2
0
ファイル: Win32API.cs プロジェクト: simonxiao86/WeChatExt-1
 internal static extern ulong RtlNtStatusToDosError(Enumerations.NtStatus ntStatus);