This function defines which files are to be used as the user and system profiles.
#define INCL_WINSHELLDATA #include <OS2.H> HAB hab; char userpro[] = "profile.ini"; PRFPROFILE profile; PrfQueryProfile(hab, &profile); /* get the system profile name */ profile.pszUserName = userpro; profile.cchUserName = sizeof(userpro); PrfReset (hab, &profile);