Source code of Windows XP (NT5)
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.

36 lines
950 B

  1. /*++ BUILD Version: 0000 // Increment this if a change has global effects
  2. Copyright (c) 2000-2002 Microsoft Corporation
  3. Module Name:
  4. error.h
  5. Abstract:
  6. Header file for errors in this module
  7. Author:
  8. Xiaohai Zhang (xzhang) 22-March-2000
  9. Revision History:
  10. --*/
  11. #ifndef __ERROR_H__
  12. #define __ERROR_H__
  13. #include "tsecerr.h"
  14. #define FACILITY_TSEC_CODE 0x100
  15. #define HRESULT_FROM_TSEC(x) ((HRESULT)(x) <= 0 ? ((HRESULT)(x)) : ((HRESULT) (((x) & 0x0000FFFF) | (FACILITY_TSEC_CODE << 16) | 0x80000000)))
  16. #define TSECERR_SUCCESS HRESULT_FROM_TSEC(TSEC_SUCCESS)
  17. #define TSECERR_NOMEM HRESULT_FROM_TSEC(TSEC_NOMEM)
  18. #define TSECERR_BADFILENAME HRESULT_FROM_TSEC(TSEC_BADFILENAME)
  19. #define TSECERR_FILENOTEXIST HRESULT_FROM_TSEC(TSEC_FILENOTEXIST)
  20. #define TSECERR_INVALFILEFORMAT HRESULT_FROM_TSEC(TSEC_INVALFILEFORMAT)
  21. #define TSECERR_DEVLOCALONLY HRESULT_FROM_TSEC(TSEC_DEVLOCALONLY)
  22. #endif // error.h