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
7028e2bb
Commit
7028e2bb
authored
Oct 01, 2013
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Oct 03, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscoree: Implement CreateInterface.
parent
88acc9c8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
1 deletion
+36
-1
mscoree.spec
dlls/mscoree/mscoree.spec
+1
-0
mscoree_main.c
dlls/mscoree/mscoree_main.c
+7
-0
mscoree.c
dlls/mscoree/tests/mscoree.c
+28
-1
No files found.
dlls/mscoree/mscoree.spec
View file @
7028e2bb
...
...
@@ -30,6 +30,7 @@
@ stub CorTickleSvc
@ stdcall CreateConfigStream(wstr ptr)
@ stdcall CreateDebuggingInterfaceFromVersion(long wstr ptr)
@ stdcall CreateInterface(ptr ptr ptr)
@ stdcall -private DllCanUnloadNow()
@ stdcall -private DllGetClassObject(ptr ptr ptr)
@ stdcall -private DllRegisterServer()
...
...
dlls/mscoree/mscoree_main.c
View file @
7028e2bb
...
...
@@ -594,6 +594,13 @@ HRESULT WINAPI CLRCreateInstance(REFCLSID clsid, REFIID riid, LPVOID *ppInterfac
return
CLASS_E_CLASSNOTAVAILABLE
;
}
HRESULT
WINAPI
CreateInterface
(
REFCLSID
clsid
,
REFIID
riid
,
LPVOID
*
ppInterface
)
{
TRACE
(
"(%s,%s,%p)
\n
"
,
debugstr_guid
(
clsid
),
debugstr_guid
(
riid
),
ppInterface
);
return
CLRCreateInstance
(
clsid
,
riid
,
ppInterface
);
}
HRESULT
WINAPI
DllGetClassObject
(
REFCLSID
rclsid
,
REFIID
riid
,
LPVOID
*
ppv
)
{
mscorecf
*
This
;
...
...
dlls/mscoree/tests/mscoree.c
View file @
7028e2bb
...
...
@@ -21,6 +21,7 @@
#include "corerror.h"
#include "mscoree.h"
#include "metahost.h"
#include "shlwapi.h"
#include "wine/test.h"
...
...
@@ -31,6 +32,7 @@ static HRESULT (WINAPI *pGetCORSystemDirectory)(LPWSTR, DWORD, DWORD*);
static
HRESULT
(
WINAPI
*
pGetRequestedRuntimeInfo
)(
LPCWSTR
,
LPCWSTR
,
LPCWSTR
,
DWORD
,
DWORD
,
LPWSTR
,
DWORD
,
DWORD
*
,
LPWSTR
,
DWORD
,
DWORD
*
);
static
HRESULT
(
WINAPI
*
pLoadLibraryShim
)(
LPCWSTR
,
LPCWSTR
,
LPVOID
,
HMODULE
*
);
static
HRESULT
(
WINAPI
*
pCreateConfigStream
)(
LPCWSTR
,
IStream
**
);
static
HRESULT
(
WINAPI
*
pCreateInterface
)(
REFCLSID
,
REFIID
,
VOID
**
);
static
BOOL
init_functionpointers
(
void
)
{
...
...
@@ -47,8 +49,10 @@ static BOOL init_functionpointers(void)
pGetRequestedRuntimeInfo
=
(
void
*
)
GetProcAddress
(
hmscoree
,
"GetRequestedRuntimeInfo"
);
pLoadLibraryShim
=
(
void
*
)
GetProcAddress
(
hmscoree
,
"LoadLibraryShim"
);
pCreateConfigStream
=
(
void
*
)
GetProcAddress
(
hmscoree
,
"CreateConfigStream"
);
pCreateInterface
=
(
void
*
)
GetProcAddress
(
hmscoree
,
"CreateInterface"
);
if
(
!
pGetCORVersion
||
!
pGetCORSystemDirectory
||
!
pGetRequestedRuntimeInfo
||
!
pLoadLibraryShim
)
if
(
!
pGetCORVersion
||
!
pGetCORSystemDirectory
||
!
pGetRequestedRuntimeInfo
||
!
pLoadLibraryShim
||
!
pCreateInterface
)
{
win_skip
(
"functions not available
\n
"
);
FreeLibrary
(
hmscoree
);
...
...
@@ -386,6 +390,28 @@ static void test_createconfigstream(void)
DeleteFileW
(
file
);
}
void
test_createinstance
(
void
)
{
HRESULT
hr
;
ICLRMetaHost
*
host
;
if
(
!
pCreateInterface
)
{
win_skip
(
"Function CreateInterface not found.
\n
"
);
return
;
}
hr
=
pCreateInterface
(
&
CLSID_CLRMetaHost
,
&
IID_ICLRMetaHost
,
(
void
**
)
&
host
);
if
(
SUCCEEDED
(
hr
))
{
ICLRMetaHost_Release
(
host
);
}
else
{
win_skip
(
".NET 4 not installed.
\n
"
);
}
}
START_TEST
(
mscoree
)
{
if
(
!
init_functionpointers
())
...
...
@@ -394,6 +420,7 @@ START_TEST(mscoree)
test_versioninfo
();
test_loadlibraryshim
();
test_createconfigstream
();
test_createinstance
();
FreeLibrary
(
hmscoree
);
}
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