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
a9c51459
Commit
a9c51459
authored
Sep 28, 2009
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Sep 28, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localspl: Implement fpDeletePort.
parent
6a246a71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
71 additions
and
1 deletion
+71
-1
provider.c
dlls/localspl/provider.c
+71
-1
No files found.
dlls/localspl/provider.c
View file @
a9c51459
...
@@ -1648,6 +1648,76 @@ static BOOL WINAPI fpDeleteMonitor(LPWSTR pName, LPWSTR pEnvironment, LPWSTR pMo
...
@@ -1648,6 +1648,76 @@ static BOOL WINAPI fpDeleteMonitor(LPWSTR pName, LPWSTR pEnvironment, LPWSTR pMo
}
}
/*****************************************************************************
/*****************************************************************************
* fpDeletePort [exported through PRINTPROVIDOR]
*
* Delete a specific Port
*
* PARAMS
* pName [I] Servername or NULL (local Computer)
* hWnd [I] Handle to parent Window for the Dialog-Box
* pPortName [I] Name of the Port, that should be deleted
*
* RETURNS
* Success: TRUE
* Failure: FALSE
*
*/
static
BOOL
WINAPI
fpDeletePort
(
LPWSTR
pName
,
HWND
hWnd
,
LPWSTR
pPortName
)
{
monitor_t
*
pm
;
monitor_t
*
pui
;
LONG
lres
;
DWORD
res
;
TRACE
(
"(%s, %p, %s)
\n
"
,
debugstr_w
(
pName
),
hWnd
,
debugstr_w
(
pPortName
));
lres
=
copy_servername_from_name
(
pName
,
NULL
);
if
(
lres
)
{
FIXME
(
"server %s not supported
\n
"
,
debugstr_w
(
pName
));
SetLastError
(
ERROR_INVALID_NAME
);
return
FALSE
;
}
/* an empty Portname is Invalid */
if
(
!
pPortName
[
0
])
{
SetLastError
(
ERROR_NOT_SUPPORTED
);
return
FALSE
;
}
pm
=
monitor_load_by_port
(
pPortName
);
if
(
pm
&&
pm
->
monitor
&&
pm
->
monitor
->
pfnDeletePort
)
{
TRACE
(
"use %s for %s (monitor %p: %s)
\n
"
,
debugstr_w
(
pm
->
name
),
debugstr_w
(
pPortName
),
pm
,
debugstr_w
(
pm
->
dllname
));
res
=
pm
->
monitor
->
pfnDeletePort
(
pName
,
hWnd
,
pPortName
);
TRACE
(
"got %d with %u
\n
"
,
res
,
GetLastError
());
}
else
{
pui
=
monitor_loadui
(
pm
);
if
(
pui
&&
pui
->
monitorUI
&&
pui
->
monitorUI
->
pfnDeletePortUI
)
{
TRACE
(
"use %s for %s (monitorui %p: %s)
\n
"
,
debugstr_w
(
pui
->
name
),
debugstr_w
(
pPortName
),
pui
,
debugstr_w
(
pui
->
dllname
));
res
=
pui
->
monitorUI
->
pfnDeletePortUI
(
pName
,
hWnd
,
pPortName
);
TRACE
(
"got %d with %u
\n
"
,
res
,
GetLastError
());
}
else
{
FIXME
(
"not implemented for %s (monitor %p: %s / monitorui %p: %s)
\n
"
,
debugstr_w
(
pPortName
),
pm
,
debugstr_w
(
pm
?
pm
->
dllname
:
NULL
),
pui
,
debugstr_w
(
pui
?
pui
->
dllname
:
NULL
));
SetLastError
(
ERROR_NOT_SUPPORTED
);
res
=
FALSE
;
}
monitor_unload
(
pui
);
}
monitor_unload
(
pm
);
TRACE
(
"returning %d with %u
\n
"
,
res
,
GetLastError
());
return
res
;
}
/*****************************************************************************
* fpEnumMonitors [exported through PRINTPROVIDOR]
* fpEnumMonitors [exported through PRINTPROVIDOR]
*
*
* Enumerate available Port-Monitors
* Enumerate available Port-Monitors
...
@@ -1948,7 +2018,7 @@ void setup_provider(void)
...
@@ -1948,7 +2018,7 @@ void setup_provider(void)
fpEnumPorts
,
fpEnumPorts
,
NULL
,
/* fpAddPort */
NULL
,
/* fpAddPort */
fpConfigurePort
,
fpConfigurePort
,
NULL
,
/* fpDeletePort */
fpDeletePort
,
NULL
,
/* fpCreatePrinterIC */
NULL
,
/* fpCreatePrinterIC */
NULL
,
/* fpPlayGdiScriptOnPrinterIC */
NULL
,
/* fpPlayGdiScriptOnPrinterIC */
NULL
,
/* fpDeletePrinterIC */
NULL
,
/* fpDeletePrinterIC */
...
...
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