mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-17 05:17:42 +01:00
WIP ex
This commit is contained in:
parent
350d2961c1
commit
a01bc259a8
7 changed files with 55 additions and 17 deletions
|
|
@ -29,6 +29,9 @@ namespace Dalamud.Bootstrap.Windows
|
|||
|
||||
[DllImport("shell32", CallingConvention = CallingConvention.Winapi, SetLastError = true)]
|
||||
public static extern char** CommandLineToArgvW(void* lpCmdLine, int* pNumArgs);
|
||||
|
||||
[DllImport("kernel32", CallingConvention = CallingConvention.Winapi)]
|
||||
public static extern uint GetProcessId(SafeProcessHandle hProcess);
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
|
|
@ -63,6 +66,8 @@ namespace Dalamud.Bootstrap.Windows
|
|||
/// Equivalent to NT_ERROR
|
||||
/// </summary>
|
||||
public bool Error => 0xC0000000 <= Value;
|
||||
|
||||
public override string ToString() => $"0x{Value:X8}";
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue