Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ddda1730
Commit
ddda1730
authored
Sep 21, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
Oct 04, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscoree: Add test for creating CLRMetaHost.
parent
1fbb2142
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
72 additions
and
0 deletions
+72
-0
Makefile.in
dlls/mscoree/tests/Makefile.in
+1
-0
metahost.c
dlls/mscoree/tests/metahost.c
+71
-0
No files found.
dlls/mscoree/tests/Makefile.in
View file @
ddda1730
TESTDLL
=
mscoree.dll
C_SRCS
=
\
metahost.c
\
mscoree.c
@MAKE_TEST_RULES@
dlls/mscoree/tests/metahost.c
0 → 100644
View file @
ddda1730
/*
* Copyright 2010 Vincent Povirk
*
* 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
#include <stdarg.h>
#include "windef.h"
#include "ole2.h"
#include "initguid.h"
#include "metahost.h"
#include "wine/test.h"
static
HMODULE
hmscoree
;
static
HRESULT
(
WINAPI
*
pCLRCreateInstance
)(
REFCLSID
clsid
,
REFIID
riid
,
LPVOID
*
ppInterface
);
static
ICLRMetaHost
*
metahost
;
BOOL
init_pointers
(
void
)
{
HRESULT
hr
=
E_FAIL
;
hmscoree
=
LoadLibraryA
(
"mscoree.dll"
);
if
(
hmscoree
)
pCLRCreateInstance
=
(
void
*
)
GetProcAddress
(
hmscoree
,
"CLRCreateInstance"
);
if
(
pCLRCreateInstance
)
hr
=
pCLRCreateInstance
(
&
CLSID_CLRMetaHost
,
&
IID_ICLRMetaHost
,
(
void
**
)
&
metahost
);
if
(
FAILED
(
hr
))
{
todo_wine
win_skip
(
".NET 4 is not installed
\n
"
);
FreeLibrary
(
hmscoree
);
return
FALSE
;
}
return
TRUE
;
}
void
cleanup
(
void
)
{
ICLRMetaHost_Release
(
metahost
);
FreeLibrary
(
hmscoree
);
}
START_TEST
(
metahost
)
{
if
(
!
init_pointers
())
return
;
cleanup
();
}
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