Detlef Riekenberg : winspool: Implement SpoolerInit.
Alexandre Julliard
julliard at winehq.org
Mon Mar 10 07:16:55 CDT 2008
Module: wine
Branch: master
Commit: 94a878414fed691489a95e23fcd82c5b9fe5bae6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=94a878414fed691489a95e23fcd82c5b9fe5bae6
Author: Detlef Riekenberg <wine.dev at web.de>
Date: Fri Mar 7 23:49:57 2008 +0100
winspool: Implement SpoolerInit.
---
dlls/winspool.drv/info.c | 20 ++++++++++++++++++++
dlls/winspool.drv/winspool.drv.spec | 2 +-
2 files changed, 21 insertions(+), 1 deletions(-)
diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c
index 7622582..d15afca 100644
--- a/dlls/winspool.drv/info.c
+++ b/dlls/winspool.drv/info.c
@@ -7117,6 +7117,26 @@ emW_cleanup:
}
/******************************************************************************
+ * SpoolerInit (WINSPOOL.@)
+ *
+ * Initialize the Spooler
+ *
+ * RETURNS
+ * Success: TRUE
+ * Failure: FALSE
+ *
+ * NOTES
+ * The function fails on windows, when the spooler service is not running
+ *
+ */
+BOOL WINAPI SpoolerInit(void)
+{
+
+ if ((backend == NULL) && !load_backend()) return FALSE;
+ return TRUE;
+}
+
+/******************************************************************************
* XcvDataW (WINSPOOL.@)
*
* Execute commands in the Printmonitor DLL
diff --git a/dlls/winspool.drv/winspool.drv.spec b/dlls/winspool.drv/winspool.drv.spec
index 59af7e7..f5994b8 100644
--- a/dlls/winspool.drv/winspool.drv.spec
+++ b/dlls/winspool.drv/winspool.drv.spec
@@ -167,7 +167,7 @@
@ stdcall SetPrinterDataW(long wstr long ptr long)
@ stdcall SetPrinterW(long long ptr long)
@ stub SpoolerDevQueryPrintW
-@ stub SpoolerInit
+@ stdcall SpoolerInit()
@ stub SpoolerPrinterEvent
@ stdcall StartDocDlgA(ptr ptr)
@ stdcall StartDocDlgW(ptr ptr)
More information about the wine-cvs
mailing list