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.

60 lines
3.3 KiB

  1. /****************************************************************************
  2. * *
  3. * HHERROR.H --- HTML Help API errors *
  4. * *
  5. * Copyright (c) 1996-1997, Microsoft Corp. All rights reserved. *
  6. * *
  7. ****************************************************************************/
  8. #if _MSC_VER > 1000
  9. #pragma once
  10. #endif
  11. #ifndef __HHERROR_H__
  12. #define __HHERROR_H__
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif // __cplusplus
  16. // HH_LAST_ERROR Command Related structures and constants
  17. typedef struct tagHH_LAST_ERROR
  18. {
  19. int cbStruct ;
  20. HRESULT hr ; // The last error code.
  21. BSTR description ; // Unicode description string.
  22. } HH_LAST_ERROR ;
  23. // Error codes
  24. //#define HH_E_COULDNOTSTART MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x0200L ) // Could not start help system.
  25. #define HH_E_FILENOTFOUND MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x0201L ) // %1 could not be found.
  26. #define HH_E_TOPICDOESNOTEXIST MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x0202L ) // The requested topic doesn't exist.
  27. #define HH_E_INVALIDHELPFILE MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x0203L ) // %1 is not a valid help file.
  28. //#define HH_E_INVALIDFUNCTION MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x0204L ) // Unable to perform requested operation.
  29. //#define HH_E_INVALIDPOINTER MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x0205L ) // Invalid pointer error.
  30. //#define HH_E_INVALIDPARAMETER MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x0206L ) // Invalid parameter error.
  31. //#define HH_E_INVALIDHWND MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x0207L ) // Invalid window handle.
  32. //#define HH_E_INVALIDEXTENSION MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x0208L ) // Bad extension for file
  33. //#define HH_E_ACCESSDENIED MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x0209L ) // Access Denied.
  34. #define HH_E_NOCONTEXTIDS MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x020AL ) // Help file does not contain context ids.
  35. #define HH_E_CONTEXTIDDOESNTEXIT MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x020BL ) // The context id doesn't exists.
  36. // 0x0300 - 0x03FF reserved for keywords
  37. #define HH_E_KEYWORD_NOT_FOUND MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x0300L ) // no hits found.
  38. #define HH_E_KEYWORD_IS_PLACEHOLDER MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x0301L ) // keyword is a placeholder or a "runaway" see also.
  39. #define HH_E_KEYWORD_NOT_IN_SUBSET MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x0302L ) // no hits found due to subset exclusion.
  40. #define HH_E_KEYWORD_NOT_IN_INFOTYPE MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x0303L ) // no hits found due to infotype exclusion.
  41. #define HH_E_KEYWORD_EXCLUDED MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x0304L ) // no hits found due to infotype and subset exclusion.
  42. #define HH_E_KEYWORD_NOT_SUPPORTED MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x0305L ) // no hits found due to keywords not being supported in this mode.
  43. #ifdef __cplusplus
  44. }
  45. #endif // __cplusplus
  46. #endif