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
1bbe8669
Commit
1bbe8669
authored
Dec 06, 2022
by
Piotr Caban
Committed by
Alexandre Julliard
Dec 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps: Add EnumPrintProcessorDatatypesW implementation.
parent
891e2f73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
3 deletions
+31
-3
printproc.c
dlls/wineps.drv/printproc.c
+31
-3
No files found.
dlls/wineps.drv/printproc.c
View file @
1bbe8669
...
...
@@ -31,10 +31,38 @@ WINE_DEFAULT_DEBUG_CHANNEL(psdrv);
BOOL
WINAPI
EnumPrintProcessorDatatypesW
(
WCHAR
*
server
,
WCHAR
*
name
,
DWORD
level
,
BYTE
*
datatypes
,
DWORD
size
,
DWORD
*
needed
,
DWORD
*
no
)
{
FIXME
(
"%s, %s, %ld, %p, %ld, %p, %p
\n
"
,
debugstr_w
(
server
),
debugstr_w
(
name
),
static
const
WCHAR
emf_1003
[]
=
L"NT EMF 1.003"
;
DATATYPES_INFO_1W
*
info
=
(
DATATYPES_INFO_1W
*
)
datatypes
;
TRACE
(
"%s, %s, %ld, %p, %ld, %p, %p
\n
"
,
debugstr_w
(
server
),
debugstr_w
(
name
),
level
,
datatypes
,
size
,
needed
,
no
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
if
(
!
needed
||
!
no
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
*
no
=
0
;
*
needed
=
sizeof
(
*
info
)
+
sizeof
(
emf_1003
);
if
(
level
!=
1
||
(
size
&&
!
datatypes
))
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
if
(
size
<
*
needed
)
{
SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
return
FALSE
;
}
*
no
=
1
;
info
->
pName
=
(
WCHAR
*
)(
info
+
1
);
memcpy
(
info
+
1
,
emf_1003
,
sizeof
(
emf_1003
));
return
TRUE
;
}
HANDLE
WINAPI
OpenPrintProcessor
(
WCHAR
*
port
,
PRINTPROCESSOROPENDATA
*
open_data
)
...
...
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