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
082b4688
Commit
082b4688
authored
Mar 25, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Mar 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fusion: Add a stub implementation of IAssemblyEnum.
parent
8a19faf2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
90 additions
and
0 deletions
+90
-0
asmcache.c
dlls/fusion/asmcache.c
+83
-0
fusion.idl
include/fusion.idl
+7
-0
No files found.
dlls/fusion/asmcache.c
View file @
082b4688
...
...
@@ -235,3 +235,86 @@ static const IAssemblyCacheItemVtbl AssemblyCacheItemVtbl = {
IAssemblyCacheItemImpl_Commit
,
IAssemblyCacheItemImpl_AbortItem
};
/* IAssemblyEnum */
typedef
struct
{
const
IAssemblyEnumVtbl
*
lpIAssemblyEnumVtbl
;
LONG
ref
;
}
IAssemblyEnumImpl
;
static
HRESULT
WINAPI
IAssemblyEnumImpl_QueryInterface
(
IAssemblyEnum
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IAssemblyEnumImpl
*
This
=
(
IAssemblyEnumImpl
*
)
iface
;
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
*
ppobj
=
NULL
;
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IAssemblyEnum
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
S_OK
;
}
WARN
(
"(%p, %s, %p): not found
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
IAssemblyEnumImpl_AddRef
(
IAssemblyEnum
*
iface
)
{
IAssemblyEnumImpl
*
This
=
(
IAssemblyEnumImpl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before = %u)
\n
"
,
This
,
refCount
-
1
);
return
refCount
;
}
static
ULONG
WINAPI
IAssemblyEnumImpl_Release
(
IAssemblyEnum
*
iface
)
{
IAssemblyEnumImpl
*
This
=
(
IAssemblyEnumImpl
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before = %u)
\n
"
,
This
,
refCount
+
1
);
if
(
!
refCount
)
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
refCount
;
}
static
HRESULT
WINAPI
IAssemblyEnumImpl_GetNextAssembly
(
IAssemblyEnum
*
iface
,
LPVOID
pvReserved
,
IAssemblyName
**
ppName
,
DWORD
dwFlags
)
{
FIXME
(
"(%p, %p, %p, %d) stub!
\n
"
,
iface
,
pvReserved
,
ppName
,
dwFlags
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IAssemblyEnumImpl_Reset
(
IAssemblyEnum
*
iface
)
{
FIXME
(
"(%p) stub!
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IAssemblyEnumImpl_Clone
(
IAssemblyEnum
*
iface
,
IAssemblyEnum
**
ppEnum
)
{
FIXME
(
"(%p, %p) stub!
\n
"
,
iface
,
ppEnum
);
return
E_NOTIMPL
;
}
static
const
IAssemblyEnumVtbl
AssemblyEnumVtbl
=
{
IAssemblyEnumImpl_QueryInterface
,
IAssemblyEnumImpl_AddRef
,
IAssemblyEnumImpl_Release
,
IAssemblyEnumImpl_GetNextAssembly
,
IAssemblyEnumImpl_Reset
,
IAssemblyEnumImpl_Clone
};
include/fusion.idl
View file @
082b4688
...
...
@@ -312,7 +312,14 @@ interface IAssemblyName: IUnknown
]
interface
IAssemblyEnum
:
IUnknown
{
HRESULT
GetNextAssembly
(
[
in
]
LPVOID
pvReserved
,
[
out
]
IAssemblyName
**
ppName
,
[
in
]
DWORD
dwFlags
)
;
HRESULT
Reset
(
void
)
;
HRESULT
Clone
(
[
out
]
IAssemblyEnum
**
ppEnum
)
;
}
[
...
...
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