wsprintf(szMozillaDesktopKey, "%s\\%s", szMozillaKey, "Desktop"); RestoreDesktopIntegrationAssociations(HKEY_LOCAL_MACHINE, szMozillaDesktopKey); RestoreDesktopIntegrationProtocols(HKEY_LOCAL_MACHINE, szMozillaDesktopKey);
GetPrivateProfileString(szRDISection, "Enabled", "", szBuf, sizeof(szBuf), szFileIniUninstall); if(lstrcmpi(szBuf, "TRUE") == 0) { wsprintf(szMozillaDesktopKey, "%s\\%s", szMozillaKey, "Desktop"); RestoreDesktopIntegration();
BOOL UndoDesktopIntegration(void){  char szMozillaDesktopKey[MAX_BUF];  char szMozillaKey[] = "Software\\Mozilla";  wsprintf(szMozillaDesktopKey, "%s\\%s", szMozillaKey, "Desktop");  RestoreDesktopIntegrationAssociations(HKEY_LOCAL_MACHINE, szMozillaDesktopKey);  RestoreDesktopIntegrationProtocols(HKEY_LOCAL_MACHINE, szMozillaDesktopKey);  DeleteWinRegKey(HKEY_LOCAL_MACHINE, szMozillaDesktopKey, TRUE);  DeleteWinRegKey(HKEY_LOCAL_MACHINE, szMozillaKey, FALSE);  return(0);}