[SYSDM] Rename some functions. #179
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 23 Dec 2017 13:05:07 +0000 (14:05 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 23 Dec 2017 13:05:07 +0000 (14:05 +0100)
dll/cpl/sysdm/environment.c
dll/cpl/sysdm/hardprof.c
dll/cpl/sysdm/userprofile.c
dll/cpl/sysdm/virtmem.c

index 9d80c8f..e6d9fe3 100644 (file)
@@ -270,7 +270,7 @@ GetEnvironmentVariables(HWND hwndListView,
 
 
 static VOID
-SetListViewColumns(HWND hwndListView)
+SetEnvironmentDialogListViewColumns(HWND hwndListView)
 {
     RECT rect;
     LV_COLUMN column;
@@ -296,7 +296,7 @@ SetListViewColumns(HWND hwndListView)
 
 
 static VOID
-OnInitDialog(HWND hwndDlg)
+OnInitEnvironmentDialog(HWND hwndDlg)
 {
     HWND hwndListView;
 
@@ -305,7 +305,7 @@ OnInitDialog(HWND hwndDlg)
 
     (void)ListView_SetExtendedListViewStyle(hwndListView, LVS_EX_FULLROWSELECT);
 
-    SetListViewColumns(hwndListView);
+    SetEnvironmentDialogListViewColumns(hwndListView);
 
     GetEnvironmentVariables(hwndListView,
                             HKEY_CURRENT_USER,
@@ -324,7 +324,7 @@ OnInitDialog(HWND hwndDlg)
 
     (void)ListView_SetExtendedListViewStyle(hwndListView, LVS_EX_FULLROWSELECT);
 
-    SetListViewColumns(hwndListView);
+    SetEnvironmentDialogListViewColumns(hwndListView);
 
     GetEnvironmentVariables(hwndListView,
                             HKEY_LOCAL_MACHINE,
@@ -690,7 +690,7 @@ EnvironmentDlgProc(HWND hwndDlg,
     switch (uMsg)
     {
         case WM_INITDIALOG:
-            OnInitDialog(hwndDlg);
+            OnInitEnvironmentDialog(hwndDlg);
             break;
 
         case WM_COMMAND:
index 7d8c633..328e320 100644 (file)
@@ -659,11 +659,11 @@ GetProfiles(HWND hwndDlg)
 
 static
 BOOL
-OnInitDialog(HWND hwndDlg)
+OnInitHardProfDialog(HWND hwndDlg)
 {
     DWORD dwWaitInterval;
 
-    DPRINT("OnInitDialog()\n");
+    DPRINT("OnInitHardProfDialog()\n");
 
     SendMessage(GetDlgItem(hwndDlg, IDC_HRDPROFUP),
                 BM_SETIMAGE,(WPARAM)IMAGE_ICON,
@@ -732,7 +732,7 @@ HardProfDlgProc(HWND hwndDlg,
     switch (uMsg)
     {
         case WM_INITDIALOG:
-            return OnInitDialog(hwndDlg);
+            return OnInitHardProfDialog(hwndDlg);
 
         case WM_DESTROY:
             if (pProfileData != NULL)
index dce308f..d060838 100644 (file)
@@ -111,7 +111,7 @@ AddUserProfiles(HWND hwndListView)
 
 
 static VOID
-OnInitDialog(HWND hwndDlg)
+OnInitUserProfileDialog(HWND hwndDlg)
 {
     /* Initialize the list view control */
     SetListViewColumns(GetDlgItem(hwndDlg, IDC_USERPROFILE_LIST));
@@ -137,7 +137,7 @@ UserProfileDlgProc(HWND hwndDlg,
     switch (uMsg)
     {
         case WM_INITDIALOG:
-            OnInitDialog(hwndDlg);
+            OnInitUserProfileDialog(hwndDlg);
             break;
 
         case WM_COMMAND:
index 2e61174..e80b33c 100644 (file)
@@ -597,7 +597,7 @@ OnSelChange(HWND hwndDlg, PVIRTMEM pVirtMem)
 
 
 static VOID
-OnOk(PVIRTMEM pVirtMem)
+OnVirtMemDialogOk(PVIRTMEM pVirtMem)
 {
     if (pVirtMem->bModified != FALSE)
     {
@@ -613,7 +613,7 @@ OnOk(PVIRTMEM pVirtMem)
 
 
 static VOID
-OnInitDialog(HWND hwnd, PVIRTMEM pVirtMem)
+OnInitVirtMemDialog(HWND hwnd, PVIRTMEM pVirtMem)
 {
     INT i;
 
@@ -684,7 +684,7 @@ VirtMemDlgProc(HWND hwndDlg,
 
             SetWindowLongPtr(hwndDlg, DWLP_USER, (LONG_PTR)pVirtMem);
 
-            OnInitDialog(hwndDlg, pVirtMem);
+            OnInitVirtMemDialog(hwndDlg, pVirtMem);
             break;
 
         case WM_DESTROY:
@@ -699,7 +699,7 @@ VirtMemDlgProc(HWND hwndDlg,
                     return TRUE;
 
                 case IDOK:
-                    OnOk(pVirtMem);
+                    OnVirtMemDialogOk(pVirtMem);
                     EndDialog(hwndDlg, pVirtMem->bModified);
                     return TRUE;