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
55a18d7a
Commit
55a18d7a
authored
Apr 19, 2007
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Apr 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localspl: DeletePort is now in localui.dll.
parent
645d76f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
34 deletions
+1
-34
localmon.c
dlls/localspl/localmon.c
+1
-34
No files found.
dlls/localspl/localmon.c
View file @
55a18d7a
...
...
@@ -342,39 +342,6 @@ BOOL WINAPI localmon_ConfigurePortW(LPWSTR pName, HWND hWnd, LPWSTR pPortName)
}
/*****************************************************
* localmon_DeletePortW [exported through MONITOREX]
*
* Delete a specific Port
*
* PARAMS
* pName [I] Servername or NULL (local Computer)
* hWnd [I] Handle to parent Window
* pPortName [I] Name of the Port, that should be deleted
*
* RETURNS
* Success: TRUE
* Failure: FALSE
*
*/
BOOL
WINAPI
localmon_DeletePortW
(
LPWSTR
pName
,
HWND
hWnd
,
LPWSTR
pPortName
)
{
DWORD
res
;
HKEY
hroot
;
TRACE
(
"(%s, %p, %s)
\n
"
,
debugstr_w
(
pName
),
hWnd
,
debugstr_w
(
pPortName
));
if
((
!
pPortName
)
||
(
!
pPortName
[
0
]))
return
FALSE
;
res
=
RegOpenKeyW
(
HKEY_LOCAL_MACHINE
,
WinNT_CV_PortsW
,
&
hroot
);
if
(
res
==
ERROR_SUCCESS
)
{
res
=
RegDeleteValueW
(
hroot
,
pPortName
);
RegCloseKey
(
hroot
);
}
TRACE
(
"=> %d
\n
"
,
(
res
==
ERROR_SUCCESS
));
return
(
res
==
ERROR_SUCCESS
);
}
/*****************************************************
* localmon_EnumPortsW [exported through MONITOREX]
*
* Enumerate all local Ports
...
...
@@ -685,7 +652,7 @@ LPMONITOREX WINAPI InitializePrintMonitor(LPWSTR regroot)
NULL
,
/* localmon_AddPortW */
NULL
,
/* localmon_AddPortExW */
localmon_ConfigurePortW
,
localmon_DeletePortW
,
NULL
,
/* Use DeletePortUI in localui.dll */
NULL
,
/* localmon_GetPrinterDataFromPort */
NULL
,
/* localmon_SetPortTimeOuts */
localmon_XcvOpenPort
,
...
...
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