Skip to content

Commit 57dc820

Browse files
committed
feat: add ProcessId property to system handle ex struct; converts from UniqueProcessId
refactor: make HandleValue display as both hexadecimal and decimal in debugger
1 parent a056ce3 commit 57dc820

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

deadlock-dotnet-sdk/Windows.Win32/SYSTEM_HANDLE_TABLE_ENTRY_INFO_EX.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ public readonly struct SYSTEM_HANDLE_TABLE_ENTRY_INFO_EX
3535
public nuint Object { get; }
3636
/// <summary>ULONG_PTR, cast to HANDLE, int, or uint</summary>
3737
public nuint UniqueProcessId { get; }
38+
public uint ProcessId => (uint)UniqueProcessId;
3839
/// <summary>ULONG_PTR, cast to HANDLE</summary>
40+
[DebuggerDisplay("0x{Value} ({Value:D})")]
3941
public HANDLE HandleValue { get; }
4042
/// <summary>Get the HandleValue as a SafeObjectHandle. Closing this SafeObjectHandle does *not* close the source handle.</summary>
4143
public SafeObjectHandle GetSafeHandle() => new(HandleValue, false);

0 commit comments

Comments
 (0)