Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
cb6f9bbd
Commit
cb6f9bbd
authored
Sep 30, 2009
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Sep 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localspl: Implement fpAddPortEx.
parent
52570539
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
65 additions
and
1 deletion
+65
-1
provider.c
dlls/localspl/provider.c
+65
-1
No files found.
dlls/localspl/provider.c
View file @
cb6f9bbd
...
...
@@ -1524,6 +1524,70 @@ static BOOL WINAPI fpAddPort(LPWSTR pName, HWND hWnd, LPWSTR pMonitorName)
}
/******************************************************************************
* fpAddPortEx [exported through PRINTPROVIDOR]
*
* Add a Port for a specific Monitor, without presenting a user interface
*
* PARAMS
* pName [I] Servername or NULL (local Computer)
* level [I] Structure-Level (1 or 2) for pBuffer
* pBuffer [I] PTR to: PORT_INFO_1 or PORT_INFO_2
* pMonitorName [I] Name of the Monitor that manage the Port
*
* RETURNS
* Success: TRUE
* Failure: FALSE
*
*/
static
BOOL
WINAPI
fpAddPortEx
(
LPWSTR
pName
,
DWORD
level
,
LPBYTE
pBuffer
,
LPWSTR
pMonitorName
)
{
PORT_INFO_2W
*
pi2
;
monitor_t
*
pm
;
DWORD
lres
;
DWORD
res
;
pi2
=
(
PORT_INFO_2W
*
)
pBuffer
;
TRACE
(
"(%s, %d, %p, %s): %s %s %s
\n
"
,
debugstr_w
(
pName
),
level
,
pBuffer
,
debugstr_w
(
pMonitorName
),
debugstr_w
(
pi2
?
pi2
->
pPortName
:
NULL
),
debugstr_w
(((
level
>
1
)
&&
pi2
)
?
pi2
->
pMonitorName
:
NULL
),
debugstr_w
(((
level
>
1
)
&&
pi2
)
?
pi2
->
pDescription
:
NULL
));
lres
=
copy_servername_from_name
(
pName
,
NULL
);
if
(
lres
)
{
FIXME
(
"server %s not supported
\n
"
,
debugstr_w
(
pName
));
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
if
((
level
<
1
)
||
(
level
>
2
))
{
SetLastError
(
ERROR_INVALID_LEVEL
);
return
FALSE
;
}
if
((
!
pi2
)
||
(
!
pMonitorName
)
||
(
!
pMonitorName
[
0
]))
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
/* load the Monitor */
pm
=
monitor_load
(
pMonitorName
,
NULL
);
if
(
pm
&&
pm
->
monitor
&&
pm
->
monitor
->
pfnAddPortEx
)
{
res
=
pm
->
monitor
->
pfnAddPortEx
(
pName
,
level
,
pBuffer
,
pMonitorName
);
TRACE
(
"got %d with %u (%s)
\n
"
,
res
,
GetLastError
(),
debugstr_w
(
pm
->
dllname
));
}
else
{
FIXME
(
"not implemented for %s (monitor %p: %s)
\n
"
,
debugstr_w
(
pMonitorName
),
pm
,
pm
?
debugstr_w
(
pm
->
dllname
)
:
NULL
);
SetLastError
(
ERROR_INVALID_PARAMETER
);
res
=
FALSE
;
}
monitor_unload
(
pm
);
return
res
;
}
/******************************************************************************
* fpAddPrinterDriverEx [exported through PRINTPROVIDOR]
*
* Install a Printer Driver with the Option to upgrade / downgrade the Files
...
...
@@ -2098,7 +2162,7 @@ void setup_provider(void)
NULL
,
/* fpGetPrinterDriverEx */
NULL
,
/* fpFindFirstPrinterChangeNotification */
NULL
,
/* fpFindClosePrinterChangeNotification */
NULL
,
/* fpAddPortEx */
fpAddPortEx
,
NULL
,
/* fpShutDown */
NULL
,
/* fpRefreshPrinterChangeNotification */
NULL
,
/* fpOpenPrinterEx */
...
...
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