mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.3 KiB
37 lines
1.3 KiB
// --------------------------------------------------------------------------
|
|
// Module Name: StatusCode.h
|
|
//
|
|
// Copyright (c) 1999-2000, Microsoft Corporation
|
|
//
|
|
// Class that implements translation of Win32 error code to NTSTATUS and
|
|
// the reverse.
|
|
//
|
|
// History: 1999-08-18 vtan created
|
|
// 1999-11-16 vtan separate file
|
|
// 2000-02-01 vtan moved from Neptune to Whistler
|
|
// --------------------------------------------------------------------------
|
|
|
|
#ifndef _StatusCode_
|
|
#define _StatusCode_
|
|
|
|
// --------------------------------------------------------------------------
|
|
// CStatusCode
|
|
//
|
|
// Purpose: This class manages a conversion from standard Win32 error
|
|
// codes to NTSTATUS codes. NTSTATUS codes are widely used by
|
|
// Windows NT in the core NT functions.
|
|
//
|
|
// History: 1999-08-18 vtan created
|
|
// 1999-11-24 vtan added ErrorCodeOfStatusCode
|
|
// --------------------------------------------------------------------------
|
|
|
|
class CStatusCode
|
|
{
|
|
public:
|
|
static LONG ErrorCodeOfStatusCode (NTSTATUS statusCode);
|
|
static NTSTATUS StatusCodeOfErrorCode (LONG errorCode);
|
|
static NTSTATUS StatusCodeOfLastError (void);
|
|
};
|
|
|
|
#endif /* _StatusCode_ */
|
|
|