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
5267e36a
Commit
5267e36a
authored
Mar 05, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Mar 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Implement CallNamedPipeW.
parent
07daeff8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
4 deletions
+33
-4
sync.c
dlls/kernel32/sync.c
+33
-4
No files found.
dlls/kernel32/sync.c
View file @
5267e36a
...
...
@@ -1515,10 +1515,39 @@ BOOL WINAPI CallNamedPipeW(
LPVOID
lpOutput
,
DWORD
lpOutputSize
,
LPDWORD
lpBytesRead
,
DWORD
nTimeout
)
{
FIXME
(
"%s %p %d %p %d %p %d
\n
"
,
debugstr_w
(
lpNamedPipeName
),
lpInput
,
lpInputSize
,
lpOutput
,
lpOutputSize
,
lpBytesRead
,
nTimeout
);
return
FALSE
;
HANDLE
pipe
;
BOOL
ret
;
DWORD
mode
;
TRACE
(
"%s %p %d %p %d %p %d
\n
"
,
debugstr_w
(
lpNamedPipeName
),
lpInput
,
lpInputSize
,
lpOutput
,
lpOutputSize
,
lpBytesRead
,
nTimeout
);
pipe
=
CreateFileW
(
lpNamedPipeName
,
GENERIC_READ
|
GENERIC_WRITE
,
0
,
NULL
,
OPEN_EXISTING
,
0
,
NULL
);
if
(
pipe
==
INVALID_HANDLE_VALUE
)
{
ret
=
WaitNamedPipeW
(
lpNamedPipeName
,
nTimeout
);
if
(
!
ret
)
return
FALSE
;
pipe
=
CreateFileW
(
lpNamedPipeName
,
GENERIC_READ
|
GENERIC_WRITE
,
0
,
NULL
,
OPEN_EXISTING
,
0
,
NULL
);
if
(
pipe
==
INVALID_HANDLE_VALUE
)
return
FALSE
;
}
mode
=
PIPE_READMODE_MESSAGE
;
ret
=
SetNamedPipeHandleState
(
pipe
,
&
mode
,
NULL
,
NULL
);
if
(
!
ret
)
{
CloseHandle
(
pipe
);
return
FALSE
;
}
ret
=
TransactNamedPipe
(
pipe
,
lpInput
,
lpInputSize
,
lpOutput
,
lpOutputSize
,
lpBytesRead
,
NULL
);
CloseHandle
(
pipe
);
if
(
!
ret
)
return
FALSE
;
return
TRUE
;
}
/******************************************************************
...
...
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