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
8ea9c338
Commit
8ea9c338
authored
Jun 07, 2017
by
Andrey Gusev
Committed by
Alexandre Julliard
Jun 08, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Add IApplicationDestinations stub.
Signed-off-by:
Andrey Gusev
<
andrey.goosev@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9f4f9423
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
128 additions
and
0 deletions
+128
-0
shell32_classes.idl
dlls/shell32/shell32_classes.idl
+6
-0
shell32_main.h
dlls/shell32/shell32_main.h
+2
-0
shellole.c
dlls/shell32/shellole.c
+1
-0
shellpath.c
dlls/shell32/shellpath.c
+119
-0
No files found.
dlls/shell32/shell32_classes.idl
View file @
8ea9c338
...
@@ -69,6 +69,12 @@ coclass KnownFolderManager { interface IKnownFolderManager; }
...
@@ -69,6 +69,12 @@ coclass KnownFolderManager { interface IKnownFolderManager; }
]
coclass
ApplicationAssociationRegistration
{
interface
IApplicationAssociationRegistration
; }
]
coclass
ApplicationAssociationRegistration
{
interface
IApplicationAssociationRegistration
; }
[
[
helpstring
(
"Application Destination List"
),
threading
(
apartment
),
uuid
(
86
c14003
-
4
d6b
-
4
ef3
-
a7b4
-
0506663b2
e68
)
]
coclass
ApplicationDestinations
{
interface
IApplicationDestinations
; }
[
helpstring
(
"Shell Drag and Drop Helper"
),
helpstring
(
"Shell Drag and Drop Helper"
),
threading
(
apartment
),
threading
(
apartment
),
uuid
(
4657278
a
-
411b
-
11
d2
-
839
a
-
00
c04fd918d0
)
uuid
(
4657278
a
-
411b
-
11
d2
-
839
a
-
00
c04fd918d0
)
...
...
dlls/shell32/shell32_main.h
View file @
8ea9c338
...
@@ -109,6 +109,8 @@ HRESULT WINAPI CPanel_ExtractIconW(LPITEMIDLIST pidl, LPCWSTR pszFile, UINT nIco
...
@@ -109,6 +109,8 @@ HRESULT WINAPI CPanel_ExtractIconW(LPITEMIDLIST pidl, LPCWSTR pszFile, UINT nIco
HRESULT
WINAPI
IAutoComplete_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
IAutoComplete_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
ApplicationAssociationRegistration_Constructor
(
IUnknown
*
outer
,
REFIID
riid
,
LPVOID
*
ppv
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
ApplicationAssociationRegistration_Constructor
(
IUnknown
*
outer
,
REFIID
riid
,
LPVOID
*
ppv
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
ApplicationDestinations_Constructor
(
IUnknown
*
outer
,
REFIID
riid
,
LPVOID
*
ppv
)
DECLSPEC_HIDDEN
;
HRESULT
IShellLink_ConstructFromFile
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPCITEMIDLIST
pidl
,
IUnknown
**
ppv
)
DECLSPEC_HIDDEN
;
HRESULT
IShellLink_ConstructFromFile
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPCITEMIDLIST
pidl
,
IUnknown
**
ppv
)
DECLSPEC_HIDDEN
;
LPEXTRACTICONA
IExtractIconA_Constructor
(
LPCITEMIDLIST
)
DECLSPEC_HIDDEN
;
LPEXTRACTICONA
IExtractIconA_Constructor
(
LPCITEMIDLIST
)
DECLSPEC_HIDDEN
;
...
...
dlls/shell32/shellole.c
View file @
8ea9c338
...
@@ -67,6 +67,7 @@ static const struct {
...
@@ -67,6 +67,7 @@ static const struct {
}
InterfaceTable
[]
=
{
}
InterfaceTable
[]
=
{
{
&
CLSID_ApplicationAssociationRegistration
,
ApplicationAssociationRegistration_Constructor
},
{
&
CLSID_ApplicationAssociationRegistration
,
ApplicationAssociationRegistration_Constructor
},
{
&
CLSID_ApplicationDestinations
,
ApplicationDestinations_Constructor
},
{
&
CLSID_AutoComplete
,
IAutoComplete_Constructor
},
{
&
CLSID_AutoComplete
,
IAutoComplete_Constructor
},
{
&
CLSID_ControlPanel
,
IControlPanel_Constructor
},
{
&
CLSID_ControlPanel
,
IControlPanel_Constructor
},
{
&
CLSID_DragDropHelper
,
IDropTargetHelper_Constructor
},
{
&
CLSID_DragDropHelper
,
IDropTargetHelper_Constructor
},
...
...
dlls/shell32/shellpath.c
View file @
8ea9c338
...
@@ -1021,6 +1021,125 @@ typedef enum _CSIDL_Type {
...
@@ -1021,6 +1021,125 @@ typedef enum _CSIDL_Type {
typedef
struct
typedef
struct
{
{
IApplicationDestinations
IApplicationDestinations_iface
;
LONG
ref
;
}
IApplicationDestinationsImpl
;
static
inline
IApplicationDestinationsImpl
*
impl_from_IApplicationDestinations
(
IApplicationDestinations
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IApplicationDestinationsImpl
,
IApplicationDestinations_iface
);
}
static
HRESULT
WINAPI
ApplicationDestinations_QueryInterface
(
IApplicationDestinations
*
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
{
IApplicationDestinationsImpl
*
This
=
impl_from_IApplicationDestinations
(
iface
);
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppv
);
if
(
ppv
==
NULL
)
return
E_POINTER
;
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
)
||
IsEqualGUID
(
&
IID_IApplicationDestinations
,
riid
))
{
*
ppv
=
&
This
->
IApplicationDestinations_iface
;
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
TRACE
(
"Returning IApplicationDestinations: %p
\n
"
,
*
ppv
);
return
S_OK
;
}
*
ppv
=
NULL
;
FIXME
(
"(%p)->(%s, %p) interface not supported.
\n
"
,
This
,
debugstr_guid
(
riid
),
ppv
);
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
ApplicationDestinations_AddRef
(
IApplicationDestinations
*
iface
)
{
IApplicationDestinationsImpl
*
This
=
impl_from_IApplicationDestinations
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p), new refcount=%i
\n
"
,
This
,
ref
);
return
ref
;
}
static
ULONG
WINAPI
ApplicationDestinations_Release
(
IApplicationDestinations
*
iface
)
{
IApplicationDestinationsImpl
*
This
=
impl_from_IApplicationDestinations
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p), new refcount=%i
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
ref
;
}
static
HRESULT
WINAPI
ApplicationDestinations_SetAppID
(
IApplicationDestinations
*
iface
,
const
WCHAR
*
appid
)
{
IApplicationDestinationsImpl
*
This
=
impl_from_IApplicationDestinations
(
iface
);
FIXME
(
"(%p, %s) stub!
\n
"
,
This
,
debugstr_w
(
appid
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ApplicationDestinations_RemoveDestination
(
IApplicationDestinations
*
iface
,
IUnknown
*
punk
)
{
IApplicationDestinationsImpl
*
This
=
impl_from_IApplicationDestinations
(
iface
);
FIXME
(
"(%p, %p) stub!
\n
"
,
This
,
punk
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ApplicationDestinations_RemoveAllDestinations
(
IApplicationDestinations
*
iface
)
{
IApplicationDestinationsImpl
*
This
=
impl_from_IApplicationDestinations
(
iface
);
FIXME
(
"(%p) stub!
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
const
IApplicationDestinationsVtbl
ApplicationDestinationsVtbl
=
{
ApplicationDestinations_QueryInterface
,
ApplicationDestinations_AddRef
,
ApplicationDestinations_Release
,
ApplicationDestinations_SetAppID
,
ApplicationDestinations_RemoveDestination
,
ApplicationDestinations_RemoveAllDestinations
};
HRESULT
WINAPI
ApplicationDestinations_Constructor
(
IUnknown
*
outer
,
REFIID
riid
,
LPVOID
*
ppv
)
{
IApplicationDestinationsImpl
*
This
;
HRESULT
hr
;
TRACE
(
"(%p, %s, %p)
\n
"
,
outer
,
debugstr_guid
(
riid
),
ppv
);
if
(
outer
)
return
CLASS_E_NOAGGREGATION
;
if
(
!
(
This
=
SHAlloc
(
sizeof
(
*
This
))))
return
E_OUTOFMEMORY
;
This
->
IApplicationDestinations_iface
.
lpVtbl
=
&
ApplicationDestinationsVtbl
;
This
->
ref
=
0
;
hr
=
IUnknown_QueryInterface
(
&
This
->
IApplicationDestinations_iface
,
riid
,
ppv
);
if
(
FAILED
(
hr
))
SHFree
(
This
);
return
hr
;
}
typedef
struct
{
const
KNOWNFOLDERID
*
id
;
const
KNOWNFOLDERID
*
id
;
CSIDL_Type
type
;
CSIDL_Type
type
;
LPCWSTR
szValueName
;
LPCWSTR
szValueName
;
...
...
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