#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdio.h>
int __cdecl main(void)
{
char szBuf[260];
DWORD rc = GetPrivateProfileString("Dialog Box #3", "Dialog Menu ID", "0", szBuf, sizeof(szBuf), "./GetPrivate.ini");
DWORD ec = GetLastError();
printf("%d, %d, '%s'\n", ec, rc, szBuf);
rc = GetPrivateProfileString("Dialog Box #3", "Dialog Menu IDs", NULL, szBuf, sizeof(szBuf), "./GetPrivate.ini");
ec = GetLastError();
printf("%d, %d, '%s'\n", ec, rc, szBuf);
return 0;
}
[Dialog Box #3]
Dialog Menu ID=
0, 0, ''
2, 0, ''