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
b6d97d56
Commit
b6d97d56
authored
Aug 19, 2005
by
Michael Jung
Committed by
Alexandre Julliard
Aug 19, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added stubbed implementation of IPersistPropertyBag interface.
Register unixfs as CLSID_FolderShortcut.
parent
87e878a6
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
79 additions
and
0 deletions
+79
-0
regsvr.c
dlls/shell32/regsvr.c
+9
-0
shell32_main.h
dlls/shell32/shell32_main.h
+1
-0
shellole.c
dlls/shell32/shellole.c
+1
-0
shfldr_unixfs.c
dlls/shell32/shfldr_unixfs.c
+68
-0
No files found.
dlls/shell32/regsvr.c
View file @
b6d97d56
...
...
@@ -621,6 +621,15 @@ static struct regsvr_coclass const coclass_list[] = {
SFGAO_FILESYSANCESTOR
|
SFGAO_FOLDER
|
SFGAO_HASSUBFOLDER
,
SFGAO_FILESYSTEM
},
{
&
CLSID_FolderShortcut
,
"Foldershortcut"
,
NULL
,
"shell32.dll"
,
"Apartment"
,
SHELLFOLDER_ATTRIBUTES
|
SHELLFOLDER_CALLFORATTRIBUTES
,
SFGAO_FILESYSTEM
|
SFGAO_FOLDER
|
SFGAO_LINK
,
SFGAO_HASSUBFOLDER
|
SFGAO_FILESYSTEM
|
SFGAO_FOLDER
|
SFGAO_FILESYSANCESTOR
},
{
NULL
}
/* list terminator */
};
...
...
dlls/shell32/shell32_main.h
View file @
b6d97d56
...
...
@@ -94,6 +94,7 @@ HRESULT WINAPI IFileSystemBindData_Constructor(const WIN32_FIND_DATAW *pfd, LPBC
HRESULT
WINAPI
IControlPanel_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
);
HRESULT
WINAPI
UnixFolder_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
);
HRESULT
WINAPI
UnixDosFolder_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
);
HRESULT
WINAPI
FolderShortcut_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
);
extern
HRESULT
CPanel_GetIconLocationW
(
LPITEMIDLIST
,
LPWSTR
,
UINT
,
int
*
);
HRESULT
WINAPI
CPanel_ExtractIconA
(
LPITEMIDLIST
pidl
,
LPCSTR
pszFile
,
UINT
nIconIndex
,
HICON
*
phiconLarge
,
HICON
*
phiconSmall
,
UINT
nIconSize
);
HRESULT
WINAPI
CPanel_ExtractIconW
(
LPITEMIDLIST
pidl
,
LPCWSTR
pszFile
,
UINT
nIconIndex
,
HICON
*
phiconLarge
,
HICON
*
phiconSmall
,
UINT
nIconSize
);
...
...
dlls/shell32/shellole.c
View file @
b6d97d56
...
...
@@ -73,6 +73,7 @@ struct {
{
&
CLSID_AutoComplete
,
&
IAutoComplete_Constructor
},
{
&
CLSID_UnixFolder
,
&
UnixFolder_Constructor
},
{
&
CLSID_UnixDosFolder
,
&
UnixDosFolder_Constructor
},
{
&
CLSID_FolderShortcut
,
&
FolderShortcut_Constructor
},
{
NULL
,
NULL
}
};
...
...
dlls/shell32/shfldr_unixfs.c
View file @
b6d97d56
...
...
@@ -83,6 +83,7 @@ const GUID CLSID_UnixDosFolder = {0x9d20aae8, 0x0625, 0x44b0, {0x9c, 0xa7, 0x71,
typedef
struct
_UnixFolder
{
const
IShellFolder2Vtbl
*
lpIShellFolder2Vtbl
;
const
IPersistFolder3Vtbl
*
lpIPersistFolder3Vtbl
;
const
IPersistPropertyBagVtbl
*
lpIPersistPropertyBagVtbl
;
const
ISFHelperVtbl
*
lpISFHelperVtbl
;
LONG
m_cRef
;
CHAR
*
m_pszPath
;
...
...
@@ -511,6 +512,8 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_QueryInterface(IShellFolder2 *ifa
IsEqualIID
(
&
IID_IPersistFolder
,
riid
)
||
IsEqualIID
(
&
IID_IPersist
,
riid
))
{
*
ppv
=
&
This
->
lpIPersistFolder3Vtbl
;
}
else
if
(
IsEqualIID
(
&
IID_IPersistPropertyBag
,
riid
))
{
*
ppv
=
&
This
->
lpIPersistPropertyBagVtbl
;
}
else
if
(
IsEqualIID
(
&
IID_ISFHelper
,
riid
))
{
*
ppv
=
&
This
->
lpISFHelperVtbl
;
}
else
{
...
...
@@ -1242,6 +1245,65 @@ static const IPersistFolder3Vtbl UnixFolder_IPersistFolder3_Vtbl = {
UnixFolder_IPersistFolder3_GetFolderTargetInfo
};
static
HRESULT
WINAPI
UnixFolder_IPersistPropertyBag_QueryInterface
(
IPersistPropertyBag
*
This
,
REFIID
riid
,
void
**
ppvObject
)
{
return
UnixFolder_IShellFolder2_QueryInterface
(
(
IShellFolder2
*
)
ADJUST_THIS
(
UnixFolder
,
IPersistPropertyBag
,
This
),
riid
,
ppvObject
);
}
static
ULONG
WINAPI
UnixFolder_IPersistPropertyBag_AddRef
(
IPersistPropertyBag
*
This
)
{
return
UnixFolder_IShellFolder2_AddRef
(
(
IShellFolder2
*
)
ADJUST_THIS
(
UnixFolder
,
IPersistPropertyBag
,
This
));
}
static
ULONG
WINAPI
UnixFolder_IPersistPropertyBag_Release
(
IPersistPropertyBag
*
This
)
{
return
UnixFolder_IShellFolder2_Release
(
(
IShellFolder2
*
)
ADJUST_THIS
(
UnixFolder
,
IPersistPropertyBag
,
This
));
}
static
HRESULT
WINAPI
UnixFolder_IPersistPropertyBag_GetClassID
(
IPersistPropertyBag
*
iface
,
CLSID
*
pClassID
)
{
return
UnixFolder_IPersistFolder3_GetClassID
(
(
IPersistFolder3
*
)
&
ADJUST_THIS
(
UnixFolder
,
IPersistPropertyBag
,
iface
)
->
lpIPersistFolder3Vtbl
,
pClassID
);
}
static
HRESULT
WINAPI
UnixFolder_IPersistPropertyBag_InitNew
(
IPersistPropertyBag
*
iface
)
{
TRACE
(
"() stub
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
UnixFolder_IPersistPropertyBag_Load
(
IPersistPropertyBag
*
iface
,
IPropertyBag
*
pPropertyBag
,
IErrorLog
*
pErrorLog
)
{
TRACE
(
"() stub
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
UnixFolder_IPersistPropertyBag_Save
(
IPersistPropertyBag
*
iface
,
IPropertyBag
*
pPropertyBag
,
BOOL
fClearDirty
,
BOOL
fSaveAllProperties
)
{
TRACE
(
"() stub
\n
"
);
return
E_NOTIMPL
;
}
/* VTable for UnixFolder's IPersistPropertyBag interface.
*/
static
const
IPersistPropertyBagVtbl
UnixFolder_IPersistPropertyBag_Vtbl
=
{
UnixFolder_IPersistPropertyBag_QueryInterface
,
UnixFolder_IPersistPropertyBag_AddRef
,
UnixFolder_IPersistPropertyBag_Release
,
UnixFolder_IPersistPropertyBag_GetClassID
,
UnixFolder_IPersistPropertyBag_InitNew
,
UnixFolder_IPersistPropertyBag_Load
,
UnixFolder_IPersistPropertyBag_Save
};
static
HRESULT
WINAPI
UnixFolder_ISFHelper_QueryInterface
(
ISFHelper
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
{
...
...
@@ -1457,6 +1519,7 @@ static HRESULT CreateUnixFolder(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv, D
if
(
pUnixFolder
)
{
pUnixFolder
->
lpIShellFolder2Vtbl
=
&
UnixFolder_IShellFolder2_Vtbl
;
pUnixFolder
->
lpIPersistFolder3Vtbl
=
&
UnixFolder_IPersistFolder3_Vtbl
;
pUnixFolder
->
lpIPersistPropertyBagVtbl
=
&
UnixFolder_IPersistPropertyBag_Vtbl
;
pUnixFolder
->
lpISFHelperVtbl
=
&
UnixFolder_ISFHelper_Vtbl
;
pUnixFolder
->
m_cRef
=
0
;
pUnixFolder
->
m_pszPath
=
NULL
;
...
...
@@ -1480,6 +1543,11 @@ HRESULT WINAPI UnixDosFolder_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOI
return
CreateUnixFolder
(
pUnkOuter
,
riid
,
ppv
,
PATHMODE_DOS
,
&
CLSID_UnixDosFolder
);
}
HRESULT
WINAPI
FolderShortcut_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
)
{
TRACE
(
"(pUnkOuter=%p, riid=%p, ppv=%p)
\n
"
,
pUnkOuter
,
riid
,
ppv
);
return
CreateUnixFolder
(
pUnkOuter
,
riid
,
ppv
,
PATHMODE_DOS
,
&
CLSID_FolderShortcut
);
}
/******************************************************************************
* UnixSubFolderIterator
*
...
...
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