Process Hacker
error.c File Reference
#include <phbase.h>

Go to the source code of this file.

Functions

ULONG PhNtStatusToDosError (_In_ NTSTATUS Status)
 Converts a NTSTATUS value to a Win32 error code.
 
NTSTATUS PhDosErrorToNtStatus (_In_ ULONG DosError)
 Converts a Win32 error code to a NTSTATUS value.
 
BOOLEAN PhNtStatusFileNotFound (_In_ NTSTATUS Status)
 Determines whether a NTSTATUS value indicates that a file cannot be not found.
 

Function Documentation

NTSTATUS PhDosErrorToNtStatus ( _In_ ULONG  DosError)

Converts a Win32 error code to a NTSTATUS value.

Remarks
Only a small number of cases are currently supported. Other status values are wrapped using FACILITY_NTWIN32.

Definition at line 47 of file error.c.

BOOLEAN PhNtStatusFileNotFound ( _In_ NTSTATUS  Status)

Determines whether a NTSTATUS value indicates that a file cannot be not found.

Definition at line 73 of file error.c.

ULONG PhNtStatusToDosError ( _In_ NTSTATUS  Status)

Converts a NTSTATUS value to a Win32 error code.

Remarks
This function handles FACILITY_NTWIN32 status values properly, unlike RtlNtStatusToDosError.

Definition at line 31 of file error.c.