From 26c5839d61de888882a6732c2f1fc41fd2a5aeff Mon Sep 17 00:00:00 2001 From: Detlef Riekenberg Date: Wed, 27 Sep 2006 23:22:33 +0200 Subject: [PATCH] localspl: Start implementation of InitializePrintMonitor. --- dlls/localspl/Makefile.in | 1 + dlls/localspl/{localspl_main.c => localmon.c} | 41 +++++++++++++-------------- dlls/localspl/localspl_main.c | 11 ------- 3 files changed, 21 insertions(+), 32 deletions(-) copy dlls/localspl/{localspl_main.c => localmon.c} (72%) diff --git a/dlls/localspl/Makefile.in b/dlls/localspl/Makefile.in index 7d80fb783ad..0e741791fb1 100644 --- a/dlls/localspl/Makefile.in +++ b/dlls/localspl/Makefile.in @@ -6,6 +6,7 @@ MODULE = localspl.dll IMPORTS = kernel32 C_SRCS = \ + localmon.c \ localspl_main.c @MAKE_DLL_RULES@ diff --git a/dlls/localspl/localspl_main.c b/dlls/localspl/localmon.c similarity index 72% copy from dlls/localspl/localspl_main.c copy to dlls/localspl/localmon.c index 0bc94f6890f..6665585f32b 100644 --- a/dlls/localspl/localspl_main.c +++ b/dlls/localspl/localmon.c @@ -41,31 +41,30 @@ WINE_DEFAULT_DEBUG_CHANNEL(localspl); /***************************************************** - * DllMain - */ -BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) -{ - TRACE("(%p, %ld, %p)\n",hinstDLL, fdwReason, lpvReserved); - - switch(fdwReason) - { - case DLL_WINE_PREATTACH: - return FALSE; /* prefer native version */ - - case DLL_PROCESS_ATTACH: - DisableThreadLibraryCalls( hinstDLL ); - break; - } - return TRUE; -} - - -/***************************************************** - * InitializePrintMonitor (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; } diff --git a/dlls/localspl/localspl_main.c b/dlls/localspl/localspl_main.c index 0bc94f6890f..48d1efb53b4 100644 --- a/dlls/localspl/localspl_main.c +++ b/dlls/localspl/localspl_main.c @@ -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; -} -- 2.11.4.GIT