// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
#include <iostream>

using namespace std;

#include <windows.h>

int main()
{
    cout << GetPrivateProfileInt("Demo", "NUM_ROWS", 1, "C:\\demo.ini") << endl;
    cout << GetPrivateProfileInt("Demo", "NUM_HUL", 1, "C:\\demo.ini") << endl;
    char buf[100];
    GetPrivateProfileString("Demo", "SK5", "*", buf, sizeof(buf), "C:\\demo.ini");
    cout << buf << endl;
    GetPrivateProfileString("Demo", "SK6", "*", buf, sizeof(buf), "C:\\demo.ini");
    cout << buf << endl;
    return 0;
}
