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
13fef511
Commit
13fef511
authored
Sep 20, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 20, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wshom.ocx: Added beginning WshShell object tests.
parent
cf2a4399
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
68 additions
and
0 deletions
+68
-0
configure
configure
+1
-0
configure.ac
configure.ac
+1
-0
Makefile.in
dlls/wshom.ocx/tests/Makefile.in
+7
-0
wshom.c
dlls/wshom.ocx/tests/wshom.c
+59
-0
No files found.
configure
View file @
13fef511
...
...
@@ -15184,6 +15184,7 @@ wine_fn_config_dll wow32 enable_win16 implib
wine_fn_config_dll ws2_32 enable_ws2_32 implib
wine_fn_config_test dlls/ws2_32/tests ws2_32_test
wine_fn_config_dll wshom.ocx enable_wshom_ocx
wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
wine_fn_config_dll wsock32 enable_wsock32 implib
wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
wine_fn_config_dll wuapi enable_wuapi
...
...
configure.ac
View file @
13fef511
...
...
@@ -2877,6 +2877,7 @@ WINE_CONFIG_DLL(wow32,enable_win16,[implib])
WINE_CONFIG_DLL(ws2_32,,[implib])
WINE_CONFIG_TEST(dlls/ws2_32/tests)
WINE_CONFIG_DLL(wshom.ocx)
WINE_CONFIG_TEST(dlls/wshom.ocx/tests)
WINE_CONFIG_DLL(wsock32,,[implib])
WINE_CONFIG_DLL(wtsapi32,,[implib])
WINE_CONFIG_DLL(wuapi)
...
...
dlls/wshom.ocx/tests/Makefile.in
0 → 100644
View file @
13fef511
TESTDLL
=
wshom.ocx
IMPORTS
=
ole32
C_SRCS
=
\
wshom.c
@MAKE_TEST_RULES@
dlls/wshom.ocx/tests/wshom.c
0 → 100644
View file @
13fef511
/*
* Copyright 2011 Jacek Caban for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define COBJMACROS
#define CONST_VTABLE
#include <initguid.h>
#include <ole2.h>
#include <dispex.h>
#include "wine/test.h"
DEFINE_GUID
(
CLSID_WshShell
,
0x72c24dd5
,
0xd70a
,
0x438b
,
0x8a
,
0x42
,
0x98
,
0x42
,
0x4b
,
0x88
,
0xaf
,
0xb8
);
DEFINE_GUID
(
IID_IWshShell3
,
0x41904400
,
0xbe18
,
0x11d3
,
0xa2
,
0x8b
,
0x00
,
0x10
,
0x4b
,
0xd3
,
0x50
,
0x90
);
static
void
test_wshshell
(
void
)
{
IDispatch
*
disp
;
IUnknown
*
shell
;
HRESULT
hres
;
hres
=
CoCreateInstance
(
&
CLSID_WshShell
,
NULL
,
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
,
&
IID_IDispatch
,
(
void
**
)
&
disp
);
if
(
FAILED
(
hres
))
{
win_skip
(
"Could not create WshShell object: %08x
\n
"
,
hres
);
return
;
}
hres
=
IDispatch_QueryInterface
(
disp
,
&
IID_IWshShell3
,
(
void
**
)
&
shell
);
IDispatch_Release
(
disp
);
ok
(
hres
==
S_OK
,
"Could not get IWshShell3 iface: %08x
\n
"
,
hres
);
IUnknown_Release
(
shell
);
}
START_TEST
(
wshom
)
{
CoInitialize
(
NULL
);
test_wshshell
();
CoUninitialize
();
}
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