From 29873b7e06bbee71f0ae4bc0eeaa57e6be95135a Mon Sep 17 00:00:00 2001 From: Detlef Riekenberg Date: Wed, 3 Oct 2007 01:07:43 +0200 Subject: [PATCH] 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 b9fc06da297..651d20d07d0 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 800d1c59ba9..3585c342cd0 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\", + * 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; +} -- 2.11.4.GIT