Detlef Riekenberg : localspl: Implement InitializePrintProvidor.
Alexandre Julliard
julliard at winehq.org
Thu Oct 4 06:21:02 CDT 2007
Module: wine
Branch: master
Commit: 29873b7e06bbee71f0ae4bc0eeaa57e6be95135a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=29873b7e06bbee71f0ae4bc0eeaa57e6be95135a
Author: Detlef Riekenberg <wine.dev at web.de>
Date: Wed Oct 3 01:07:43 2007 +0200
localspl: Implement InitializePrintProvidor.
---
dlls/localspl/localspl.spec | 2 +-
dlls/localspl/localspl_main.c | 36 +++++++++++++++++++++++++++++++++++-
2 files changed, 36 insertions(+), 2 deletions(-)
diff --git a/dlls/localspl/localspl.spec b/dlls/localspl/localspl.spec
index b9fc06d..651d20d 100644
--- a/dlls/localspl/localspl.spec
+++ b/dlls/localspl/localspl.spec
@@ -4,7 +4,7 @@
@ stub GetPrintProcessorCapabilities
@ stdcall InitializePrintMonitor(wstr)
# "Providor" is no typo here
-@ stub InitializePrintProvidor
+@ stdcall InitializePrintProvidor(ptr long wstr)
@ stub OpenPrintProcessor
@ stub PrintDocumentOnPrintProcessor
@ stub PrintProcLogEvent
diff --git a/dlls/localspl/localspl_main.c b/dlls/localspl/localspl_main.c
index 800d1c5..3585c34 100644
--- a/dlls/localspl/localspl_main.c
+++ b/dlls/localspl/localspl_main.c
@@ -26,7 +26,9 @@
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
-#include "winuser.h"
+#include "winreg.h"
+#include "winspool.h"
+#include "ddk/winsplp.h"
#include "wine/debug.h"
#include "localspl_private.h"
@@ -54,3 +56,35 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
}
return TRUE;
}
+
+
+/*****************************************************
+ * InitializePrintProvidor (localspl.@)
+ *
+ * Initialize the Printprovider
+ *
+ * PARAMS
+ * pPrintProvidor [I] Buffer to fill with a struct PRINTPROVIDOR
+ * cbPrintProvidor [I] Size of Buffer in Bytes
+ * pFullRegistryPath [I] Registry-Path for the Printprovidor
+ *
+ * RETURNS
+ * Success: TRUE and pPrintProvidor filled
+ * Failure: FALSE
+ *
+ * NOTES
+ * The RegistryPath should be:
+ * "System\CurrentControlSet\Control\Print\Providers\<providername>",
+ * but this Parameter is ignored in "localspl.dll".
+ *
+ */
+
+BOOL WINAPI InitializePrintProvidor(LPPRINTPROVIDOR pPrintProvidor,
+ DWORD cbPrintProvidor, LPWSTR pFullRegistryPath)
+{
+
+ TRACE("(%p, %u, %s)\n", pPrintProvidor, cbPrintProvidor, debugstr_w(pFullRegistryPath));
+ ZeroMemory(pPrintProvidor, (cbPrintProvidor < sizeof(PRINTPROVIDOR)) ? cbPrintProvidor : sizeof(PRINTPROVIDOR));
+
+ return TRUE;
+}
More information about the wine-cvs
mailing list