WinCreateHelpInstance() Function

PHELPINIT HelpInit;
HWND      hHelp;

HelpInit=DosAllocMem(HelpInit,                /* Allocate memory object  */
                     sizeof(HELPINIT),        /* Size of HELPINIT struct */
                     PAG_READ   |             /* Allow read access       */
                     PAG_WRITE  |             /* Allow write access      */
                     PAG_COMMIT;              /* Commit storage now      */

HelpInit->cb=sizeof(HELPINIT);                /* Specify size of struct  */
HelpInit->pszTutorialName=NULL;               /* No tutorial             */
HelpInit->phtHelpTable=MAINHELP;              /* Help table identifier   */
HelpInit->phtHelpTableModule=NULL;            /* Help table in EXE file  */
HelpInit->hmodAccelActionBarModule=NULL;      /* Resource in EXE file    */
HelpInit->idAccelTable=0;                     /* Resource in EXE file    */
HelpInit->idActionBar=0;                      /* Default used            */
HelpInit->pszHelpWindowTitle="Help";          /* Help window title       */
HelpInit->usShowPanelID=CMIC_HIDE_PANEL_ID;   /* Do not show panel ids   */
HelpInit->pszHelpLibraryName="APPLHELP";      /* Name of help library    */

hHelp = WinCreateHelpInstance(hAB,            /* Create help instance    */
                              HelpInit);      /* HELPINIT structure      */


[Back: Help Table Resource Definition]
[Next: WinAssociateHelpInstance() Function]