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
1d0fbb21
Commit
1d0fbb21
authored
Mar 09, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 10, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wshom.ocx: Implement Status property of IWshExec.
parent
d9db9d8b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
shell.c
dlls/wshom.ocx/shell.c
+21
-2
No files found.
dlls/wshom.ocx/shell.c
View file @
1d0fbb21
...
...
@@ -180,10 +180,29 @@ static HRESULT WINAPI WshExec_Invoke(IWshExec *iface, DISPID dispIdMember, REFII
static
HRESULT
WINAPI
WshExec_get_Status
(
IWshExec
*
iface
,
WshExecStatus
*
status
)
{
WshExec
*
This
=
impl_from_IWshExec
(
iface
);
DWORD
code
;
FIXME
(
"(%p)->(%p): stub
\n
"
,
This
,
status
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
status
);
return
E_NOTIMPL
;
if
(
!
status
)
return
E_INVALIDARG
;
if
(
!
GetExitCodeProcess
(
This
->
info
.
hProcess
,
&
code
))
return
HRESULT_FROM_WIN32
(
GetLastError
());
switch
(
code
)
{
case
0
:
*
status
=
WshFinished
;
break
;
case
STILL_ACTIVE
:
*
status
=
WshRunning
;
break
;
default:
*
status
=
WshFailed
;
}
return
S_OK
;
}
static
HRESULT
WINAPI
WshExec_get_StdIn
(
IWshExec
*
iface
,
ITextStream
**
stream
)
...
...
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