PrfOpenProfile - Example Code

This example uses PrfOpenProfile to open and make available a profile for the file "PROFILE.INI".

#define INCL_WINSHELLDATA       /* Window Shell functions       */
#include <os2.h>

HINI  hini;             /* Initialization-file handle           */
HAB   hab;              /* Anchor-block handle                  */
char  pszFileName[13];  /* User-profile file name               */

strcpy(pszFileName,"PROFILE.INI");

hab  = WinInitialize( 0 );
hini = PrfOpenProfile( hab,             /* Anchor block handle */
                       pszFileName);    /* Profile name        */


[Back: PrfOpenProfile - Related Functions]
[Next: PrfOpenProfile - Topics]