2 * Implementation of the Local Printmonitor User Interface
4 * Copyright 2007 Detlef Riekenberg
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
23 #define NONAMELESSUNION
31 #include "ddk/winsplp.h"
33 #include "wine/debug.h"
35 WINE_DEFAULT_DEBUG_CHANNEL(localui);
37 static HINSTANCE LOCALUI_hInstance;
39 /*****************************************************
40 * localui_AddPortUI [exported through MONITORUI]
42 * Display a Dialog to add a local Port
45 * pName [I] Servername or NULL (local Computer)
46 * hWnd [I] Handle to parent Window for the Dialog-Box or NULL
47 * pMonitorName[I] Name of the Monitor, that should be used to add a Port or NULL
48 * ppPortName [O] PTR to PTR of a buffer, that receive the Name of the new Port or NULL
55 static BOOL WINAPI localui_AddPortUI(PCWSTR pName, HWND hWnd, PCWSTR pMonitorName, PWSTR *ppPortName)
57 FIXME("(%s, %p, %s, %p) stub\n", debugstr_w(pName), hWnd, debugstr_w(pMonitorName), ppPortName);
62 /*****************************************************
63 * localui_ConfigurePortUI [exported through MONITORUI]
65 * Display the Configuration-Dialog for a specific Port
68 * pName [I] Servername or NULL (local Computer)
69 * hWnd [I] Handle to parent Window for the Dialog-Box or NULL
70 * pPortName [I] Name of the Port, that should be configured
77 static BOOL WINAPI localui_ConfigurePortUI(PCWSTR pName, HWND hWnd, PCWSTR pPortName)
79 FIXME("(%s, %p, %s) stub\n", debugstr_w(pName), hWnd, debugstr_w(pPortName));
83 /*****************************************************
84 * localui_DeletePortUI [exported through MONITORUI]
86 * Delete a specific Port
89 * pName [I] Servername or NULL (local Computer)
90 * hWnd [I] Handle to parent Window
91 * pPortName [I] Name of the Port, that should be deleted
98 static BOOL WINAPI localui_DeletePortUI(PCWSTR pName, HWND hWnd, PCWSTR pPortName)
100 FIXME("(%s, %p, %s) stub\n", debugstr_w(pName), hWnd, debugstr_w(pPortName));
104 /*****************************************************
105 * InitializePrintMonitorUI (LOCALUI.@)
107 * Initialize the User-Interface for the Local Ports
110 * Success: Pointer to a MONITORUI Structure
115 PMONITORUI WINAPI InitializePrintMonitorUI(void)
117 static MONITORUI mymonitorui =
121 localui_ConfigurePortUI,
125 TRACE("=> %p\n", &mymonitorui);
129 /*****************************************************
132 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
134 TRACE("(%p, %d, %p)\n",hinstDLL, fdwReason, lpvReserved);
138 case DLL_WINE_PREATTACH:
139 return FALSE; /* prefer native version */
141 case DLL_PROCESS_ATTACH:
142 DisableThreadLibraryCalls( hinstDLL );
143 LOCALUI_hInstance = hinstDLL;