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
5104db3d
Commit
5104db3d
authored
Mar 01, 2009
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Mar 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spoolss: Implement AddPrinterDriverExW.
parent
393c3817
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
1 deletion
+41
-1
router.c
dlls/spoolss/router.c
+40
-0
spoolss.spec
dlls/spoolss/spoolss.spec
+1
-1
No files found.
dlls/spoolss/router.c
View file @
5104db3d
...
@@ -355,6 +355,46 @@ BOOL WINAPI AddMonitorW(LPWSTR pName, DWORD Level, LPBYTE pMonitors)
...
@@ -355,6 +355,46 @@ BOOL WINAPI AddMonitorW(LPWSTR pName, DWORD Level, LPBYTE pMonitors)
}
}
/******************************************************************
/******************************************************************
* AddPrinterDriverExW (spoolss.@)
*
* Install a Printer Driver with the Option to upgrade / downgrade the Files
*
* PARAMS
* pName [I] Servername or NULL (local Computer)
* level [I] Level for the supplied DRIVER_INFO_*W struct
* pDriverInfo [I] PTR to DRIVER_INFO_*W struct with the Driver Parameter
* dwFileCopyFlags [I] How to Copy / Upgrade / Downgrade the needed Files
*
* RESULTS
* Success: TRUE
* Failure: FALSE
*
*/
BOOL
WINAPI
AddPrinterDriverExW
(
LPWSTR
pName
,
DWORD
level
,
LPBYTE
pDriverInfo
,
DWORD
dwFileCopyFlags
)
{
backend_t
*
pb
;
DWORD
res
=
ROUTER_UNKNOWN
;
TRACE
(
"(%s, %d, %p, 0x%x)
\n
"
,
debugstr_w
(
pName
),
level
,
pDriverInfo
,
dwFileCopyFlags
);
if
(
!
pDriverInfo
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
pb
=
backend_first
(
pName
);
if
(
pb
&&
pb
->
fpAddPrinterDriverEx
)
res
=
pb
->
fpAddPrinterDriverEx
(
pName
,
level
,
pDriverInfo
,
dwFileCopyFlags
);
else
{
SetLastError
(
ERROR_PROC_NOT_FOUND
);
}
TRACE
(
"got %u with %u
\n
"
,
res
,
GetLastError
());
return
(
res
==
ROUTER_SUCCESS
);
}
/******************************************************************
* DeleteMonitorW (spoolss.@)
* DeleteMonitorW (spoolss.@)
*
*
* Delete a specific Printmonitor from a Printing-Environment
* Delete a specific Printmonitor from a Printing-Environment
...
...
dlls/spoolss/spoolss.spec
View file @
5104db3d
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
@ stub AddPrintProcessorW
@ stub AddPrintProcessorW
@ stub AddPrintProvidorW
@ stub AddPrintProvidorW
@ stub AddPrinterConnectionW
@ stub AddPrinterConnectionW
@ st
ub AddPrinterDriverExW
@ st
dcall AddPrinterDriverExW(wstr long ptr long)
@ stub AddPrinterDriverW
@ stub AddPrinterDriverW
@ stub AddPrinterExW
@ stub AddPrinterExW
@ stub AddPrinterW
@ stub AddPrinterW
...
...
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