THHLastError

Contains information about the last error that occured in the HTML Help Active X control.

Used by:
HH_GET_LAST_ERROR

Declaration:

PHHLastError = ^THHLastError;
tagHH_LAST_ERROR = packed record
  cbStruct: Integer;
  hr: HRESULT;
  description: PWideChar;
end;
THHLastError = tagHH_LAST_ERROR;

Description:
The THHLastError record is used by the HH_GET_LAST_ERROR command to retrieve information about the last error that occured in the HTML Help Active X control. It returns both the error code and a description of the error. Note that not all errors return usefull information, if any, nevertheless are still errors.

Member Description
cbStruct Specifies the size of this record in bytes. Use the SizeOf operator before passing this record to the HtmlHelp function
hr Specifies the last error code
description A BSTR containing a description of the last error. If this member is non nil then you must free it using SysFreeString (declared in ActiveX.pas)

Notes:
The tagHH_LAST_ERROR record is not declared in htmlhelp.h but it is documented in the HTML Help API reference. Therefore the record declaration has been included in HtmlHlp.pas and is HPP-emitted.