Leaked source code of windows server 2003
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

  1. // --------------------------------------------------------------------------
  2. // Module Name: StatusCode.h
  3. //
  4. // Copyright (c) 1999-2000, Microsoft Corporation
  5. //
  6. // Class that implements translation of Win32 error code to NTSTATUS and
  7. // the reverse.
  8. //
  9. // History: 1999-08-18 vtan created
  10. // 1999-11-16 vtan separate file
  11. // 2000-02-01 vtan moved from Neptune to Whistler
  12. // --------------------------------------------------------------------------
  13. #ifndef _StatusCode_
  14. #define _StatusCode_
  15. // --------------------------------------------------------------------------
  16. // CStatusCode
  17. //
  18. // Purpose: This class manages a conversion from standard Win32 error
  19. // codes to NTSTATUS codes. NTSTATUS codes are widely used by
  20. // Windows NT in the core NT functions.
  21. //
  22. // History: 1999-08-18 vtan created
  23. // 1999-11-24 vtan added ErrorCodeOfStatusCode
  24. // --------------------------------------------------------------------------
  25. class CStatusCode
  26. {
  27. public:
  28. static LONG ErrorCodeOfStatusCode (NTSTATUS statusCode);
  29. static NTSTATUS StatusCodeOfErrorCode (LONG errorCode);
  30. static NTSTATUS StatusCodeOfLastError (void);
  31. };
  32. #endif /* _StatusCode_ */