Author: rharabien
Date: Tue Nov 29 17:29:57 2011
New Revision: 54538
URL:
http://svn.reactos.org/svn/reactos?rev=54538&view=rev
Log:
[SHELL32]
- Make functions in folder_options.c static
- Register FolderOptions using folderoptions.rgs
Modified:
trunk/reactos/dll/win32/shell32/folder_options.cpp
trunk/reactos/dll/win32/shell32/shell32_main.cpp
Modified: trunk/reactos/dll/win32/shell32/folder_options.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/folder_o…
==============================================================================
--- trunk/reactos/dll/win32/shell32/folder_options.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/folder_options.cpp [iso-8859-1] Tue Nov 29 17:29:57
2011
@@ -39,20 +39,20 @@
ULARGE_INTEGER bSize;
HWND hwndDlg;
WCHAR szFolderPath[MAX_PATH];
-}FOLDER_PROPERTIES_CONTEXT, *PFOLDER_PROPERTIES_CONTEXT;
+} FOLDER_PROPERTIES_CONTEXT, *PFOLDER_PROPERTIES_CONTEXT;
typedef struct
{
WCHAR FileExtension[30];
WCHAR FileDescription[100];
WCHAR ClassKey[MAX_PATH];
-}FOLDER_FILE_TYPE_ENTRY, *PFOLDER_FILE_TYPE_ENTRY;
+} FOLDER_FILE_TYPE_ENTRY, *PFOLDER_FILE_TYPE_ENTRY;
typedef struct
{
LPCWSTR szKeyName;
UINT ResourceID;
-}FOLDER_VIEW_ENTRY, PFOLDER_VIEW_ENTRY;
+} FOLDER_VIEW_ENTRY, PFOLDER_VIEW_ENTRY;
/*
static FOLDER_VIEW_ENTRY s_Options[] =
{
@@ -92,6 +92,7 @@
EXTERN_C HPSXA WINAPI SHCreatePropSheetExtArrayEx(HKEY hKey, LPCWSTR pszSubKey, UINT
max_iface, IDataObject *pDataObj);
+static
INT_PTR
CALLBACK
FolderOptionsGeneralDlg(
@@ -101,9 +102,6 @@
LPARAM lParam
)
{
-
-
-
return FALSE;
}
@@ -135,7 +133,7 @@
}
-
+static
INT_PTR
CALLBACK
FolderOptionsViewDlg(
@@ -156,6 +154,7 @@
}
+static
VOID
InitializeFileTypesListCtrlColumns(HWND hDlgCtrl)
{
@@ -215,6 +214,7 @@
return ListView_FindItem(hDlgCtrl, 0, &findInfo);
}
+static
VOID
InsertFileType(HWND hDlgCtrl, WCHAR * szName, PINT iItem, WCHAR * szFile)
{
@@ -308,6 +308,7 @@
(*iItem)++;
}
+static
int
CALLBACK
ListViewCompareProc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort)
@@ -320,6 +321,7 @@
return wcsicmp(Entry1->FileExtension, Entry2->FileExtension);
}
+static
BOOL
InitializeFileTypesListCtrl(HWND hwndDlg)
{
@@ -364,6 +366,7 @@
return TRUE;
}
+static
PFOLDER_FILE_TYPE_ENTRY
FindSelectedItem(
HWND hDlgCtrl)
@@ -390,6 +393,7 @@
return NULL;
}
+static
INT_PTR
CALLBACK
FolderOptionsFileTypesDlg(
@@ -471,7 +475,7 @@
return FALSE;
}
-
+static
VOID
ShowFolderOptionsDialog(HWND hWnd, HINSTANCE hInst)
{
@@ -507,6 +511,7 @@
PropertySheetW(&pinfo);
}
+static
VOID
Options_RunDLLCommon(HWND hWnd, HINSTANCE hInst, int fOptions, DWORD nCmdShow)
{
@@ -679,7 +684,7 @@
}
}
-
+static
INT_PTR
CALLBACK
FolderPropertiesGeneralDlg(
Modified: trunk/reactos/dll/win32/shell32/shell32_main.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shell32_…
==============================================================================
--- trunk/reactos/dll/win32/shell32/shell32_main.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/shell32_main.cpp [iso-8859-1] Tue Nov 29 17:29:57
2011
@@ -1458,6 +1458,10 @@
if (FAILED(hr))
return hr;
+ hr = gModule.UpdateRegistryFromResource(IDR_FOLDEROPTIONS, TRUE, NULL);
+ if (FAILED(hr))
+ return hr;
+
// extra registration stuff for the IShellFolder
return DoRegisterServer();
}
@@ -1473,6 +1477,10 @@
if (FAILED(hr))
return hr;
+ hr = gModule.UpdateRegistryFromResource(IDR_FOLDEROPTIONS, FALSE, NULL);
+ if (FAILED(hr))
+ return hr;
+
// extra stuff which is performed for IShellFolder
return DoUnregisterServer();
}