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
bcfa90e1
Commit
bcfa90e1
authored
Nov 28, 2006
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Nov 29, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool: Implement DeletePortA.
parent
c587d1ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
6 deletions
+26
-6
info.c
dlls/winspool.drv/info.c
+26
-6
No files found.
dlls/winspool.drv/info.c
View file @
bcfa90e1
...
...
@@ -2147,13 +2147,33 @@ BOOL WINAPI DeleteMonitorW (LPWSTR pName, LPWSTR pEnvironment, LPWSTR pMonitorNa
* See DeletePortW.
*
*/
BOOL
WINAPI
DeletePortA
(
LPSTR
pName
,
HWND
hWnd
,
LPSTR
pPortName
)
BOOL
WINAPI
DeletePortA
(
LPSTR
pName
,
HWND
hWnd
,
LPSTR
pPortName
)
{
FIXME
(
"(%s,%p,%s):stub
\n
"
,
debugstr_a
(
pName
),
hWnd
,
debugstr_a
(
pPortName
));
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
LPWSTR
nameW
=
NULL
;
LPWSTR
portW
=
NULL
;
INT
len
;
DWORD
res
;
TRACE
(
"(%s, %p, %s)
\n
"
,
debugstr_a
(
pName
),
hWnd
,
debugstr_a
(
pPortName
));
/* convert servername to unicode */
if
(
pName
)
{
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
pName
,
-
1
,
NULL
,
0
);
nameW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
pName
,
-
1
,
nameW
,
len
);
}
/* convert portname to unicode */
if
(
pPortName
)
{
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
pPortName
,
-
1
,
NULL
,
0
);
portW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
pPortName
,
-
1
,
portW
,
len
);
}
res
=
DeletePortW
(
nameW
,
hWnd
,
portW
);
HeapFree
(
GetProcessHeap
(),
0
,
nameW
);
HeapFree
(
GetProcessHeap
(),
0
,
portW
);
return
res
;
}
/******************************************************************
...
...
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