/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
return AfxDllGetClassObject(rclsid, riid, ppv);
-}
+}
STDAPI DllCanUnloadNow(void)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
#ifdef COMMENT
- // This test is correct and we really do want to allow the extension to be loaded and
+ // This test is correct and we really do want to allow the extension to be loaded and
// unloaded as needed. Unfortunately, the extension is being unloaded and never loaded
- // again which is disconcerting for many folks. For now we will prevent the unloading
- // until someone has time to figure out how to debug this.
+ // again which is disconcerting for many folks. For now we will prevent the unloading
+ // until someone has time to figure out how to debug this.
// Jeffrey Altman - 2 Oct 2005
if (!nCMRefCount && !nSERefCount && !nICRefCount && !nTPRefCount && !nXPRefCount)
if(NOERROR == lResult)
{
lResult = RegSetValueEx(thKey, szValue, 0, REG_SZ,
- (LPBYTE)szData, (lstrlen(szData) + 1)
+ (LPBYTE)szData, (lstrlen(szData) + 1)
* sizeof(TCHAR));
RegCloseKey(thKey);
}
} else {
return E_FAIL;
}
-
+
/*
[HKEY_CLASSES_ROOT\CLSID\{$CLSID}\InprocServer32]
@="Y:\\DEST\\root.client\\usr\\vice\\etc\\afs_shl_ext.dll"
wsprintf(szSubKey, TEXT("%s\\%s"), STR_REG_PATH, STR_EXT_TITLE);
if ((lResult=DoRegCLSID(HKEY_LOCAL_MACHINE,szSubKey,szCLSID))!=NOERROR)
return lResult;
-
+
//If running on NT, register the extension as approved.
/*
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved]
if ((lResult=DoRegCLSID(HKEY_CLASSES_ROOT,szSubKey,szCLSID))!=NOERROR)
return lResult;
-
+
/* Below needs to be merged with above */
wsprintf(szSubKey, TEXT("%s\\%s"), STR_REG_PATH, STR_EXT_TITLE);
lResult = RegCreateKeyEx( HKEY_LOCAL_MACHINE,
DoValueDelete(HKEY_LOCAL_MACHINE,szSubKey,szCLSID);
return S_OK;
-}
+}