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
8f8dbcd8
Commit
8f8dbcd8
authored
Feb 27, 2009
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Feb 27, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spoolss: Implement GetPrinterDriverDirectoryW.
parent
333b3a93
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
1 deletion
+56
-1
router.c
dlls/spoolss/router.c
+55
-0
spoolss.spec
dlls/spoolss/spoolss.spec
+1
-1
No files found.
dlls/spoolss/router.c
View file @
8f8dbcd8
...
@@ -399,3 +399,58 @@ BOOL WINAPI EnumPortsW(LPWSTR pName, DWORD Level, LPBYTE pPorts, DWORD cbBuf,
...
@@ -399,3 +399,58 @@ BOOL WINAPI EnumPortsW(LPWSTR pName, DWORD Level, LPBYTE pPorts, DWORD cbBuf,
return
(
res
==
ROUTER_SUCCESS
);
return
(
res
==
ROUTER_SUCCESS
);
}
}
/******************************************************************
* GetPrinterDriverDirectoryW (spoolss.@)
*
* Return the PATH for the Printer-Drivers
*
* PARAMS
* pName [I] Servername or NULL (local Computer)
* pEnvironment [I] Printing-Environment or NULL (Default)
* Level [I] Structure-Level (must be 1)
* pDriverDirectory [O] PTR to Buffer that receives the Result
* cbBuf [I] Size of Buffer at pDriverDirectory
* pcbNeeded [O] PTR to DWORD that receives the size in Bytes used /
* required for pDriverDirectory
*
* RETURNS
* Success: TRUE and in pcbNeeded the Bytes used in pDriverDirectory
* Failure: FALSE and in pcbNeeded the Bytes required for pDriverDirectory,
* if cbBuf is too small
*
* Native Values returned in pDriverDirectory on Success:
*| NT(Windows NT x86): "%winsysdir%\\spool\\DRIVERS\\w32x86"
*| NT(Windows x64): "%winsysdir%\\spool\\DRIVERS\\x64"
*| NT(Windows 4.0): "%winsysdir%\\spool\\DRIVERS\\win40"
*| win9x(Windows 4.0): "%winsysdir%"
*
* "%winsysdir%" is the Value from GetSystemDirectoryW()
*
*/
BOOL
WINAPI
GetPrinterDriverDirectoryW
(
LPWSTR
pName
,
LPWSTR
pEnvironment
,
DWORD
Level
,
LPBYTE
pDriverDirectory
,
DWORD
cbBuf
,
LPDWORD
pcbNeeded
)
{
backend_t
*
pb
;
DWORD
res
=
ROUTER_UNKNOWN
;
TRACE
(
"(%s, %s, %d, %p, %d, %p)
\n
"
,
debugstr_w
(
pName
),
debugstr_w
(
pEnvironment
),
Level
,
pDriverDirectory
,
cbBuf
,
pcbNeeded
);
if
(
pcbNeeded
)
*
pcbNeeded
=
0
;
pb
=
backend_first
(
pName
);
if
(
pb
&&
pb
->
fpGetPrinterDriverDirectory
)
res
=
pb
->
fpGetPrinterDriverDirectory
(
pName
,
pEnvironment
,
Level
,
pDriverDirectory
,
cbBuf
,
pcbNeeded
);
else
{
SetLastError
(
ERROR_PROC_NOT_FOUND
);
}
TRACE
(
"got %u with %u (%u byte)
\n
"
,
res
,
GetLastError
(),
pcbNeeded
?
*
pcbNeeded
:
0
);
return
(
res
==
ROUTER_SUCCESS
);
}
dlls/spoolss/spoolss.spec
View file @
8f8dbcd8
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
@ stub GetPrintProcessorDirectoryW
@ stub GetPrintProcessorDirectoryW
@ stub GetPrinterDataExW
@ stub GetPrinterDataExW
@ stub GetPrinterDataW
@ stub GetPrinterDataW
@ st
ub GetPrinterDriverDirectoryW
@ st
dcall GetPrinterDriverDirectoryW(wstr wstr long ptr long ptr)
@ stub GetPrinterDriverExW
@ stub GetPrinterDriverExW
@ stub GetPrinterDriverW
@ stub GetPrinterDriverW
@ stub GetPrinterW
@ stub GetPrinterW
...
...
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