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
79aac9fa
Commit
79aac9fa
authored
Apr 05, 2012
by
Huw Davies
Committed by
Alexandre Julliard
Apr 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool: Implement SetPrinterW for level 9.
parent
607b5d77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
10 deletions
+41
-10
info.c
dlls/winspool.drv/info.c
+41
-10
No files found.
dlls/winspool.drv/info.c
View file @
79aac9fa
...
...
@@ -2243,16 +2243,6 @@ BOOL WINAPI DeletePortW (LPWSTR pName, HWND hWnd, LPWSTR pPortName)
}
/******************************************************************************
* SetPrinterW [WINSPOOL.@]
*/
BOOL
WINAPI
SetPrinterW
(
HANDLE
hPrinter
,
DWORD
Level
,
LPBYTE
pPrinter
,
DWORD
Command
)
{
FIXME
(
"(%p, %d, %p, %d): stub
\n
"
,
hPrinter
,
Level
,
pPrinter
,
Command
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
}
/******************************************************************************
* WritePrinter [WINSPOOL.@]
*/
BOOL
WINAPI
WritePrinter
(
HANDLE
hPrinter
,
LPVOID
pBuf
,
DWORD
cbBuf
,
LPDWORD
pcWritten
)
...
...
@@ -2869,6 +2859,47 @@ BOOL WINAPI SetPrinterA( HANDLE printer, DWORD level, LPBYTE data, DWORD command
return
ret
;
}
static
BOOL
set_printer_9
(
HKEY
key
,
const
PRINTER_INFO_9W
*
pi
)
{
if
(
!
pi
->
pDevMode
)
return
FALSE
;
set_reg_devmode
(
key
,
Default_DevModeW
,
pi
->
pDevMode
);
return
TRUE
;
}
/******************************************************************************
* SetPrinterW [WINSPOOL.@]
*/
BOOL
WINAPI
SetPrinterW
(
HANDLE
printer
,
DWORD
level
,
LPBYTE
data
,
DWORD
command
)
{
HKEY
key
;
BOOL
ret
=
FALSE
;
TRACE
(
"(%p, %d, %p, %d)
\n
"
,
printer
,
level
,
data
,
command
);
if
(
command
!=
0
)
FIXME
(
"Ignoring command %d
\n
"
,
command
);
if
(
WINSPOOL_GetOpenedPrinterRegKey
(
printer
,
&
key
))
return
FALSE
;
switch
(
level
)
{
case
9
:
{
PRINTER_INFO_9W
*
pi
=
(
PRINTER_INFO_9W
*
)
data
;
ret
=
set_printer_9
(
key
,
pi
);
break
;
}
default:
FIXME
(
"Unimplemented level %d
\n
"
,
level
);
SetLastError
(
ERROR_INVALID_LEVEL
);
}
RegCloseKey
(
key
);
return
ret
;
}
/*****************************************************************************
* SetJobA [WINSPOOL.@]
*/
...
...
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