OK. Here's an example of how you could do it programatically:
// The following code snippet sets the file program
// that is associated with the cnf extension to WORDPAD
char szProductType[80];
DWORD dwBufLen;
HKEY hTestKey = NULL;
LONG lResult = ::RegOpenKeyEx(HKEY_CURRENT_USER,
"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FileExts\\.cnf\\OpenWithList", 0,
KEY_ALL_ACCESS, &hTestKey);
if ((ERROR_SUCCESS == lResult) && (hTestKey != NULL))
{
strcpy(szProductType,"WORDPAD.exe"

;
lResult = RegSetValueEx(hTestKey, "a", NULL, REG_SZ, (LPBYTE) szProductType, dwBufLen);
RegCloseKey(hTestKey);
}
Hows this?
Steve