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
717385b0
Commit
717385b0
authored
Dec 05, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 05, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Added a stub for SHAssocEnumHandlers().
parent
d7a8beb0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
91 additions
and
0 deletions
+91
-0
assoc.c
dlls/shell32/assoc.c
+90
-0
shell32.spec
dlls/shell32/shell32.spec
+1
-0
No files found.
dlls/shell32/assoc.c
View file @
717385b0
...
...
@@ -77,6 +77,17 @@ static inline IQueryAssociationsImpl *impl_from_IQueryAssociations(IQueryAssocia
return
CONTAINING_RECORD
(
iface
,
IQueryAssociationsImpl
,
IQueryAssociations_iface
);
}
struct
enumassochandlers
{
IEnumAssocHandlers
IEnumAssocHandlers_iface
;
LONG
ref
;
};
static
inline
struct
enumassochandlers
*
impl_from_IEnumAssocHandlers
(
IEnumAssocHandlers
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
enumassochandlers
,
IEnumAssocHandlers_iface
);
}
/**************************************************************************
* IQueryAssociations_QueryInterface
*
...
...
@@ -965,3 +976,82 @@ HRESULT WINAPI ApplicationAssociationRegistration_Constructor(IUnknown *outer, R
TRACE
(
"returning 0x%x with %p
\n
"
,
hr
,
*
ppv
);
return
hr
;
}
static
HRESULT
WINAPI
enumassochandlers_QueryInterface
(
IEnumAssocHandlers
*
iface
,
REFIID
riid
,
void
**
obj
)
{
struct
enumassochandlers
*
This
=
impl_from_IEnumAssocHandlers
(
iface
);
TRACE
(
"(%p %s %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
obj
);
if
(
IsEqualIID
(
riid
,
&
IID_IEnumAssocHandlers
)
||
IsEqualIID
(
riid
,
&
IID_IUnknown
))
{
*
obj
=
iface
;
IEnumAssocHandlers_AddRef
(
iface
);
return
S_OK
;
}
*
obj
=
NULL
;
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
enumassochandlers_AddRef
(
IEnumAssocHandlers
*
iface
)
{
struct
enumassochandlers
*
This
=
impl_from_IEnumAssocHandlers
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(%u)
\n
"
,
This
,
ref
);
return
ref
;
}
static
ULONG
WINAPI
enumassochandlers_Release
(
IEnumAssocHandlers
*
iface
)
{
struct
enumassochandlers
*
This
=
impl_from_IEnumAssocHandlers
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(%u)
\n
"
,
This
,
ref
);
if
(
!
ref
)
SHFree
(
This
);
return
ref
;
}
static
HRESULT
WINAPI
enumassochandlers_Next
(
IEnumAssocHandlers
*
iface
,
ULONG
count
,
IAssocHandler
**
handlers
,
ULONG
*
fetched
)
{
struct
enumassochandlers
*
This
=
impl_from_IEnumAssocHandlers
(
iface
);
FIXME
(
"(%p)->(%u %p %p): stub
\n
"
,
This
,
count
,
handlers
,
fetched
);
return
E_NOTIMPL
;
}
static
const
IEnumAssocHandlersVtbl
enumassochandlersvtbl
=
{
enumassochandlers_QueryInterface
,
enumassochandlers_AddRef
,
enumassochandlers_Release
,
enumassochandlers_Next
};
/**************************************************************************
* SHAssocEnumHandlers [SHELL32.@]
*/
HRESULT
WINAPI
SHAssocEnumHandlers
(
const
WCHAR
*
extra
,
ASSOC_FILTER
filter
,
IEnumAssocHandlers
**
enumhandlers
)
{
struct
enumassochandlers
*
enumassoc
;
FIXME
(
"(%s %d %p
\n
): stub"
,
debugstr_w
(
extra
),
filter
,
enumhandlers
);
*
enumhandlers
=
NULL
;
enumassoc
=
SHAlloc
(
sizeof
(
*
enumassoc
));
if
(
!
enumassoc
)
return
E_OUTOFMEMORY
;
enumassoc
->
IEnumAssocHandlers_iface
.
lpVtbl
=
&
enumassochandlersvtbl
;
enumassoc
->
ref
=
1
;
*
enumhandlers
=
&
enumassoc
->
IEnumAssocHandlers_iface
;
return
S_OK
;
}
dlls/shell32/shell32.spec
View file @
717385b0
...
...
@@ -328,6 +328,7 @@
@ stdcall SetCurrentProcessExplicitAppUserModelID(wstr)
@ stdcall SHAddToRecentDocs (long ptr)
@ stdcall SHAppBarMessage(long ptr)
@ stdcall SHAssocEnumHandlers(wstr long ptr)
@ stdcall SHBindToParent(ptr ptr ptr ptr)
@ stdcall SHBrowseForFolder(ptr) SHBrowseForFolderA
@ stdcall SHBrowseForFolderA(ptr)
...
...
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