Class: RubySMB::Field::NtStatus

Inherits:
BinData::Uint32le
  • Object
show all
Defined in:
lib/ruby_smb/field/nt_status.rb

Overview

Represents an NTStatus code as defined in 2.3.1 NTSTATUS values

Instance Method Summary collapse

Instance Method Details

#to_nt_statusWindowsError::ErrorCode

Returns a meaningful error code parsed from the numeric value

Returns:

  • (WindowsError::ErrorCode)

    the ErrorCode object for this code



11
12
13
# File 'lib/ruby_smb/field/nt_status.rb', line 11

def to_nt_status
  WindowsError::NTStatus.find_by_retval(value).first
end