Author: ekohl
Date: Sat Jun 29 19:25:31 2013
New Revision: 59372
URL:
http://svn.reactos.org/svn/reactos?rev=59372&view=rev
Log:
[MSPORTS]
- Add the port settings page for parallel ports.
- Implement ParallelPortPropPageProvider.
Added:
trunk/reactos/dll/win32/msports/parallel.c (with props)
Modified:
trunk/reactos/dll/win32/msports/CMakeLists.txt
trunk/reactos/dll/win32/msports/lang/bg-BG.rc
trunk/reactos/dll/win32/msports/lang/de-DE.rc
trunk/reactos/dll/win32/msports/lang/en-US.rc
trunk/reactos/dll/win32/msports/lang/he-IL.rc
trunk/reactos/dll/win32/msports/lang/pl-PL.rc
trunk/reactos/dll/win32/msports/lang/ro-RO.rc
trunk/reactos/dll/win32/msports/lang/uk-UA.rc
trunk/reactos/dll/win32/msports/msports.spec
trunk/reactos/dll/win32/msports/resource.h
Modified: trunk/reactos/dll/win32/msports/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msports/CMakeLis…
==============================================================================
--- trunk/reactos/dll/win32/msports/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msports/CMakeLists.txt [iso-8859-1] Sat Jun 29 19:25:31 2013
@@ -6,6 +6,7 @@
classinst.c
comdb.c
msports.c
+ parallel.c
serial.c
msports.rc
${CMAKE_CURRENT_BINARY_DIR}/msports_stubs.c
Modified: trunk/reactos/dll/win32/msports/lang/bg-BG.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msports/lang/bg-…
==============================================================================
--- trunk/reactos/dll/win32/msports/lang/bg-BG.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msports/lang/bg-BG.rc [iso-8859-1] Sat Jun 29 19:25:31 2013
@@ -22,3 +22,12 @@
PUSHBUTTON "Раз&ÑиÑени...",IDC_SERIAL_ADVANCED, 111, 130, 65,
14,WS_GROUP
PUSHBUTTON "&ÐÑÑÑане на
под&ÑазбиÑаниÑе",IDC_SERIAL_RESTORE, 180, 130, 65, 14, WS_GROUP
END
+
+
+IDD_PARALLELSETTINGS DIALOGEX DISCARDABLE 0, 0, 252, 218
+STYLE DS_SHELLFONT | WS_CHILD | WS_DISABLED | WS_CAPTION
+CAPTION "ÐаÑÑÑойки на излаза (поÑÑа)"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ RTEXT "TEST", -1, 74, 19, 62, 8, WS_GROUP
+END
Modified: trunk/reactos/dll/win32/msports/lang/de-DE.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msports/lang/de-…
==============================================================================
--- trunk/reactos/dll/win32/msports/lang/de-DE.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msports/lang/de-DE.rc [iso-8859-1] Sat Jun 29 19:25:31 2013
@@ -1,4 +1,4 @@
-
+
LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
IDD_SERIALSETTINGS DIALOGEX DISCARDABLE 0, 0, 252, 218
@@ -19,3 +19,12 @@
PUSHBUTTON "&Erweitert...",IDC_SERIAL_ADVANCED, 111, 130, 65,
14,WS_GROUP
PUSHBUTTON "Wieder&herstellen",IDC_SERIAL_RESTORE, 180, 130, 65, 14,
WS_GROUP
END
+
+
+IDD_PARALLELSETTINGS DIALOGEX DISCARDABLE 0, 0, 252, 218
+STYLE DS_SHELLFONT | WS_CHILD | WS_DISABLED | WS_CAPTION
+CAPTION "Port Einstellungen"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ RTEXT "TEST", -1, 74, 19, 62, 8, WS_GROUP
+END
Modified: trunk/reactos/dll/win32/msports/lang/en-US.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msports/lang/en-…
==============================================================================
--- trunk/reactos/dll/win32/msports/lang/en-US.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msports/lang/en-US.rc [iso-8859-1] Sat Jun 29 19:25:31 2013
@@ -19,3 +19,12 @@
PUSHBUTTON "&Advanced...",IDC_SERIAL_ADVANCED, 111, 130, 65,
14,WS_GROUP
PUSHBUTTON "&Restore Defaults",IDC_SERIAL_RESTORE, 180, 130, 65, 14,
WS_GROUP
END
+
+
+IDD_PARALLELSETTINGS DIALOGEX DISCARDABLE 0, 0, 252, 218
+STYLE DS_SHELLFONT | WS_CHILD | WS_DISABLED | WS_CAPTION
+CAPTION "Port Settings"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ RTEXT "TEST", -1, 74, 19, 62, 8, WS_GROUP
+END
Modified: trunk/reactos/dll/win32/msports/lang/he-IL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msports/lang/he-…
==============================================================================
--- trunk/reactos/dll/win32/msports/lang/he-IL.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msports/lang/he-IL.rc [iso-8859-1] Sat Jun 29 19:25:31 2013
@@ -19,3 +19,12 @@
PUSHBUTTON "×תק××...",IDC_SERIAL_ADVANCED, 111, 130, 65, 14,WS_GROUP
PUSHBUTTON "ש××ר ×ר×רת ××××",IDC_SERIAL_RESTORE, 180, 130, 65,
14, WS_GROUP
END
+
+
+IDD_PARALLELSETTINGS DIALOGEX DISCARDABLE 0, 0, 252, 218
+STYLE DS_SHELLFONT | WS_CHILD | WS_DISABLED | WS_CAPTION
+CAPTION "×××ר×ת ×צ×××"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ RTEXT "TEST", -1, 74, 19, 62, 8, WS_GROUP
+END
Modified: trunk/reactos/dll/win32/msports/lang/pl-PL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msports/lang/pl-…
==============================================================================
--- trunk/reactos/dll/win32/msports/lang/pl-PL.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msports/lang/pl-PL.rc [iso-8859-1] Sat Jun 29 19:25:31 2013
@@ -26,3 +26,12 @@
PUSHBUTTON "&Zaawansowane...",IDC_SERIAL_ADVANCED, 111, 130, 65,
14,WS_GROUP
PUSHBUTTON "P&rzywrÃ³Ä domyÅlne",IDC_SERIAL_RESTORE, 180, 130, 65,
14, WS_GROUP
END
+
+
+IDD_PARALLELSETTINGS DIALOGEX DISCARDABLE 0, 0, 252, 218
+STYLE DS_SHELLFONT | WS_CHILD | WS_DISABLED | WS_CAPTION
+CAPTION "Ustawienia portu"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ RTEXT "TEST", -1, 74, 19, 62, 8, WS_GROUP
+END
Modified: trunk/reactos/dll/win32/msports/lang/ro-RO.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msports/lang/ro-…
==============================================================================
--- trunk/reactos/dll/win32/msports/lang/ro-RO.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msports/lang/ro-RO.rc [iso-8859-1] Sat Jun 29 19:25:31 2013
@@ -25,3 +25,12 @@
PUSHBUTTON "A&vansateâ¦", IDC_SERIAL_ADVANCED, 111, 130,
65, 14,WS_GROUP
PUSHBUTTON "Valori i&mplicite", IDC_SERIAL_RESTORE, 180, 130, 65,
14, WS_GROUP
END
+
+
+IDD_PARALLELSETTINGS DIALOGEX DISCARDABLE 0, 0, 252, 218
+STYLE DS_SHELLFONT | WS_CHILD | WS_DISABLED | WS_CAPTION
+CAPTION "ConfiguraÈia portului"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ RTEXT "TEST", -1, 74, 19, 62, 8, WS_GROUP
+END
Modified: trunk/reactos/dll/win32/msports/lang/uk-UA.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msports/lang/uk-…
==============================================================================
--- trunk/reactos/dll/win32/msports/lang/uk-UA.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msports/lang/uk-UA.rc [iso-8859-1] Sat Jun 29 19:25:31 2013
@@ -26,3 +26,12 @@
PUSHBUTTON "&РозÑиÑенÑ...",IDC_SERIAL_ADVANCED, 111, 130, 65,
14,WS_GROUP
PUSHBUTTON "&Ðа замовÑÑваннÑм",IDC_SERIAL_RESTORE, 180,
130, 65, 14, WS_GROUP
END
+
+
+IDD_PARALLELSETTINGS DIALOGEX DISCARDABLE 0, 0, 252, 218
+STYLE DS_SHELLFONT | WS_CHILD | WS_DISABLED | WS_CAPTION
+CAPTION "ÐаÑамеÑÑи поÑÑÑ"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ RTEXT "TEST", -1, 74, 19, 62, 8, WS_GROUP
+END
Modified: trunk/reactos/dll/win32/msports/msports.spec
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msports/msports.…
==============================================================================
--- trunk/reactos/dll/win32/msports/msports.spec [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msports/msports.spec [iso-8859-1] Sat Jun 29 19:25:31 2013
@@ -6,7 +6,7 @@
@ stdcall ComDBReleasePort(ptr long)
@ stdcall ComDBResizeDatabase(ptr long)
@ stdcall LibMain(ptr long ptr) DllMain
-@ stub ParallelPortPropPageProvider
+@ stdcall ParallelPortPropPageProvider(ptr ptr long)
@ stdcall PortsClassInstaller(long ptr ptr)
@ stub SerialDisplayAdvancedSettings
@ stdcall SerialPortPropPageProvider(ptr ptr long)
Added: trunk/reactos/dll/win32/msports/parallel.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msports/parallel…
==============================================================================
--- trunk/reactos/dll/win32/msports/parallel.c (added)
+++ trunk/reactos/dll/win32/msports/parallel.c [iso-8859-1] Sat Jun 29 19:25:31 2013
@@ -0,0 +1,89 @@
+/*
+ * PROJECT: Ports installer library
+ * LICENSE: GPL - See COPYING in the top level directory
+ * FILE: dll\win32\msports\parallel.c
+ * PURPOSE: Parallel Port property functions
+ * COPYRIGHT: Copyright 2013 Eric Kohl
+ */
+
+#include "precomp.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(msports);
+
+
+static
+BOOL
+OnInitDialog(HWND hwnd,
+ WPARAM wParam,
+ LPARAM lParam)
+{
+ TRACE("Port_OnInit()\n");
+ return TRUE;
+}
+
+
+static
+INT_PTR
+CALLBACK
+ParallelSettingsDlgProc(HWND hwnd,
+ UINT uMsg,
+ WPARAM wParam,
+ LPARAM lParam)
+{
+ TRACE("ParallelSettingsDlgProc()\n");
+
+ switch (uMsg)
+ {
+ case WM_INITDIALOG:
+ return OnInitDialog(hwnd, wParam, lParam);
+ }
+
+ return FALSE;
+}
+
+
+BOOL
+WINAPI
+ParallelPortPropPageProvider(PSP_PROPSHEETPAGE_REQUEST lpPropSheetPageRequest,
+ LPFNADDPROPSHEETPAGE lpfnAddPropSheetPageProc,
+ LPARAM lParam)
+{
+ PROPSHEETPAGEW PropSheetPage;
+ HPROPSHEETPAGE hPropSheetPage;
+
+ TRACE("ParallelPortPropPageProvider(%p %p %lx)\n",
+ lpPropSheetPageRequest, lpfnAddPropSheetPageProc, lParam);
+
+ if (lpPropSheetPageRequest->PageRequested == SPPSR_ENUM_ADV_DEVICE_PROPERTIES)
+ {
+ TRACE("SPPSR_ENUM_ADV_DEVICE_PROPERTIES\n");
+
+ PropSheetPage.dwSize = sizeof(PROPSHEETPAGEW);
+ PropSheetPage.dwFlags = 0;
+ PropSheetPage.hInstance = hInstance;
+ PropSheetPage.pszTemplate = MAKEINTRESOURCE(IDD_PARALLELSETTINGS);
+ PropSheetPage.pfnDlgProc = ParallelSettingsDlgProc;
+ PropSheetPage.lParam = 0;
+ PropSheetPage.pfnCallback = NULL;
+
+ hPropSheetPage = CreatePropertySheetPageW(&PropSheetPage);
+ if (hPropSheetPage == NULL)
+ {
+ TRACE("CreatePropertySheetPageW() failed!\n");
+ return FALSE;
+ }
+
+ if (!(*lpfnAddPropSheetPageProc)(hPropSheetPage, lParam))
+ {
+ TRACE("lpfnAddPropSheetPageProc() failed!\n");
+ DestroyPropertySheetPage(hPropSheetPage);
+ return FALSE;
+ }
+ }
+
+ TRACE("Done!\n");
+
+ return TRUE;
+}
+
+/* EOF */
Propchange: trunk/reactos/dll/win32/msports/parallel.c
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/reactos/dll/win32/msports/resource.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msports/resource…
==============================================================================
--- trunk/reactos/dll/win32/msports/resource.h [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msports/resource.h [iso-8859-1] Sat Jun 29 19:25:31 2013
@@ -8,3 +8,5 @@
#define IDC_SERIAL_FLOWCONTROL 205
#define IDC_SERIAL_ADVANCED 206
#define IDC_SERIAL_RESTORE 207
+
+#define IDD_PARALLELSETTINGS 220