Click to return to the HTML Help home page    
HH_UNINITIALIZE     HH_AKLINK     HTML Help API Reference    
Web Workshop  |  DHTML, HTML & CSS  |  HTML Help

About Structures


Microsoft Corporation

Updated June 10, 1999

The HTML Help API provides several objects that you work with using data structures.

When working with a structure, it is recommended that you use a Win32 function such as ZeroMemory, memcpy, or memset to clear out the address space of a structure that has been declared. This ensures that you start with a known quantity before making any modifications. For example, the following code fragment uses memset to make a copy of an HH_WINTYPE structure:

HH_WINTYPE hhWinType;                   //Create new wintype.
           HH_WINTYPE *phhWinType;      //Create a pointer to this wintype.
           memset(phhWinType,           //Requires "memory.h" header be included in the calling application.
                  0,
                  sizeof(HH_WINTYPE)); 
           HtmlHelp(hwnd,
                    "c:\\help\\MyHelpFile.chm>main",
                    HH_GET_WIN_TYPE,
                    (DWORD)&phhWinType);
           hhWinType = *phhWinType;    //Create a copy so we don't write directly.

Note

Structures quick reference

Category Structure

Window types

ALink name/KLink keyword lookups

Notification messages

Full-text search

Error tracking


link to overview topic About the HTML Help API
 


Back to topBack to top

Did you find this material useful? Gripes? Compliments? Suggestions for other articles? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.