Skip to content
This repository was archived by the owner on Jul 26, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/Windows.Core/NTStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ public partial struct NTSTATUS : IComparable, IComparable<NTSTATUS>, IEquatable<
/// </summary>
private const int FacilityStatusShift = 0;

/// <summary>
/// The full NT_STATUS value, as a <see cref="Code"/> enum.
/// </summary>
private readonly Code value;

/// <summary>
/// Initializes a new instance of the <see cref="NTSTATUS"/> struct.
/// </summary>
Expand All @@ -104,13 +109,13 @@ public NTSTATUS(int status)
/// <param name="status">The value of the NTStatus.</param>
public NTSTATUS(Code status)
{
this.Value = status;
this.value = status;
}

/// <summary>
/// Gets the full NT_STATUS value, as a <see cref="Code"/> enum.
/// </summary>
public Code Value { get; }
public Code Value => this.value;

/// <summary>
/// Gets the NT_STATUS as a 32-bit signed integer.
Expand Down