ExchLogInfo ("DllUnregisterServer: access denied.\r\n");
ExchLogInfo ("DllUnregisterServer: access denied.\n");
DllUnregisterServer (void){    HKEY hKey;    CHAR szKeyBuf[1024];    lstrcpy(szKeyBuf, "Software\\Microsoft\\Exchange\\Client\\Extensions");    /* create and open key and subkey */    long lResult = RegCreateKeyEx(HKEY_LOCAL_MACHINE, szKeyBuf, 0, NULL, 				    REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, 				    NULL, &hKey, NULL);    if (lResult != ERROR_SUCCESS) {	ExchLogInfo ("DllUnregisterServer: access denied.\r\n");	return E_ACCESSDENIED;    }    RegDeleteValue (hKey, "GPG Exchange");    /* set outlook update flag */    CHAR szEntry[512];    strcpy (szEntry, "4.0;Outxxx.dll;7;000000000000000;0000000000;OutXXX");    DWORD dwTemp = lstrlen (szEntry) + 1;    RegSetValueEx (hKey, "Outlook Setup Extension", 0, REG_SZ, (BYTE*) szEntry, dwTemp);    RegCloseKey (hKey);    return S_OK;}