localspl: Start implementation of InitializePrintMonitor.

This commit is contained in:
Detlef Riekenberg 2006-09-27 23:22:33 +02:00 committed by Alexandre Julliard
parent a981d9c361
commit 26c5839d61
3 changed files with 71 additions and 11 deletions

View File

@ -6,6 +6,7 @@ MODULE = localspl.dll
IMPORTS = kernel32
C_SRCS = \
localmon.c \
localspl_main.c
@MAKE_DLL_RULES@

70
dlls/localspl/localmon.c Normal file
View File

@ -0,0 +1,70 @@
/*
* Implementation of the Local Printmonitor
*
* Copyright 2006 Detlef Riekenberg
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#define COBJMACROS
#define NONAMELESSUNION
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "winreg.h"
#include "winver.h"
#include "winnls.h"
#include "winspool.h"
#include "ddk/winsplp.h"
#include "wine/unicode.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(localspl);
/*****************************************************
* InitializePrintMonitor (LOCALSPL.@)
*
* Initialize the Monitor for the Local Ports
*
* PARAMS
* regroot [I] Registry-Path, where the settings are stored
*
* RETURNS
* Success: Pointer to a MONITOREX Structure
* Failure: NULL
*
* NOTES
* Native localspl.dll fails, when the Section "Ports" is missing in "win.ini".
*
*/
LPMONITOREX WINAPI InitializePrintMonitor(LPWSTR regroot)
{
FIXME("(%s) stub\n", debugstr_w(regroot));
if (!regroot || !regroot[0]) {
SetLastError(ERROR_INVALID_PARAMETER);
return NULL;
}
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return NULL;
}

View File

@ -58,14 +58,3 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
}
return TRUE;
}
/*****************************************************
* InitializePrintMonitor (LOCALSPL.@)
*/
LPMONITOREX WINAPI InitializePrintMonitor(LPWSTR regroot)
{
FIXME("(%s) stub\n", debugstr_w(regroot));
return NULL;
}