[PATCH] localspl: Implement InitializePrintProvidor

Detlef Riekenberg wine.dev at web.de
Tue Oct 2 18:07:43 CDT 2007


---
 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..f00de3d 100644
--- a/dlls/localspl/localspl_main.c
+++ b/dlls/localspl/localspl_main.c
@@ -26,7 +26,9 @@ #define NONAMELESSUNION
 #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, 
     }
     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;
+}
-- 
1.4.1


--=-mZR7ME2UbkBZhDl9gCVf--




More information about the wine-patches mailing list