rc = WinQueryDlgItemText(hDlgBox, /* Parent dialog box */ EF_PRODNAME, /* Control identifier */ sizeof(szBuffer), /* Size of buffer */ szBuffer); /* Pointer to buffer */