Commit 3c287f20 authored by Detlef Riekenberg's avatar Detlef Riekenberg Committed by Alexandre Julliard

localspl: Implement ConfigurePort.

parent a3722bf4
...@@ -49,6 +49,24 @@ static const WCHAR WinNT_CV_PortsW[] = {'S','o','f','t','w','a','r','e','\\', ...@@ -49,6 +49,24 @@ static const WCHAR WinNT_CV_PortsW[] = {'S','o','f','t','w','a','r','e','\\',
'P','o','r','t','s',0}; 'P','o','r','t','s',0};
/****************************************************************** /******************************************************************
* display the Dialog "Nothing to configure"
*
*/
static void dlg_nothingtoconfig(HWND hWnd)
{
WCHAR res_PortW[IDS_LOCALPORT_MAXLEN];
WCHAR res_nothingW[IDS_NOTHINGTOCONFIG_MAXLEN];
res_PortW[0] = '\0';
res_nothingW[0] = '\0';
LoadStringW(LOCALSPL_hInstance, IDS_LOCALPORT, res_PortW, IDS_LOCALPORT_MAXLEN);
LoadStringW(LOCALSPL_hInstance, IDS_NOTHINGTOCONFIG, res_nothingW, IDS_NOTHINGTOCONFIG_MAXLEN);
MessageBoxW(hWnd, res_nothingW, res_PortW, MB_OK | MB_ICONINFORMATION);
}
/******************************************************************
* enumerate the local Ports from the Registry (internal) * enumerate the local Ports from the Registry (internal)
* *
* See localmon_EnumPortsW. * See localmon_EnumPortsW.
...@@ -155,6 +173,30 @@ getports_cleanup: ...@@ -155,6 +173,30 @@ getports_cleanup:
} }
/***************************************************** /*****************************************************
* localmon_ConfigurePortW [exported through MONITOREX]
*
* Display the Configuration-Dialog for a specific Port
*
* PARAMS
* pName [I] Servername or NULL (local Computer)
* hWnd [I] Handle to parent Window for the Dialog-Box
* pPortName [I] Name of the Port, that should be configured
*
* RETURNS
* Success: TRUE
* Failure: FALSE
*
*/
BOOL WINAPI localmon_ConfigurePortW(LPWSTR pName, HWND hWnd, LPWSTR pPortName)
{
TRACE("(%s, %p, %s)\n", debugstr_w(pName), hWnd, debugstr_w(pPortName));
/* ToDo: Dialogs by Portname ("LPTx:", "COMx:") */
dlg_nothingtoconfig(hWnd);
return ROUTER_SUCCESS;
}
/*****************************************************
* localmon_EnumPortsW [exported through MONITOREX] * localmon_EnumPortsW [exported through MONITOREX]
* *
* Enumerate all local Ports * Enumerate all local Ports
...@@ -238,7 +280,17 @@ LPMONITOREX WINAPI InitializePrintMonitor(LPWSTR regroot) ...@@ -238,7 +280,17 @@ LPMONITOREX WINAPI InitializePrintMonitor(LPWSTR regroot)
{ {
sizeof(MONITOREX) - sizeof(DWORD), sizeof(MONITOREX) - sizeof(DWORD),
{ {
localmon_EnumPortsW localmon_EnumPortsW,
NULL, /* localmon_OpenPortW */
NULL, /* localmon_OpenPortExW */
NULL, /* localmon_StartDocPortW */
NULL, /* localmon_WritePortW */
NULL, /* localmon_ReadPortW */
NULL, /* localmon_EndDocPortW */
NULL, /* localmon_ClosePortW */
NULL, /* localmon_AddPortW */
NULL, /* localmon_AddPortExW */
localmon_ConfigurePortW
} }
}; };
......
...@@ -28,5 +28,11 @@ extern HINSTANCE LOCALSPL_hInstance; ...@@ -28,5 +28,11 @@ extern HINSTANCE LOCALSPL_hInstance;
/* ## Resource-ID ## */ /* ## Resource-ID ## */
#define IDS_LOCALPORT 500 #define IDS_LOCALPORT 500
#define IDS_LOCALMONITOR 507 #define IDS_LOCALMONITOR 507
#define IDS_NOTHINGTOCONFIG 508
/* ## Reserved memorysize for the strings (in WCHAR) ## */
#define IDS_LOCALMONITOR_MAXLEN 64
#define IDS_LOCALPORT_MAXLEN 32
#define IDS_NOTHINGTOCONFIG_MAXLEN 80
#endif /* __WINE_LOCALSPL_PRIVATE__ */ #endif /* __WINE_LOCALSPL_PRIVATE__ */
...@@ -23,6 +23,7 @@ LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL ...@@ -23,6 +23,7 @@ LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
STRINGTABLE DISCARDABLE STRINGTABLE DISCARDABLE
{ {
IDS_LOCALPORT "Lokaler Anschluß" IDS_LOCALPORT "Lokaler Anschluss"
IDS_LOCALMONITOR "Lokaler Monitor" IDS_LOCALMONITOR "Lokaler Monitor"
IDS_NOTHINGTOCONFIG "Dieser Anschluss hat keine Optionen zum Konfigurieren"
} }
...@@ -25,4 +25,5 @@ STRINGTABLE DISCARDABLE ...@@ -25,4 +25,5 @@ STRINGTABLE DISCARDABLE
{ {
IDS_LOCALPORT "Local Port" IDS_LOCALPORT "Local Port"
IDS_LOCALMONITOR "Local Monitor" IDS_LOCALMONITOR "Local Monitor"
IDS_NOTHINGTOCONFIG "This port has no options to configure"
} }
...@@ -26,4 +26,5 @@ STRINGTABLE DISCARDABLE ...@@ -26,4 +26,5 @@ STRINGTABLE DISCARDABLE
{ {
IDS_LOCALPORT "Áö¿ª Æ÷Æ®" IDS_LOCALPORT "Áö¿ª Æ÷Æ®"
IDS_LOCALMONITOR "Áö¿ª ¸ð´ÏÅÍ" IDS_LOCALMONITOR "Áö¿ª ¸ð´ÏÅÍ"
IDS_NOTHINGTOCONFIG "This port has no options to configure"
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment