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
fce6f93b
Commit
fce6f93b
authored
Sep 22, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
Oct 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscoree: Add stub implementation of ICLRMetaHost.
parent
1b978ead
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
166 additions
and
4 deletions
+166
-4
Makefile.in
dlls/mscoree/Makefile.in
+1
-0
metahost.c
dlls/mscoree/metahost.c
+154
-0
mscoree_main.c
dlls/mscoree/mscoree_main.c
+7
-2
mscoree_private.h
dlls/mscoree/mscoree_private.h
+2
-0
metahost.c
dlls/mscoree/tests/metahost.c
+2
-2
No files found.
dlls/mscoree/Makefile.in
View file @
fce6f93b
...
...
@@ -3,6 +3,7 @@ IMPORTS = uuid shell32 advapi32
C_SRCS
=
\
corruntimehost.c
\
metahost.c
\
mscoree_main.c
@MAKE_DLL_RULES@
dlls/mscoree/metahost.c
0 → 100644
View file @
fce6f93b
/*
* ICLRMetaHost - discovery and management of available .NET runtimes
*
* Copyright 2010 Vincent Povirk 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
*/
#include <stdarg.h>
#define COBJMACROS
#include "wine/unicode.h"
#include "wine/library.h"
#include "windef.h"
#include "winbase.h"
#include "ole2.h"
#include "mscoree.h"
#include "metahost.h"
#include "mscoree_private.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
mscoree
);
struct
CLRMetaHost
{
const
struct
ICLRMetaHostVtbl
*
CLRMetaHost_vtbl
;
};
static
const
struct
CLRMetaHost
GlobalCLRMetaHost
;
static
HRESULT
WINAPI
CLRMetaHost_QueryInterface
(
ICLRMetaHost
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
{
TRACE
(
"%s %p
\n
"
,
debugstr_guid
(
riid
),
ppvObject
);
if
(
IsEqualGUID
(
riid
,
&
IID_ICLRMetaHost
)
||
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
)
{
*
ppvObject
=
iface
;
}
else
{
FIXME
(
"Unsupported interface %s
\n
"
,
debugstr_guid
(
riid
));
return
E_NOINTERFACE
;
}
ICLRMetaHost_AddRef
(
iface
);
return
S_OK
;
}
static
ULONG
WINAPI
CLRMetaHost_AddRef
(
ICLRMetaHost
*
iface
)
{
return
2
;
}
static
ULONG
WINAPI
CLRMetaHost_Release
(
ICLRMetaHost
*
iface
)
{
return
1
;
}
static
HRESULT
WINAPI
CLRMetaHost_GetRuntime
(
ICLRMetaHost
*
iface
,
LPCWSTR
pwzVersion
,
REFIID
iid
,
LPVOID
*
ppRuntime
)
{
FIXME
(
"%s %s %p
\n
"
,
debugstr_w
(
pwzVersion
),
debugstr_guid
(
iid
),
ppRuntime
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
CLRMetaHost_GetVersionFromFile
(
ICLRMetaHost
*
iface
,
LPCWSTR
pwzFilePath
,
LPWSTR
pwzBuffer
,
DWORD
*
pcchBuffer
)
{
FIXME
(
"%s %p %p
\n
"
,
debugstr_w
(
pwzFilePath
),
pwzBuffer
,
pcchBuffer
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
CLRMetaHost_EnumerateInstalledRuntimes
(
ICLRMetaHost
*
iface
,
IEnumUnknown
**
ppEnumerator
)
{
FIXME
(
"%p
\n
"
,
ppEnumerator
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
CLRMetaHost_EnumerateLoadedRuntimes
(
ICLRMetaHost
*
iface
,
HANDLE
hndProcess
,
IEnumUnknown
**
ppEnumerator
)
{
FIXME
(
"%p %p
\n
"
,
hndProcess
,
ppEnumerator
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
CLRMetaHost_RequestRuntimeLoadedNotification
(
ICLRMetaHost
*
iface
,
RuntimeLoadedCallbackFnPtr
pCallbackFunction
)
{
FIXME
(
"%p
\n
"
,
pCallbackFunction
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
CLRMetaHost_QueryLegacyV2RuntimeBinding
(
ICLRMetaHost
*
iface
,
REFIID
riid
,
LPVOID
*
ppUnk
)
{
FIXME
(
"%s %p
\n
"
,
debugstr_guid
(
riid
),
ppUnk
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
CLRMetaHost_ExitProcess
(
ICLRMetaHost
*
iface
,
INT32
iExitCode
)
{
FIXME
(
"%i: stub
\n
"
,
iExitCode
);
ExitProcess
(
iExitCode
);
}
static
const
struct
ICLRMetaHostVtbl
CLRMetaHost_vtbl
=
{
CLRMetaHost_QueryInterface
,
CLRMetaHost_AddRef
,
CLRMetaHost_Release
,
CLRMetaHost_GetRuntime
,
CLRMetaHost_GetVersionFromFile
,
CLRMetaHost_EnumerateInstalledRuntimes
,
CLRMetaHost_EnumerateLoadedRuntimes
,
CLRMetaHost_RequestRuntimeLoadedNotification
,
CLRMetaHost_QueryLegacyV2RuntimeBinding
,
CLRMetaHost_ExitProcess
};
static
const
struct
CLRMetaHost
GlobalCLRMetaHost
=
{
&
CLRMetaHost_vtbl
};
extern
HRESULT
CLRMetaHost_CreateInstance
(
REFIID
riid
,
void
**
ppobj
)
{
return
ICLRMetaHost_QueryInterface
((
ICLRMetaHost
*
)
&
GlobalCLRMetaHost
,
riid
,
ppobj
);
}
dlls/mscoree/mscoree_main.c
View file @
fce6f93b
...
...
@@ -642,9 +642,14 @@ BOOL WINAPI StrongNameSignatureVerificationEx(LPCWSTR filename, BOOL forceVerifi
HRESULT
WINAPI
CLRCreateInstance
(
REFCLSID
clsid
,
REFIID
riid
,
LPVOID
*
ppInterface
)
{
FIXME
(
"(%s,%s,%p): stub
\n
"
,
debugstr_guid
(
clsid
),
debugstr_guid
(
riid
),
ppInterface
);
TRACE
(
"(%s,%s,%p)
\n
"
,
debugstr_guid
(
clsid
),
debugstr_guid
(
riid
),
ppInterface
);
return
E_NOTIMPL
;
if
(
IsEqualGUID
(
clsid
,
&
CLSID_CLRMetaHost
))
return
CLRMetaHost_CreateInstance
(
riid
,
ppInterface
);
FIXME
(
"not implemented for class %s
\n
"
,
debugstr_guid
(
clsid
));
return
CLASS_E_CLASSNOTAVAILABLE
;
}
HRESULT
WINAPI
DllGetClassObject
(
REFCLSID
rclsid
,
REFIID
riid
,
LPVOID
*
ppv
)
...
...
dlls/mscoree/mscoree_private.h
View file @
fce6f93b
...
...
@@ -22,6 +22,8 @@
extern
IUnknown
*
create_corruntimehost
(
void
);
extern
HRESULT
CLRMetaHost_CreateInstance
(
REFIID
riid
,
void
**
ppobj
);
/* Mono 2.6 embedding */
typedef
struct
_MonoDomain
MonoDomain
;
typedef
struct
_MonoAssembly
MonoAssembly
;
...
...
dlls/mscoree/tests/metahost.c
View file @
fce6f93b
...
...
@@ -47,7 +47,7 @@ BOOL init_pointers(void)
if
(
FAILED
(
hr
))
{
todo_wine
win_skip
(
".NET 4 is not installed
\n
"
);
win_skip
(
".NET 4 is not installed
\n
"
);
FreeLibrary
(
hmscoree
);
return
FALSE
;
}
...
...
@@ -72,7 +72,7 @@ void test_enumruntimes(void)
WCHAR
buf
[
MAX_PATH
];
hr
=
ICLRMetaHost_EnumerateInstalledRuntimes
(
metahost
,
&
runtime_enum
);
ok
(
hr
==
S_OK
,
"EnumerateInstalledRuntimes returned %x
\n
"
,
hr
);
todo_wine
ok
(
hr
==
S_OK
,
"EnumerateInstalledRuntimes returned %x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
return
;
while
((
hr
=
IEnumUnknown_Next
(
runtime_enum
,
1
,
&
unk
,
&
count
))
==
S_OK
)
...
...
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