Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
29873b7e
Commit
29873b7e
authored
Oct 03, 2007
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Oct 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localspl: Implement InitializePrintProvidor.
parent
cf122bab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
2 deletions
+36
-2
localspl.spec
dlls/localspl/localspl.spec
+1
-1
localspl_main.c
dlls/localspl/localspl_main.c
+35
-1
No files found.
dlls/localspl/localspl.spec
View file @
29873b7e
...
...
@@ -4,7 +4,7 @@
@ stub GetPrintProcessorCapabilities
@ stdcall InitializePrintMonitor(wstr)
# "Providor" is no typo here
@ st
ub InitializePrintProvidor
@ st
dcall InitializePrintProvidor(ptr long wstr)
@ stub OpenPrintProcessor
@ stub PrintDocumentOnPrintProcessor
@ stub PrintProcLogEvent
...
...
dlls/localspl/localspl_main.c
View file @
29873b7e
...
...
@@ -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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment