//
// It is very important that this macro appear in each
// function, prior to any calls into MFC. This means that
-// it must appear as the first statement within the
+// it must appear as the first statement within the
// function, even before any object variable declarations
// as their constructors may generate calls into the MFC
// DLL.
}
-extern "C"
+extern "C"
__declspec(dllexport) INT GetWebPage(LPSTR lpErrMsg,LPSTR lpFile,LPSTR lpCmdLine)
{
CString emsg;
return nRetCode;
}
-extern "C"
+extern "C"
__declspec(dllexport) INT GetUserLogon(LPSTR lpUserName)
{
int nRetCode = 1;
return nRetCode;
}
-extern "C"
+extern "C"
__declspec(dllexport) INT BrowseFile(HWND hwndOwner,LPSTR lpstrTitle,LPSTR lpFileName,INT size)
{
char *xptr;
,NULL //lpTemplateName
};
return GetOpenFileName(&data);
-}
\ No newline at end of file
+}
//
// Next default values for new objects
-//
+//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
!IF "$(OS)" == "Windows_NT"
NULL=
-!ELSE
+!ELSE
NULL=nul
-!ENDIF
+!ENDIF
OUTDIR=$(OUT)
INTDIR=$(OUT)
.c{$(INTDIR)}.obj::
$(CPP) @<<
- $(CPP_PROJ) $<
+ $(CPP_PROJ) $<
<<
.cpp{$(INTDIR)}.obj::
$(CPP) @<<
- $(CPP_PROJ) $<
+ $(CPP_PROJ) $<
<<
.cxx{$(INTDIR)}.obj::
$(CPP) @<<
- $(CPP_PROJ) $<
+ $(CPP_PROJ) $<
<<
.c{$(INTDIR)}.sbr::
$(CPP) @<<
- $(CPP_PROJ) $<
+ $(CPP_PROJ) $<
<<
.cpp{$(INTDIR)}.sbr::
$(CPP) @<<
- $(CPP_PROJ) $<
+ $(CPP_PROJ) $<
<<
.cxx{$(INTDIR)}.sbr::
$(CPP) @<<
- $(CPP_PROJ) $<
+ $(CPP_PROJ) $<
<<
MTL=midl.exe
-MTL_PROJ=/nologo /D "NDEBUG" /mktyplib203 /win32
+MTL_PROJ=/nologo /D "NDEBUG" /mktyplib203 /win32
RSC=rc.exe
-RSC_PROJ=/l 0x409 /fo"$(INTDIR)\GetWebDll.res" /d "NDEBUG"
+RSC_PROJ=/l 0x409 /fo"$(INTDIR)\GetWebDll.res" /d "NDEBUG"
BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\GetWebDll.bsc"
+BSC32_FLAGS=/nologo /o"$(OUTDIR)\GetWebDll.bsc"
BSC32_SBRS= \
LINK32=link.exe
-LINK32_FLAGS=/nologo /subsystem:windows /dll /incremental:no /pdb:"$(OUTDIR)\GetWebDll.pdb" /machine:I386 /def:".\GetWebDll.def" /out:"$(DESTDIR)\WinInstall\Config\GetWebDll.dll" /implib:"$(DESTDIR)\WinInstall\Config\GetWebDll.lib"
+LINK32_FLAGS=/nologo /subsystem:windows /dll /incremental:no /pdb:"$(OUTDIR)\GetWebDll.pdb" /machine:I386 /def:".\GetWebDll.def" /out:"$(DESTDIR)\WinInstall\Config\GetWebDll.dll" /implib:"$(DESTDIR)\WinInstall\Config\GetWebDll.lib"
DEF_FILE= \
".\GetWebDll.def"
LINK32_OBJS= \
!IF "$(NO_EXTERNAL_DEPS)" != "1"
!IF EXISTS("GetWebDll.dep")
!INCLUDE "GetWebDll.dep"
-!ELSE
+!ELSE
!MESSAGE Warning: cannot find "GetWebDll.dep"
-!ENDIF
-!ENDIF
+!ENDIF
+!ENDIF
SOURCE=.\GetWebDll.cpp
# 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
cd getwebdll
nmake -fntmakefile install
$(CD) ..
- echo
+ echo
$(DIRLANG) ::
$(CD) lang
////////////////////////////////////////////////////////////////////////////////
-//
-// IIIIIII SSSSSS
-// II SS InstallShield (R)
-// II SSSSSS (c) 1996-2000, InstallShield Software Corporation
-// II SS (c) 1990-1996, InstallShield Corporation
-// IIIIIII SSSSSS All Rights Reserved.
-//
-//
+//
+// IIIIIII SSSSSS
+// II SS InstallShield (R)
+// II SSSSSS (c) 1996-2000, InstallShield Software Corporation
+// II SS (c) 1990-1996, InstallShield Corporation
+// IIIIIII SSSSSS All Rights Reserved.
+//
+//
////////////////////////////////////////////////////////////////////////////////
#define NOCOMM
# Microsoft Developer Studio Generated NMAKE File, Based on _IsUser.dsp
!IF "$(OS)" == "Windows_NT"
NULL=
-!ELSE
+!ELSE
NULL=nul
-!ENDIF
+!ENDIF
-OUTDIR=$(OUT)
-INTDIR=$(OUT)
+OUTDIR=$(OUT)
+INTDIR=$(OUT)
INSTALL : "$(DESTDIR)\WinInstall\Config\_IsUser.dll"
- $(DEL) *.PCH
+ $(DEL) *.PCH
$(DEL) *.IDB
CLEAN ::
-@erase "$(OUTDIR)\_IsUser.lib"
CPP=cl.exe
-CPP_PROJ=/nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "_ISUSER_EXPORTS" /YX /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
+CPP_PROJ=/nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "_ISUSER_EXPORTS" /YX /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
.c.{$(OUT)\}obj::
$(CPP) @<<
- $(CPP_PROJ) $<
+ $(CPP_PROJ) $<
<<
.cpp.{$(OUT)\}obj::
$(CPP) @<<
- $(CPP_PROJ) $<
+ $(CPP_PROJ) $<
<<
.cxx.{$(OUT)\}obj::
$(CPP) @<<
- $(CPP_PROJ) $<
+ $(CPP_PROJ) $<
<<
.c.$(OUT)\sbr::
$(CPP) @<<
- $(CPP_PROJ) $<
+ $(CPP_PROJ) $<
<<
.cpp.$(OUT)\sbr::
$(CPP) @<<
- $(CPP_PROJ) $<
+ $(CPP_PROJ) $<
<<
.cxx.$(OUT)\sbr::
$(CPP) @<<
- $(CPP_PROJ) $<
+ $(CPP_PROJ) $<
<<
MTL=midl.exe
-MTL_PROJ=/nologo /D "NDEBUG" /mktyplib203 /win32
+MTL_PROJ=/nologo /D "NDEBUG" /mktyplib203 /win32
RSC=rc.exe
-RSC_PROJ=/l 0x409 /fo"$(INTDIR)\_Isuser.res" /d "NDEBUG"
+RSC_PROJ=/l 0x409 /fo"$(INTDIR)\_Isuser.res" /d "NDEBUG"
BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\_IsUser.bsc"
+BSC32_FLAGS=/nologo /o"$(OUTDIR)\_IsUser.bsc"
BSC32_SBRS= \
LINK32=link.exe
-LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /incremental:no /pdb:"$(OUTDIR)\_IsUser.pdb" /machine:I386 /out:"$(DESTDIR)\WinInstall\Config\_IsUser.dll" /implib:"$(OUTDIR)\_IsUser.lib"
+LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /incremental:no /pdb:"$(OUTDIR)\_IsUser.pdb" /machine:I386 /out:"$(DESTDIR)\WinInstall\Config\_IsUser.dll" /implib:"$(OUTDIR)\_IsUser.lib"
LINK32_OBJS= \
"$(INTDIR)\_isuser.obj" \
"$(INTDIR)\_Isuser.res"
#define IDC_STATIC -1
// Next default values for new objects
-//
+//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NO_MFC 1
/*
* 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
#define WIN9X_START_MENU_REG_KEY "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders"
#define WIN9X_START_MENU_REG_VALUE "Programs"
-
+
#define WINNT_START_MENU_REG_KEY "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders"
#define WINNT_START_MENU_REG_VALUE "Common Programs"
*/
struct APPINFO appServer = {
"AFS Server",
-
+
AFSREG_SVR_SVC_NAME,
AFSREG_SVR_SVC_KEY,
0, // No depend on
IDS_WAITING_FOR_SERVER_TO_STOP,
AFSREG_SVR_SW_VERSION_KEY,
-
+
{ AFSREG_SVR_SW_VERSION_KEY, AFSREG_SVR_SW_VERSION_DIR_VALUE },
"\\Server",
TARGETDIR"\\Server\\usr\\afs\\local\0"
TARGETDIR"\\Server\\usr\\afs\0"
TARGETDIR"\\Server\\usr\0",
-
+
// Files to delete
TARGETDIR"\\Common\\*.gid\0"
TARGETDIR"\\Common\\*.fts\0",
"Server\0",
// Config info to preserve
- AFSREG_SVR_SVC_KEY"\0",
+ AFSREG_SVR_SVC_KEY"\0",
IDS_PRESERVE_SERVER_CONFIG_INFO,
0 // No special uninstall function
*/
struct APPINFO appClient = {
"AFS Client",
-
+
AFSREG_CLT_SVC_NAME,
AFSREG_CLT_SVC_KEY,
"5250435353004E657462696F730000",
// No dirs to delete
0,
-
+
// Files to delete
TARGETDIR"\\Common\\*.gid\0"
TARGETDIR"\\Common\\*.fts\0"
TARGETDIR"\\Client\\afsdsbmt.ini\0"
TARGETDIR"\\Client\\afsdcell.ini\0"
WINDIR"\\TEMP\\afsd_init.log\0",
-
+
clientRegValues,
clientWinNTRegValues,
clientWin9XRegValues,
*/
struct APPINFO appLightClient = {
"AFS Light",
-
- // No service info
+
+ // No service info
0,
0,
0,
// No dirs to delete
0,
-
+
// Files to delete
TARGETDIR"\\Common\\*.gid\0"
TARGETDIR"\\Common\\*.fts\0",
*/
struct APPINFO appControlCenter = {
"AFS Control Center",
-
+
// No service info
0,
0,
// No network provider order
0,
- // No service shutdown messages
+ // No service shutdown messages
0,
0,
"HKEY_LOCAL_MACHINE\\SOFTWARE\\TransarcCorporation\\AFS Control Center",
-
+
{ "HKEY_LOCAL_MACHINE\\SOFTWARE\\TransarcCorporation\\AFS Control Center\\CurrentVersion", "PathName" },
"\\Control Center",
// No dirs to delete
0,
-
+
// Files to delete
TARGETDIR"\\Common\\*.gid\0"
TARGETDIR"\\Common\\*.fts\0",
-
+
0, // No reg values
0, // No NT only reg values
0, // No 9x only reg values
// No network provider order
0,
- // No service shutdown messages
+ // No service shutdown messages
0,
0,
"HKEY_LOCAL_MACHINE\\SOFTWARE\\TransarcCorporation\\AFS Supplemental Documentation",
-
+
{ "HKEY_LOCAL_MACHINE\\SOFTWARE\\TransarcCorporation\\AFS Supplemental Documentation\\CurrentVersion", "PathName" },
"\\Documentation",
// No dirs to delete
0,
-
+
// Files to delete
TARGETDIR"\\Common\\*.gid\0"
TARGETDIR"\\Common\\*.fts\0",
HKEY hKey;
LONG result;
int nData;
-
+
result = RegOpenKeyAlt(AFSREG_NULL_KEY, AFSREG_CLT_SVC_PARAM_KEY, KEY_WRITE, TRUE, &hKey, 0);
if (result != ERROR_SUCCESS)
return -1;
UpgradeClientIntParm(hKey, "TraceBufferSize", "TraceBufferSize");
UpgradeClientIntParm(hKey, "TraceOnShutdown", "TraceOnShutdown");
UpgradeClientIntParm(hKey, "ReportSessionStartups", "ReportSessionStartups");
-
+
UpgradeClientStringParm(hKey, "MountRoot", "MountRoot");
UpgradeClientStringParm(hKey, "Cell", "Cell");
return 0;
}
-// This function was written a long time ago by Mike Comer for use by the
+// This function was written a long time ago by Mike Comer for use by the
// original DFS Client for NT install program.
int SUCALLCONV CheckIfAdmin(void)
{
{
LONG result;
HKEY hKey;
-
+
result = RegOpenKeyAlt(AFSREG_NULL_KEY, MS_SHARED_FILES_KEY, KEY_WRITE, FALSE, &hKey, 0);
if (result != ERROR_SUCCESS)
return;
-
+
if (nRefCount <= 0)
RegDeleteValue(hKey, pszFile);
else
- RegSetValueEx(hKey, pszFile, 0, REG_DWORD, (BYTE *)&nRefCount, sizeof(int));
-
+ RegSetValueEx(hKey, pszFile, 0, REG_DWORD, (BYTE *)&nRefCount, sizeof(int));
+
RegCloseKey(hKey);
}
_strdate(szDate);
sprintf(szTimeDate, "[%s %s] ", szTime, szDate);
-
+
return szTimeDate;
}
static BOOL bWritten = FALSE;
FILE *fp;
- // On the first write, recreate the file
+ // On the first write, recreate the file
fp = fopen(INSTALL_ERROR_LOG_NAME, bWritten ? "a" : "w");
if (!fp)
return -1;
-
+
fprintf(fp, "%s%s\r\n", GetTimeStamp(), pszMsg);
-
+
fclose(fp);
-
+
bWritten = TRUE;
-
+
return 0;
}
static BOOL bWritten = FALSE;
FILE *fp;
- // On the first write, recreate the file
+ // On the first write, recreate the file
fp = fopen(UNINSTALL_ERROR_LOG_NAME, bWritten ? "a" : "w");
if (!fp)
return;
-
+
fprintf(fp, "%s%s\r\n", GetTimeStamp(), pszMsg);
-
+
fclose(fp);
-
+
bWritten = TRUE;
}
strcpy(szErr, psz);
else
sprintf(szErr, "unknown error msg (Msg ID = %d)", nResID);
-
+
psz = LoadResString(IDS_INSTALLATION_FAILURE);
strcpy(szPrompt, psz ? psz : "An error has occurred: %s (Last Error = %ld).");
{
strncpy(pszShortPath, pszInstallDir, nShortPathLen);
strncat(pszShortPath, pszPath, nShortPathLen);
-
+
GetShortPathName(pszShortPath, pszShortPath, nShortPathLen);
}
OSVERSIONINFO versionInformation;
versionInformation.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
-
+
GetVersionEx(&versionInformation);
-
+
if ((versionInformation.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS) &&
(versionInformation.dwMinorVersion == 0))
return TRUE;
-
+
return FALSE;
}
OSVERSIONINFO versionInformation;
versionInformation.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
-
+
GetVersionEx(&versionInformation);
-
+
if ((versionInformation.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS) &&
(versionInformation.dwMinorVersion == 10))
return 0;
-
+
return -1;
}
}
}
}
-
+
// Try to delete even if status query fails
DeleteService(hServer);
}
bRestoreOldConfig = FALSE;
// Fall through to service creation below
}
- }
+ }
*/
-
+
if (!bRestoreOldConfig) {
DWORD dwServiceType;
dwServiceType = SERVICE_WIN32_OWN_PROCESS;
if (bInteractive)
dwServiceType |= SERVICE_INTERACTIVE_PROCESS;
-
+
hServer = CreateService(hSCM, pszName, pszDisplayName,
- SERVICE_ALL_ACCESS, dwServiceType, SERVICE_AUTO_START,
+ SERVICE_ALL_ACCESS, dwServiceType, SERVICE_AUTO_START,
SERVICE_ERROR_NORMAL, pszServicePath, 0, 0, "RPCSS\0Netbios\0\0", 0, 0);
-
+
if (!hServer)
ShowError(IDS_SERVICE_CREATE_FAILED, GetLastError());
}
ShowError(IDS_SCM_OPEN_FAILED, GetLastError());
return -1;
}
-
+
hServer = OpenService(hSCM, pAppInfo->pszSvcName, SERVICE_ALL_ACCESS | DELETE);
if (!hServer) {
ShowError(IDS_SERVICE_OPEN_FAILED, GetLastError());
HideProgressDialog();
// This code to disable the service may be of use some day so I am keeping it here.
- // bOk = ChangeServiceConfig(hServer, SERVICE_NO_CHANGE, SERVICE_DISABLED, SERVICE_NO_CHANGE, 0, 0, 0, 0, 0, 0, 0);
+ // bOk = ChangeServiceConfig(hServer, SERVICE_NO_CHANGE, SERVICE_DISABLED, SERVICE_NO_CHANGE, 0, 0, 0, 0, 0, 0, 0);
bOk = DeleteService(hServer);
p = strrchr(szDir, '\\');
if (p)
*p = 0;
-
+
hSearch = _findfirst(pszFileSpec, &fileinfo);
if (hSearch == -1)
return;
result = GetTempPath(sizeof(szTempDir) - 1, szTempDir);
if (result == 0)
return "\\";
-
+
return szTempDir;
}
if (szRootInstallDir[0] == 0) {
strcpy(szRootInstallDir, pszInstallDir);
-
+
// Strip off the app specific part of the install dir
psz = strrchr(szRootInstallDir, '\\');
if (psz)
return FALSE; // Cancel the uninstall
}
}
-
+
UninstallCredsTool();
return TRUE;
// by the InstallShield uninstaller, we can find out where we were installed to. We
// have to do this because by the time that function is called, the registry values
// created at install time are already gone. We need to be able to find out where we
- // were installed so we can clean up anything IS couldn't uninstall. If this fails in
+ // were installed so we can clean up anything IS couldn't uninstall. If this fails in
// any way then we don't care. The only consequence is that some junk might be left on
// the users' system after an uninstall.
-
+
LONG result = RegOpenKeyAlt(AFSREG_NULL_KEY, UNINSTALL_TEMP_INFO_KEY, KEY_WRITE, TRUE, &hKey, 0);
if (result != ERROR_SUCCESS)
return;
- RegSetValueEx(hKey, INSTALL_DIR_VALUE_NAME, 0, REG_SZ, (PBYTE)pszInstallDir, strlen(pszInstallDir) + 1);
+ RegSetValueEx(hKey, INSTALL_DIR_VALUE_NAME, 0, REG_SZ, (PBYTE)pszInstallDir, strlen(pszInstallDir) + 1);
RegCloseKey(hKey);
}
{
static char szWinDir[MAX_PATH] = "";
- if (!szWinDir[0])
+ if (!szWinDir[0])
GetWindowsDirectory(szWinDir, sizeof(szWinDir));
-
+
return szWinDir;
}
if (!szWinSysDir[0])
GetSystemDirectory(szWinSysDir, sizeof(szWinSysDir));
-
+
return szWinSysDir;
-}
+}
static char *GetLocaleID()
{
if (szID[0] == 0) {
LCID dwID = GetSystemDefaultLCID();
-
+
// Nuke the high word. It contains a sort ID.
dwID &= 0x0000FFFF;
-
+
// Convert locale ID to a string
itoa(dwID, szID, 10);
szPath[0] = 0;
- // Convert a path containing TARGETDIR, WINDIR, or WINSYSDIR to a
+ // Convert a path containing TARGETDIR, WINDIR, or WINSYSDIR to a
// real path in the file system. One of these MUST be the start of
// the file path passed in. Also convert the string ???? to an
// actual locale number.
strcpy(szPath, GetWinDir());
else if (strncmp(pszFile, WINSYSDIR, strlen(WINSYSDIR)) == 0)
strcpy(szPath, GetWinSysDir());
-
- if (szPath[0]) {
+
+ if (szPath[0]) {
psz = strchr(pszFile, '\\');
if (psz)
strcat(szPath, psz);
// Is this a language dll?
psz = strstr(szPath, "????.");
-
+
// If it is, replace ???? with the locale number
if (psz)
strncpy(psz, GetLocaleID(), LOCALE_ID_LEN);
if ((pFileInfo->nUsedBy & CC) && (pApp != &appControlCenter) && IsAppInstalled(&appControlCenter))
return TRUE;
-
+
return FALSE;
}
// when IS fails to remove these in use files, it marks them for deletion after the
// next reboot, which is fine. Unfortunately, it leaves them in the dirs they were
// installed to. So if we don't immediately reboot and perform an install to the
- // same dirs, once a reboot is performed, those files get deleted and we have a
+ // same dirs, once a reboot is performed, those files get deleted and we have a
// broken installation.
// What we will do to fix all of this, is when the client is uninstalled, but
// If the file doesn't exist then go on to the next file.
if (_access(szSrcPath, 0) != 0)
continue;
-
+
// See if we can do a regular delete of the file
if (DeleteFile(szSrcPath)) {
SetSharedFileRefCount(szSrcPath, 0);
strncpy(szTempDir, szSrcPath, 3);
szTempDir[3] = 0;
}
-
+
// Get the dest path - we will rename the file during the move
GetTempFileName(szTempDir, "AFS", 0, szDestPath);
// Move from source to dest, marking the file for deletion after a reboot
if (IsWin95()) {
- if (MoveFile(szSrcPath, szDestPath)) {
+ if (MoveFile(szSrcPath, szDestPath)) {
WritePrivateProfileString("rename", szSrcPath, szDestPath, "wininit.ini");
SetSharedFileRefCount(szSrcPath, 0);
}
BOOL bContinue;
sprintf(szSpec, "%s\\*.*", pszDir);
-
+
// First delete the contents of the dir
hFind = FindFirstFile(szSpec, &findFileData);
bContinue = (hFind != INVALID_HANDLE_VALUE);
-
+
while (bContinue) {
if ((strcmp(findFileData.cFileName, ".") != 0) && (strcmp(findFileData.cFileName, "..") != 0)) {
sprintf(szSubFileOrDir, "%s\\%s", pszDir, findFileData.cFileName);
-
+
if (findFileData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
RemoveDirectoryTree(szSubFileOrDir);
else
}
FindClose(hFind);
-
+
// Now remove the dir
RemoveDirectory(pszDir);
-}
+}
static char *GetStartMenuRoot()
{
if (szStartMenuRoot[0] == 0) {
dwSize = sizeof(szStartMenuRoot);
-
+
if (IsWinNT()) {
pszKey = WINNT_START_MENU_REG_KEY;
pszValue = WINNT_START_MENU_REG_VALUE;
pszKey = WIN9X_START_MENU_REG_KEY;
pszValue = WIN9X_START_MENU_REG_VALUE;
}
-
+
nResult = RegOpenKeyAlt(AFSREG_NULL_KEY, pszKey, KEY_READ, FALSE, &hKey, 0);
if (nResult == ERROR_SUCCESS) {
nResult = RegQueryValueEx(hKey, pszValue, 0, &dwType, (PBYTE)szStartMenuRoot, &dwSize);
{
static char szAfsStartMenuRoot[MAX_PATH] = "";
char *pszStartMenuRoot;
-
- if (szAfsStartMenuRoot[0] == 0) {
+
+ if (szAfsStartMenuRoot[0] == 0) {
pszStartMenuRoot = GetStartMenuRoot();
if (!pszStartMenuRoot)
return 0;
if (!pszAfsStartMenuRoot)
return;
-
+
for (pszCurEntry = pszEntries; *pszCurEntry; pszCurEntry += strlen(pszCurEntry) + 1) {
sprintf(szStartMenuPath, "%s\\%s", pszAfsStartMenuRoot, pszCurEntry);
if (IsADir(szStartMenuPath))
{
char *pszAfsStartMenuRoot;
char szTemp[MAX_PATH];
-
+
pszAfsStartMenuRoot = GetAfsStartMenuRoot();
if (!pszAfsStartMenuRoot)
return;
sprintf(szTemp, "%s - Refresh Attempt", pszAfsStartMenuRoot);
-
- // Deleting items from below the root level of the start menu does not
+
+ // Deleting items from below the root level of the start menu does not
// cause it to refresh. In order that users can see changes without
- // rebooting we will temporarily rename our root most entry, which
+ // rebooting we will temporarily rename our root most entry, which
// does cause a refresh of the start menu.
MoveFileEx(pszAfsStartMenuRoot, szTemp, MOVEFILE_REPLACE_EXISTING);
MoveFileEx(szTemp, pszAfsStartMenuRoot, MOVEFILE_REPLACE_EXISTING);
int nChoice = ShowMsg(pApp->nPreserveConfigInfoMsgID, MB_ICONQUESTION | MB_YESNOCANCEL);
if (nChoice == IDCANCEL)
return FALSE; // Cancel the uninstall
- else if (nChoice == IDNO) {
+ else if (nChoice == IDNO) {
bPreserveConfigInfo = FALSE; // User doesn't want to preserve the config info
return TRUE;
}
RegCloseKey(hKey);
}
}
-
+
done:
if ((result == ERROR_SUCCESS) || bSilentMode)
return TRUE; // Continue with uninstall
// Report the error and ask the user if they want to continue the uninstall
- return (ShowMsg(IDS_SAVE_OF_CONFIG_INFO_FAILED, MB_ICONEXCLAMATION | MB_YESNO) == IDYES);
+ return (ShowMsg(IDS_SAVE_OF_CONFIG_INFO_FAILED, MB_ICONEXCLAMATION | MB_YESNO) == IDYES);
}
int SUCALLCONV RestoreConfigInfo(int nApp)
case LCLIENT: pApp = &appLightClient; break;
case CC: pApp = &appControlCenter; break;
}
-
+
if (!pApp)
return -1;
-
+
// Copy each reg key (and all of its subkeys and values) back to its original place in the registry.
for (pszRegKey = pApp->pszRegKeysToPreserve; *pszRegKey; pszRegKey += strlen(pszRegKey) + 1) {
// Create the source path for the copy
// Remove our saved copies of the config info
sprintf(szSrcKey, "%s\\%s", AFS_PRESERVED_CFG_INFO_KEY, pApp->pszAppName);
RegDeleteEntryAlt(szSrcKey, REGENTRY_KEY);
-
+
if (bError)
ShowError(IDS_RESTORE_OF_PREVIOUS_CONFIG_FAILED, 0);
HKEY hKey;
char *pszSubKeys = 0;
BOOL bExist;
-
+
result = RegOpenKeyAlt(AFSREG_NULL_KEY, pszKey, KEY_READ, FALSE, &hKey, 0);
if (result != ERROR_SUCCESS)
return FALSE;
-
+
result = RegEnumKeyAlt(hKey, &pszSubKeys);
RegCloseKey(hKey);
-
+
if (result != ERROR_SUCCESS)
return FALSE;
-
+
if (pszSubKeys) {
bExist = TRUE;
free(pszSubKeys);
} else
- bExist = FALSE;
+ bExist = FALSE;
return bExist;
}
RemoveRegValues(pAppInfo->pRegValues);
if (IsWinNT())
RemoveRegValues(pAppInfo->pWinNTRegValues);
- else
+ else
RemoveRegValues(pAppInfo->pWin9XRegValues);
// Remove the start menu entries for this app
}
bSilentMode = !IsWindowVisible(hIS);
-
+
// Which app did we just uninstall?
pAppInfo = GetApp();
if (!pAppInfo) {
// Remove the install dir
RemoveDirectory(pszInstallDir);
- // Attempt to remove the install root and common directories. The are
+ // Attempt to remove the install root and common directories. The are
// shared and so no single app knows to delete them.
// Strip off the app specific part of the install dir
// that the user chose for our install root. The default for
// this is IBM/Afs, but they could have chosen anything,
// including a dir or dirs that have other products in them.
- // We will check to see if it is IBM\AFS and if it is then we
+ // We will check to see if it is IBM\AFS and if it is then we
// will attempt to remove them.
-
+
// Back up a level and look for AFS
psz = strrchr(pszInstallDir, '\\');
if (psz) {
// Remove everything under our branch
sprintf(szDirPath, "%s\\IBM WebSphere\\Performance Pack\\AFS", psz);
RemoveDirectoryTree(szDirPath);
-
+
// Remove the IBM stuff only if the dirs are empty
sprintf(szDirPath, "%s\\IBM WebSphere\\Performance Pack", psz);
if (RemoveDirectory(szDirPath)) {
/*
* 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
/*
* 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
/*
* 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
# 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
$(DLLFILE) : $(DLLOBJS)
$(DLLRESLINK)
- $(DLLPREP)
+ $(DLLPREP)
$(CODESIGN_USERLAND)
$(SYMSTORE_IMPORT)
mkdir:
-
+
/*
* 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
BOOL ShowProgressDialog(char *pszMsg)
{
DWORD dwThreadID;
-
+
pszProgressMsg = pszMsg;
// Create a thread to show the dialog
hDlg = hwndDlg;
SetWindowText(GetDlgItem(hDlg, IDC_MSG), pszProgressMsg);
break;
-
+
case WM_QUIT:
- OnQuit();
+ OnQuit();
break;
}
/*
* 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
strcpy(pszNewValue, pszValue);
strcat(pszNewValue, ",");
}
- strcat(pszNewValue, pszWhatToAdd);
+ strcat(pszNewValue, pszWhatToAdd);
}
} else if (result == ERROR_FILE_NOT_FOUND)
/* Do we need to add it? */
if (!pszCurPath || !FindSubString(pszCurPath, pszPath)) {
-
+
/* Old path + a semicolon + the new path entry + a null */
pszNewPath = malloc((pszCurPath ? strlen(pszCurPath) + 1 : 0) +
strlen(pszPath) + 1);
/*
* 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
/*
* 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
# 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
$(EXEFILE) : $(EXEOBJS) $(EXERES) $(EXELIBS)
$(EXECONLINK) $(VCLIBS)
$(_VC_MANIFEST_EMBED_EXE)
- $(EXEPREP)
+ $(EXEPREP)
$(CODESIGN_USERLAND)
$(SYMSTORE_IMPORT)
/*
* 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
/*
* 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
/*
* 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
/*
* 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
/*
* 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
/*
* 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
/*
* 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
/*
* 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
/*
* 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
/*
* 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
/*
* 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
/*
* 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
/*
* 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
/*
* 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
/*
* 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
/*
* 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
/*
* 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
/*
* 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
/*
* 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
/*
* 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
# 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
/*
* 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
/*
* 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
/*
* 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
/*
* 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
/*
* 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
/*
* 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
{
rc = asc_CredentialsCrack (idClient, (PVOID) hCreds, pszCell, pszUser, pst, &status);
}
- else
+ else
if (OpenClientLibrary())
{
char szUserA[ cchRESOURCE ], szUser2A[ cchRESOURCE ];
LPREALBADCREDSDLG_PARAMS lpp;
if (msg == WM_INITDIALOG)
SetWindowLongPtr (hDlg, DWLP_USER, lp);
- if ((lpp = (LPREALBADCREDSDLG_PARAMS)GetWindowLongPtr (hDlg, DWLP_USER)) != NULL)
+ if ((lpp = (LPREALBADCREDSDLG_PARAMS)GetWindowLongPtr (hDlg, DWLP_USER)) != NULL)
{
if (lpp->bcdp.hookproc)
{
/*
* 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
/*
* 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
/*
* 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
*
*/
-typedef struct
+typedef struct
{
BOOL fInUse;
int idd;
/*
* 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
static TCHAR szCell[ cchRESOURCE ] = TEXT("");
BOOL rc = TRUE;
- ULONG status = 0;
+ ULONG status = 0;
if (szCell[0] == TEXT('\0'))
{
{
rc = asc_LocalCellGet (idClient, szCell, &status);
}
- else
+ else
if (OpenClientLibrary())
{
char szCellNameA[ MAX_PATH ];
/*
* 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
/*
* 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
/*
* 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
/*
* 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
}
for (COLORREF clr = clrWASH_DARKEST; clr <= clrWASH_BRIGHTEST; clr += clrWASH_INCREMENT)
- {
+ {
for (ii = 0; ii < 256; ++ii)
{
if ( (pPal->palPalEntry[ ii ].peRed == GetRValue (clr)) &&
{
if (!m_bmpBackground)
return FALSE;
-
+
PAINTSTRUCT ps;
HDC hdcTarget;
if ((hdcTarget = BeginPaint (m_hBkg, &ps)) != NULL)
/*
* 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
/*
* 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
/*
* 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
/*
* 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
/*
* 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
/*
* 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
}
break;
- case WM_MEASUREITEM:
+ case WM_MEASUREITEM:
LPMEASUREITEMSTRUCT lpmis;
- lpmis = (LPMEASUREITEMSTRUCT)lp;
+ lpmis = (LPMEASUREITEMSTRUCT)lp;
HDC hdc;
hdc = GetDC (hDlg);
SIZE sAMPM;
Time_GetAMPMSize (hdc, &sAMPM, NULL, NULL);
ReleaseDC (hDlg, hdc);
lpmis->itemHeight = sAMPM.cy;
- return TRUE;
+ return TRUE;
- case WM_DRAWITEM:
+ case WM_DRAWITEM:
LPDRAWITEMSTRUCT lpdis;
- lpdis = (LPDRAWITEMSTRUCT)lp;
+ lpdis = (LPDRAWITEMSTRUCT)lp;
COLORREF clrBack;
COLORREF clrFore;
}
TCHAR szText[ cchRESOURCE ];
- SendMessage (lpdis->hwndItem, LB_GETTEXT, lpdis->itemID, (LPARAM)szText);
+ SendMessage (lpdis->hwndItem, LB_GETTEXT, lpdis->itemID, (LPARAM)szText);
SetTextColor (lpdis->hDC, clrFore);
SetBkColor (lpdis->hDC, clrBack);
/*
* 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
FORWARD_WM_COMMAND (hDlg, IDOK, 0, 0, SendMessage);
return TRUE;
case PSN_APPLY:
- FORWARD_WM_COMMAND (hDlg, IDAPPLY, 0, 0, SendMessage);
+ FORWARD_WM_COMMAND (hDlg, IDAPPLY, 0, 0, SendMessage);
return TRUE;
case PSN_HELP:
FORWARD_WM_COMMAND (hDlg, IDHELP, 0, 0, SendMessage);
/*
* 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
}
else
{
- SetWindowPos (pfl->hScrollV, 0,
+ SetWindowPos (pfl->hScrollV, 0,
rScroll.left, rScroll.top, cxRECT(rScroll), cyRECT(rScroll),
SWP_NOZORDER | SWP_NOACTIVATE);
}
}
else
{
- SetWindowPos (pfl->hScrollH, 0,
+ SetWindowPos (pfl->hScrollH, 0,
rScroll.left, rScroll.top, cxRECT(rScroll), cyRECT(rScroll),
SWP_NOZORDER | SWP_NOACTIVATE);
}
/*
* 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
cObjectsInPlace += min( pInfo->aBuckets[ iBucket ], cPerfectLength );
// Now calculating that percent effectiveness is easy. If everything
- // is evenly distributed, cObjectsInPlace will == cObjects--and
+ // is evenly distributed, cObjectsInPlace will == cObjects--and
// we want to call it 100%. If eveything is on one chain, then
// cObjectsInPlace will be really small compared to cObjects.
//
# 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
$(DLLFILE) : $(DLLOBJS)
$(DLLRESLINK)
$(_VC_MANIFEST_EMBED_DLL)
- $(DLLPREP)
+ $(DLLPREP)
$(CODESIGN_USERLAND)
$(SYMSTORE_IMPORT)
/*
* 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
/*
* 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
/*
* 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
/*
* 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
# 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
$(EXEFILE) : $(EXEOBJS) $(EXELIBS)
$(EXEGUILINK) comctl32.lib shell32.lib
$(_VC_MANIFEST_EMBED_EXE)
- $(EXEPREP)
+ $(EXEPREP)
$(CODESIGN_USERLAND)
$(SYMSTORE_IMPORT)
mkdir:
-
+
/*
* 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
#define IDC_STATIC -1
// Next default values for new objects
-//
+//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NO_MFC 1
/*
* 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
# 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
mkdir:
-
+
/*
* 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
/*
* 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
/*
* 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
/*
* 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
/*** DebugWndProc - Main window callback
*
- * ENTRY:
+ * ENTRY:
* EXIT: As WNDPROC
*
* MESSAGES: WM_COMMAND - application menu (About dialog box)
/*
* 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
/*
* 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
/*
* 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
/*
* 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
/*
* 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
/*
* 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
/*
* 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
// has canceled the operation--and if no one has, there is a thread
// hanging around which holds the library's critsec, which ensures
// the lpServer pointer won't have been freed.)
- //
+ //
PVOID hCell;
PVOID hBOS = NULL;
PVOID hVOS = NULL;
++nAggregates;
lpAggregate->Close();
}
-
+
if (nAggregates)
{
for (lpAggregate = AggregateFindFirst (&hEnum); lpAggregate; lpAggregate = AggregateFindNext (&hEnum))
/*
* 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
/*
* 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
/*
* 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
case wtaskVosVolumeOnline:
{
- if ((*lpVosVolumeOnline)(lpwp->wpVosVolumeOnline.hServer, NULL, lpwp->wpVosVolumeOnline.idPartition, lpwp->wpVosVolumeOnline.idVolume, lpwp->wpVosVolumeOnline.csecSleep, lpwp->wpVosVolumeOnline.Status, &status))
+ if ((*lpVosVolumeOnline)(lpwp->wpVosVolumeOnline.hServer, NULL, lpwp->wpVosVolumeOnline.idPartition, lpwp->wpVosVolumeOnline.idVolume, lpwp->wpVosVolumeOnline.csecSleep, lpwp->wpVosVolumeOnline.Status, &status))
status = 0;
break;
}
# 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
ILIBDIR = $(DESTDIR)\lib
-#
-# Rules for message compiler info for logging events
-#
-$(INCFILEDIR)\afsd_eventmessages.h: afsd_eventmessages.mc
- mc afsd_eventmessages.mc
+#
+# Rules for message compiler info for logging events
+#
+$(INCFILEDIR)\afsd_eventmessages.h: afsd_eventmessages.mc
+ mc afsd_eventmessages.mc
############################################################################
#
/*
* Copyright 2005,2006 Secure Endpoints Inc.
* All Rights Reserved.
- *
- * This software has been released under the terms of the MIT License.
+ *
+ * This software has been released under the terms of the MIT License.
*/
#include <afsconfig.h>
/*
* 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
{
MSG msg;
int i;
-
+
afsd_SetUnhandledExceptionFilter();
-
+
#ifdef _DEBUG
afsd_DbgBreakAllocInit();
_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF /* | _CRTDBG_CHECK_ALWAYS_DF */ | _CRTDBG_CHECK_CRT_DF | _CRTDBG_DELAY_FREE_MEM_DF );
allocRequest = strtok(NULL, " \t");
}
}
-#endif
+#endif
if (!InitClass(hInstance))
return (FALSE);
wc.hInstance = hInstance;
wc.hIcon = LoadIcon(hInstance, "AFSDIcon");
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
- wc.hbrBackground = GetStockObject(WHITE_BRUSH);
+ wc.hbrBackground = GetStockObject(WHITE_BRUSH);
wc.lpszMenuName = "AFSDMenu";
wc.lpszClassName = "AFSDWinClass";
INT nLineHeight;
long code, cnt;
char *reason;
-
+
/* remember this, since it is a useful thing for some of the Windows
* calls */
main_inst = hInstance;
hDC = GetDC(hWnd);
GetTextMetrics(hDC, &textmetric);
nLineHeight = textmetric.tmExternalLeading + textmetric.tmHeight;
-
+
main_rect.left = GetDeviceCaps(hDC, LOGPIXELSX) / 4; /* 1/4 inch */
main_rect.right = GetDeviceCaps(hDC, HORZRES);
main_rect.top = GetDeviceCaps(hDC, LOGPIXELSY) / 4; /* 1/4 inch */
////////////////////////////////////////////////////////////////////
//
//
-// E V E N T L O G G I N G F U N C T I O N S
+// E V E N T L O G G I N G F U N C T I O N S
//
//
////////////////////////////////////////////////////////////////////
static BOOL
GetServicePath(LPTSTR lpPathBuf, PDWORD pdwPathBufSize)
{
- HKEY hKey = NULL;
+ HKEY hKey = NULL;
DWORD dwData = 0;
BOOL bRet = TRUE;
do {
// Open key
if ( RegOpenKeyEx( HKEY_LOCAL_MACHINE, AFSREG_CLT_SVC_SUBKEY, 0, KEY_QUERY_VALUE, &hKey ) )
- {
+ {
bRet = FALSE;
break;
}
NULL, // type buffer
(LPBYTE) lpPathBuf, // data buffer
&dwData)) // size of data buffer
- {
+ {
bRet = FALSE;
break;
}
-
+
*pdwPathBufSize = dwData;
} while (0);
-
+
if (hKey != NULL)
- RegCloseKey(hKey);
+ RegCloseKey(hKey);
return bRet;
-}
+}
//
// Ensure name for message file is in proper location in Registry.
static BOOL
AddEventSource()
{
- HKEY hKey = NULL, hLogKey;
- UCHAR szBuf[MAX_PATH] = "afsd_service.exe";
- DWORD dwData, dwDisposition;
+ HKEY hKey = NULL, hLogKey;
+ UCHAR szBuf[MAX_PATH] = "afsd_service.exe";
+ DWORD dwData, dwDisposition;
static BOOL bRet = TRUE;
static BOOL bOnce = TRUE;
if ( RegOpenKeyEx( HKEY_LOCAL_MACHINE, AFSREG_APPLOG_SUBKEY, 0,
KEY_SET_VALUE, &hLogKey ) )
- {
- // nope - create it
+ {
+ // nope - create it
if ( RegCreateKeyEx(HKEY_LOCAL_MACHINE, AFSREG_APPLOG_SUBKEY, 0,
NULL, REG_OPTION_NON_VOLATILE,
KEY_ALL_ACCESS, NULL, &hLogKey,
- &dwDisposition))
- {
+ &dwDisposition))
+ {
bRet = FALSE;
goto done;
}
}
- // Let's see if key already exists as a subkey under the
+ // Let's see if key already exists as a subkey under the
// Application key in the EventLog registry key. If not,
// create it.
if ( RegOpenKeyEx( hLogKey, AFSREG_CLT_APPLOG_SUBKEY, 0,
KEY_SET_VALUE, &hKey ) )
- {
- // nope - create it
+ {
+ // nope - create it
if ( RegCreateKeyEx(hLogKey, AFSREG_CLT_APPLOG_SUBKEY, 0,
NULL, REG_OPTION_NON_VOLATILE,
KEY_ALL_ACCESS, NULL, &hKey,
- &dwDisposition))
- {
+ &dwDisposition))
+ {
bRet = FALSE;
goto done;
}
}
- // Add the name to the EventMessageFile subkey.
- if ( RegSetValueEx( hKey, // subkey handle
- AFSREG_APPLOG_MSGFILE_VALUE, // value name
- 0, // must be zero
- REG_SZ, // value type
- (LPBYTE) szBuf, // pointer to value data
+ // Add the name to the EventMessageFile subkey.
+ if ( RegSetValueEx( hKey, // subkey handle
+ AFSREG_APPLOG_MSGFILE_VALUE, // value name
+ 0, // must be zero
+ REG_SZ, // value type
+ (LPBYTE) szBuf, // pointer to value data
(DWORD)strlen(szBuf) + 1)) // length of value data
- {
+ {
bRet = FALSE;
goto done;
}
- // Set the supported event types in the TypesSupported subkey.
- dwData = EVENTLOG_ERROR_TYPE | EVENTLOG_WARNING_TYPE |
- EVENTLOG_INFORMATION_TYPE;
+ // Set the supported event types in the TypesSupported subkey.
+ dwData = EVENTLOG_ERROR_TYPE | EVENTLOG_WARNING_TYPE |
+ EVENTLOG_INFORMATION_TYPE;
- if ( RegSetValueEx( hKey, // subkey handle
- AFSREG_APPLOG_MSGTYPE_VALUE, // value name
- 0, // must be zero
- REG_DWORD, // value type
- (LPBYTE) &dwData, // pointer to value data
+ if ( RegSetValueEx( hKey, // subkey handle
+ AFSREG_APPLOG_MSGTYPE_VALUE, // value name
+ 0, // must be zero
+ REG_DWORD, // value type
+ (LPBYTE) &dwData, // pointer to value data
sizeof(DWORD))) // length of value data
- {
+ {
bRet = FALSE;
goto done;
}
-
+
done:
if (hKey != NULL)
- RegCloseKey(hKey);
+ RegCloseKey(hKey);
if (hLogKey != NULL)
- RegCloseKey(hLogKey);
+ RegCloseKey(hLogKey);
return bRet;
-}
+}
// Log an event with a formatted system message as the (only) substitution
// string, from the given message ID.
CloseHandle(hMutex);
DeregisterEventSource(hEventSource);
-}
+}
//
// AFSD_FLUSHVOL.C
-//
-// Routines to handle flushing AFS volumes in response to
+//
+// Routines to handle flushing AFS volumes in response to
// System Power event notification such as Hibernate request.
//
/////////////////////////////////////////////////////////////////////
afsi_log("Flushing Volume \"%s\"",data);
memset(&blob, '\0', sizeof(blob));
code = pioctl(data, VIOC_FLUSHVOLUME, &blob, 0);
-
+
return code;
}
BOOL
afsd_ServicePerformFlushVolumes()
-{
+{
CONST CHAR COLON = ':';
CONST CHAR SLASH = '\\';
CONST DWORD NETRESBUFSIZE = 16384;
}
dwFlushEnd = GetTickCount();
-
+
// display total volume count in Event Logger
sprintf(bufMessage, "%d", dwTotalVols);
LogTimingEvent(MSG_TIME_FLUSH_TOTAL, bufMessage,
LogTimingEvent(DWORD dwEventID, LPTSTR lpString1, DWORD dwTime)
{
CHAR szTime[16];
-
+
sprintf(szTime, "%lu", dwTime);
LogEvent(EVENTLOG_INFORMATION_TYPE, dwEventID, lpString1, szTime,
NULL);
// getting a handle on an access token owned by the shell.
//
// The return value is either a handle to a suitable token,
-// or else null.
+// or else null.
//
// One of the times that this function might return null
// is when there is no logged-in user. Other cases include
-// insufficient access to the desktop, etc.
+// insufficient access to the desktop, etc.
//
// Disclaimer:
// Portions of this routine found in various newsgroups
// running shell).
else
{
- HWINSTA saveWinSta = GetProcessWindowStation();
- HDESK saveDesk = GetThreadDesktop(GetCurrentThreadId());
+ HWINSTA saveWinSta = GetProcessWindowStation();
+ HDESK saveDesk = GetThreadDesktop(GetCurrentThreadId());
HWINSTA winSta = NULL;
HDESK desk = NULL;
BOOL changeFlag = FALSE;
// Now find the window and process on this desktop
shell = FindWindowEx(NULL, NULL, "Progman", NULL);
- if (shell != NULL)
+ if (shell != NULL)
{
tid = GetWindowThreadProcessId(shell, &pid);
}
// Close temporary objects
if (winSta != NULL)
CloseWindowStation(winSta);
- if (desk != NULL)
+ if (desk != NULL)
CloseDesktop(desk);
}
//
- // If we have a process id, use that to get the process handle and
+ // If we have a process id, use that to get the process handle and
// from there the process' access token.
//
if (pid != 0)
// Return token if we got one
return hTok;
-}
+}
// impersonate logged-on user as client
BOOL
{
DWORD dwDesiredAccess = TOKEN_ALL_ACCESS;
HANDLE hUserToken = GetUserToken(dwDesiredAccess);
-
+
if (hUserToken == NULL)
return FALSE;
if (ImpersonateLoggedOnUser(hUserToken) == 0)
}
return TRUE;
}
-
+
/////////////////////////////////////////////////////////////////////
//
// Thread proc
//
-DWORD WINAPI
+DWORD WINAPI
afsd_ServiceFlushVolumesThreadProc(LPVOID lpParam)
{
FLUSHVOLTHREADINFO ThreadInfo;
- PFLUSHVOLTHREADINFO pThreadInfo = (PFLUSHVOLTHREADINFO) lpParam;
+ PFLUSHVOLTHREADINFO pThreadInfo = (PFLUSHVOLTHREADINFO) lpParam;
HANDLE arHandles[2] = {0};
DWORD dwWaitState = 0;
break;
case WAIT_OBJECT_0+1:
- // Power event
+ // Power event
// - flush 'em!
if (ImpersonateClient())
{
// I suppose we never get here
ExitThread(0);
-}
+}
/////////////////////////////////////////////////////////////////////
//
// Mainline thread routines
//
-VOID
+VOID
CheckAndCloseHandle(HANDLE thisHandle)
{
if (thisHandle != NULL)
BOOL bSuccess = FALSE;
DWORD dwThreadId = 0;
char eventName[MAX_PATH];
-
- do
+
+ do
{
// create power event notification event
// bManualReset=TRUE, bInitialState=FALSE
- gThreadInfo.hEventPowerEvent = CreateEvent(NULL, TRUE, FALSE,
+ gThreadInfo.hEventPowerEvent = CreateEvent(NULL, TRUE, FALSE,
TEXT("afsd_flushvol_EventPowerEvent"));
if ( GetLastError() == ERROR_ALREADY_EXISTS )
afsi_log("Event Object Already Exists: %s", eventName);
if (gThreadInfo.hEventPowerEvent == NULL)
- break;
+ break;
// create mainline resume event
// bManualReset=FALSE, bInitialState=FALSE
- gThreadInfo.hEventResumeMain = CreateEvent(NULL, FALSE, FALSE,
+ gThreadInfo.hEventResumeMain = CreateEvent(NULL, FALSE, FALSE,
TEXT("afsd_flushvol_EventResumeMain"));
if ( GetLastError() == ERROR_ALREADY_EXISTS )
afsi_log("Event Object Already Exists: %s", eventName);
if (gThreadInfo.hEventResumeMain == NULL)
- break;
+ break;
// create thread terminate event
// bManualReset=FALSE, bInitialState=FALSE
- gThreadInfo.hEventTerminate = CreateEvent(NULL, FALSE, FALSE,
+ gThreadInfo.hEventTerminate = CreateEvent(NULL, FALSE, FALSE,
TEXT("afsd_flushvol_EventTerminate"));
if ( GetLastError() == ERROR_ALREADY_EXISTS )
afsi_log("Event Object Already Exists: %s", eventName);
if (gThreadInfo.hEventTerminate == NULL)
- break;
+ break;
// good so far - create thread
gThreadHandle = CreateThread(NULL, 0,
afsd_ServiceFlushVolumesThreadProc,
(LPVOID) &gThreadInfo,
0, &dwThreadId);
-
+
if (!gThreadHandle)
break;
CheckAndCloseHandle(gThreadInfo.hEventTerminate);
CheckAndCloseHandle(gThreadHandle);
}
-
+
return bSuccess;
}
/*
* 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
WriteFile(afsi_file, u, (DWORD)strlen(u), &zilch, NULL);
#ifdef NOTSERVICE
printf("%s", u);
-#endif
+#endif
} else {
if (afsi_file != INVALID_HANDLE_VALUE)
WriteFile(afsi_file, s, (DWORD)strlen(s), &zilch, NULL);
afsi_log("OEM Code Page = %d", GetOEMCP());
afsi_log("locale = %s", setlocale(LC_ALL,NULL));
#ifdef COMMENT
- /* Two things to look into. First, should mbstowcs() be performing
- * character set translations from OEM to Unicode in smb3.c;
- * Second, do we need to set this translation in each function
- * due to multi-threading.
+ /* Two things to look into. First, should mbstowcs() be performing
+ * character set translations from OEM to Unicode in smb3.c;
+ * Second, do we need to set this translation in each function
+ * due to multi-threading.
*/
afsi_log("locale -> %s", setlocale(LC_ALL, ".OCP"));
afsi_log("_setmbcp = %d -> %d", _setmbcp(_MB_CP_OEM), _getmbcp());
int len;
char buf[256];
- if (!logReady)
+ if (!logReady)
return;
len = GetTempPath(sizeof(buf)-10, buf);
struct sockaddr_in saddr;
cm_server_t *tsp;
- if (RegOpenKeyEx( HKEY_LOCAL_MACHINE,
+ if (RegOpenKeyEx( HKEY_LOCAL_MACHINE,
AFSREG_CLT_OPENAFS_SUBKEY "\\Server Preferences\\VLDB",
0,
KEY_READ|KEY_QUERY_VALUE,
RegCloseKey(hkPrefs);
}
- if (RegOpenKeyEx( HKEY_LOCAL_MACHINE,
+ if (RegOpenKeyEx( HKEY_LOCAL_MACHINE,
AFSREG_CLT_OPENAFS_SUBKEY "\\Server Preferences\\File",
0,
KEY_READ|KEY_QUERY_VALUE,
tsp->adminRank = tsp->ipRank;
lock_ReleaseMutex(&tsp->mx);
- /* find volumes which might have RO copy
- /* on server and change the ordering of
- * their RO list
+ /* find volumes which might have RO copy
+ /* on server and change the ordering of
+ * their RO list
*/
cm_ChangeRankVolume(tsp);
cm_PutServer(tsp); /* decrease refcount */
code = RegQueryValueEx(parmKey, "blockSize", NULL, NULL,
(BYTE *) &blockSize, &dummyLen);
if (code == ERROR_SUCCESS) {
- if (blockSize < 1 ||
- (blockSize > 1024 && (blockSize % CM_CONFIGDEFAULT_BLOCKSIZE != 0)))
+ if (blockSize < 1 ||
+ (blockSize > 1024 && (blockSize % CM_CONFIGDEFAULT_BLOCKSIZE != 0)))
{