jwahherror.pas 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. {******************************************************************************}
  2. { }
  3. { HTML Help Error API interface Unit for Object Pascal }
  4. { }
  5. { Portions created by Microsoft are Copyright (C) 1995-2001 Microsoft }
  6. { Corporation. All Rights Reserved. }
  7. { }
  8. { The original file is: hherror.h, released Dec 2002. The original Pascal }
  9. { code is: HhError.pas, released Dec 2002. The initial developer of the }
  10. { Pascal code is Marcel van Brakel (brakelm att chello dott nl). }
  11. { }
  12. { Portions created by Marcel van Brakel are Copyright (C) 1999-2001 }
  13. { Marcel van Brakel. All Rights Reserved. }
  14. { }
  15. { Contributor(s): Robert Chandler (robert att helpware dott net) }
  16. { }
  17. { Obtained through: Joint Endeavour of Delphi Innovators (Project JEDI) }
  18. { }
  19. { You may retrieve the latest version of this file at the Project JEDI }
  20. { APILIB home page, located at http://jedi-apilib.sourceforge.net }
  21. { }
  22. { The contents of this file are used with permission, subject to the Mozilla }
  23. { Public License Version 1.1 (the "License"); you may not use this file except }
  24. { in compliance with the License. You may obtain a copy of the License at }
  25. { http://www.mozilla.org/MPL/MPL-1.1.html }
  26. { }
  27. { Software distributed under the License is distributed on an "AS IS" basis, }
  28. { WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for }
  29. { the specific language governing rights and limitations under the License. }
  30. { }
  31. { Alternatively, the contents of this file may be used under the terms of the }
  32. { GNU Lesser General Public License (the "LGPL License"), in which case the }
  33. { provisions of the LGPL License are applicable instead of those above. }
  34. { If you wish to allow use of your version of this file only under the terms }
  35. { of the LGPL License and not to allow others to use your version of this file }
  36. { under the MPL, indicate your decision by deleting the provisions above and }
  37. { replace them with the notice and other provisions required by the LGPL }
  38. { License. If you do not delete the provisions above, a recipient may use }
  39. { your version of this file under either the MPL or the LGPL License. }
  40. { }
  41. { For more information about the LGPL: http://www.gnu.org/copyleft/lesser.html }
  42. { }
  43. {******************************************************************************}
  44. // $Id: JwaHhError.pas,v 1.8 2005/09/03 16:10:30 marquardt Exp $
  45. unit JwaHhError;
  46. interface
  47. {$WEAKPACKAGEUNIT}
  48. {$I jediapilib.inc}
  49. uses
  50. JwaWindows;
  51. // Published: http://support.microsoft.com/default.aspx?scid=kb;en-us;297768
  52. type
  53. // HH_LAST_ERROR Command Related structures and constants
  54. // Used by command HH_GET_LAST_ERROR
  55. // You must call SysFreeString(xx.description) to free BSTR
  56. tagHH_LAST_ERROR = packed record
  57. cbStruct: Integer; // sizeof this structure
  58. hr: HRESULT; // Specifies the last error code.
  59. description: PWideChar; // (BSTR) Specifies a Unicode string containing a description of the error.
  60. end;
  61. HH_LAST_ERROR = tagHH_LAST_ERROR;
  62. THHLastError = tagHH_LAST_ERROR;
  63. // Error codes
  64. const
  65. HH_E_FILENOTFOUND = HRESULT((ERROR_SEVERITY_ERROR shl 31) or (FACILITY_ITF shl 16) or $0201); // %1 could not be found.
  66. HH_E_TOPICDOESNOTEXIST = HRESULT((ERROR_SEVERITY_ERROR shl 31) or (FACILITY_ITF shl 16) or $0202); // The requested topic does not exist.
  67. HH_E_INVALIDHELPFILE = HRESULT((ERROR_SEVERITY_ERROR shl 31) or (FACILITY_ITF shl 16) or $0203); // %1 is not a valid help file.
  68. HH_E_NOCONTEXTIDS = HRESULT((ERROR_SEVERITY_ERROR shl 31) or (FACILITY_ITF shl 16) or $020A); // Help file does not contain context ids.
  69. HH_E_CONTEXTIDDOESNTEXIT = HRESULT((ERROR_SEVERITY_ERROR shl 31) or (FACILITY_ITF shl 16) or $020B); // The context id does not exist.
  70. // 0x0300 - 0x03FF reserved for keywords
  71. HH_E_KEYWORD_NOT_FOUND = HRESULT((ERROR_SEVERITY_ERROR shl 31) or (FACILITY_ITF shl 16) or $0300); // no hits found.
  72. HH_E_KEYWORD_IS_PLACEHOLDER = HRESULT((ERROR_SEVERITY_ERROR shl 31) or (FACILITY_ITF shl 16) or $0301); // keyword is a placeholder or a "runaway" see also.
  73. HH_E_KEYWORD_NOT_IN_SUBSET = HRESULT((ERROR_SEVERITY_ERROR shl 31) or (FACILITY_ITF shl 16) or $0302); // no hits found because of subset exclusion.
  74. HH_E_KEYWORD_NOT_IN_INFOTYPE = HRESULT((ERROR_SEVERITY_ERROR shl 31) or (FACILITY_ITF shl 16) or $0303); // no hits found because of infotype exclusion.
  75. HH_E_KEYWORD_EXCLUDED = HRESULT((ERROR_SEVERITY_ERROR shl 31) or (FACILITY_ITF shl 16) or $0304); // no hits found because of infotype and subset exclusion.
  76. HH_E_KEYWORD_NOT_SUPPORTED = HRESULT((ERROR_SEVERITY_ERROR shl 31) or (FACILITY_ITF shl 16) or $0305); // no hits found because of keywords not being supported in this mode.
  77. implementation
  78. end.