libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
introvirt::windows::nt::NTSTATUS Class Referencefinal

Status codes returned by Windows NT system calls. More...

#include <NTSTATUS.hh>

Public Member Functions

bool NT_SUCCESS () const
 
bool NT_INFORMATION () const
 
bool NT_WARNING () const
 
bool NT_ERROR () const
 
bool initialized () const
 
uint32_t value () const
 
 operator uint32_t () const
 
Json::Value json () const
 
 operator Json::Value () const
 
 operator bool () const
 
NTSTATUS_CODE code () const
 
 operator NTSTATUS_CODE () const
 
 NTSTATUS ()
 
 NTSTATUS (uint32_t value)
 
 NTSTATUS (NTSTATUS_CODE code)
 
 NTSTATUS (const NTSTATUS &other)
 
NTSTATUSoperator= (const NTSTATUS &other)
 
 NTSTATUS (NTSTATUS &&other)
 
NTSTATUSoperator= (NTSTATUS &&other)
 
 ~NTSTATUS ()
 

Static Public Member Functions

static bool NT_SUCCESS (NTSTATUS_CODE code)
 
static bool NT_INFORMATION (NTSTATUS_CODE code)
 
static bool NT_WARNING (NTSTATUS_CODE code)
 
static bool NT_ERROR (NTSTATUS_CODE code)
 

Detailed Description

Status codes returned by Windows NT system calls.

Examples
ivreadfile.cc, and ivwritefile.cc.

Constructor & Destructor Documentation

◆ NTSTATUS() [1/5]

introvirt::windows::nt::NTSTATUS::NTSTATUS ( )

Create an uninitialized NTSTATUS

◆ NTSTATUS() [2/5]

introvirt::windows::nt::NTSTATUS::NTSTATUS ( uint32_t  value)

Create an NTSTATUS from a raw value

◆ NTSTATUS() [3/5]

introvirt::windows::nt::NTSTATUS::NTSTATUS ( NTSTATUS_CODE  code)

Create an NTSTATUS with the given value

Parameters
codeThe NTSTATUS code to use

◆ NTSTATUS() [4/5]

introvirt::windows::nt::NTSTATUS::NTSTATUS ( const NTSTATUS other)

Copy constructor. Create an NTSTATUS from the given value.

Parameters
otherThe NTSTATUS code to use

◆ NTSTATUS() [5/5]

introvirt::windows::nt::NTSTATUS::NTSTATUS ( NTSTATUS &&  other)

Move constructor

Parameters
otherThe temporary to move from

◆ ~NTSTATUS()

introvirt::windows::nt::NTSTATUS::~NTSTATUS ( )

Member Function Documentation

◆ code()

NTSTATUS_CODE introvirt::windows::nt::NTSTATUS::code ( ) const
Returns
The NTSTATUS_CODE value of this code

◆ initialized()

bool introvirt::windows::nt::NTSTATUS::initialized ( ) const
Returns
True if this status has been set to a value other than STATUS_WINTROVIRT_UNINITIALIZED

◆ json()

Json::Value introvirt::windows::nt::NTSTATUS::json ( ) const

◆ NT_ERROR() [1/2]

bool introvirt::windows::nt::NTSTATUS::NT_ERROR ( ) const
Returns
True if this status is considered a error

◆ NT_ERROR() [2/2]

static bool introvirt::windows::nt::NTSTATUS::NT_ERROR ( NTSTATUS_CODE  code)
static
Returns
True if the given status code is an error

◆ NT_INFORMATION() [1/2]

bool introvirt::windows::nt::NTSTATUS::NT_INFORMATION ( ) const

NT_INFORMATION also implies NT_SUCCESS

Returns
True if this status is informational

◆ NT_INFORMATION() [2/2]

static bool introvirt::windows::nt::NTSTATUS::NT_INFORMATION ( NTSTATUS_CODE  code)
static

Information is a special type of NT_SUCCESS. A result can be both.

Returns
True if the given status code is considered informational.

◆ NT_SUCCESS() [1/2]

bool introvirt::windows::nt::NTSTATUS::NT_SUCCESS ( ) const
Returns
True if this status is a success

◆ NT_SUCCESS() [2/2]

static bool introvirt::windows::nt::NTSTATUS::NT_SUCCESS ( NTSTATUS_CODE  code)
static
Returns
True if the given status code is considered a success

◆ NT_WARNING() [1/2]

bool introvirt::windows::nt::NTSTATUS::NT_WARNING ( ) const
Returns
True if this status is considered a warning

◆ NT_WARNING() [2/2]

static bool introvirt::windows::nt::NTSTATUS::NT_WARNING ( NTSTATUS_CODE  code)
static
Returns
True if the given status code is a warning

◆ operator bool()

introvirt::windows::nt::NTSTATUS::operator bool ( ) const
explicit

◆ operator Json::Value()

introvirt::windows::nt::NTSTATUS::operator Json::Value ( ) const

◆ operator NTSTATUS_CODE()

introvirt::windows::nt::NTSTATUS::operator NTSTATUS_CODE ( ) const

◆ operator uint32_t()

introvirt::windows::nt::NTSTATUS::operator uint32_t ( ) const
explicit

◆ operator=() [1/2]

NTSTATUS & introvirt::windows::nt::NTSTATUS::operator= ( const NTSTATUS other)

Assignment operator

Parameters
otherThe other NTSTATUS to copy
Returns
The copy result

◆ operator=() [2/2]

NTSTATUS & introvirt::windows::nt::NTSTATUS::operator= ( NTSTATUS &&  other)

Move assignment operator

Parameters
otherThe other NTSTATUS to move from
Returns
The move result

◆ value()

uint32_t introvirt::windows::nt::NTSTATUS::value ( ) const
Returns
The integer value of the status
Examples
ivexec.cc.

The documentation for this class was generated from the following file: