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
7ffcb0ea
Commit
7ffcb0ea
authored
Sep 08, 2003
by
Rolf Kalbermatter
Committed by
Alexandre Julliard
Sep 08, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change parameter in SHGetSpecialFolderPathA/W to int as documented in
MSDN. Add some more definitions and move SHGetDesktopFolder() from wine/obj_shellfolder.h to here.
parent
8d61c96d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
19 deletions
+18
-19
shellpath.c
dlls/shell32/shellpath.c
+5
-5
shlobj.h
include/shlobj.h
+13
-5
obj_shellfolder.h
include/wine/obj_shellfolder.h
+0
-9
No files found.
dlls/shell32/shellpath.c
View file @
7ffcb0ea
...
...
@@ -1014,7 +1014,7 @@ static const CSIDL_DATA CSIDL_Data[] =
BOOL
WINAPI
SHGetSpecialFolderPathA
(
HWND
hwndOwner
,
LPSTR
szPath
,
DWORD
csidl
,
int
csidl
,
BOOL
bCreate
)
{
CHAR
szValueName
[
MAX_PATH
],
szDefaultPath
[
MAX_PATH
],
szBuildPath
[
MAX_PATH
];
...
...
@@ -1024,7 +1024,7 @@ BOOL WINAPI SHGetSpecialFolderPathA (
DWORD
folder
=
csidl
&
CSIDL_FOLDER_MASK
;
CHAR
*
p
;
TRACE
(
"%p,%p,csidl=%
lu
,0x%04x
\n
"
,
hwndOwner
,
szPath
,
csidl
,
bCreate
);
TRACE
(
"%p,%p,csidl=%
d
,0x%04x
\n
"
,
hwndOwner
,
szPath
,
csidl
,
bCreate
);
if
((
folder
>=
sizeof
(
CSIDL_Data
)
/
sizeof
(
CSIDL_Data
[
0
]))
||
(
CSIDL_Data
[
folder
].
hRootKey
==
0
))
...
...
@@ -1163,7 +1163,7 @@ BOOL WINAPI SHGetSpecialFolderPathA (
BOOL
WINAPI
SHGetSpecialFolderPathW
(
HWND
hwndOwner
,
LPWSTR
szPath
,
DWORD
csidl
,
int
csidl
,
BOOL
bCreate
)
{
char
szTemp
[
MAX_PATH
];
...
...
@@ -1174,7 +1174,7 @@ BOOL WINAPI SHGetSpecialFolderPathW (
szPath
[
MAX_PATH
-
1
]
=
0
;
}
TRACE
(
"%p,%p,csidl=%
lu
,0x%04x
\n
"
,
hwndOwner
,
szPath
,
csidl
,
bCreate
);
TRACE
(
"%p,%p,csidl=%
d
,0x%04x
\n
"
,
hwndOwner
,
szPath
,
csidl
,
bCreate
);
return
TRUE
;
}
...
...
@@ -1185,7 +1185,7 @@ BOOL WINAPI SHGetSpecialFolderPathW (
BOOL
WINAPI
SHGetSpecialFolderPathAW
(
HWND
hwndOwner
,
LPVOID
szPath
,
DWORD
csidl
,
int
csidl
,
BOOL
bCreate
)
{
...
...
include/shlobj.h
View file @
7ffcb0ea
...
...
@@ -320,6 +320,7 @@ typedef struct tagBROWSEINFOW {
#define BIF_RETURNFSANCESTORS 0x0008
#define BIF_EDITBOX 0x0010
#define BIF_VALIDATE 0x0020
#define BIF_NEWDIALOGSTYLE 0x0040
#define BIF_BROWSEFORCOMPUTER 0x1000
#define BIF_BROWSEFORPRINTER 0x2000
...
...
@@ -371,6 +372,9 @@ LPITEMIDLIST WINAPI SHBrowseForFolderW(LPBROWSEINFOW lpbi);
#define SHDID_NET_SHARE 15
#define SHDID_NET_RESTOFNET 16
#define SHDID_NET_OTHER 17
#define SHDID_COMPUTER_IMAGING 18
#define SHDID_COMPUTER_AUDIO 19
#define SHDID_COMPUTER_SHAREDDOCS 20
typedef
struct
_SHDESCRIPTIONID
{
DWORD
dwDescriptionId
;
...
...
@@ -381,12 +385,10 @@ HRESULT WINAPI SHGetDataFromIDListA(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int n
HRESULT
WINAPI
SHGetDataFromIDListW
(
LPSHELLFOLDER
psf
,
LPCITEMIDLIST
pidl
,
int
nFormat
,
LPVOID
pv
,
int
cb
);
#define SHGetDataFromIDList WINELIB_NAME_AW(SHGetDataFromIDList)
BOOL
WINAPI
SHGetSpecialFolderPathA
(
HWND
hwndOwner
,
LPSTR
szPath
,
DWORD
csidl
,
BOOL
bCreate
);
BOOL
WINAPI
SHGetSpecialFolderPathW
(
HWND
hwndOwner
,
LPWSTR
szPath
,
DWORD
csidl
,
BOOL
bCreate
);
BOOL
WINAPI
SHGetSpecialFolderPathA
(
HWND
hwndOwner
,
LPSTR
szPath
,
int
nFolder
,
BOOL
bCreate
);
BOOL
WINAPI
SHGetSpecialFolderPathW
(
HWND
hwndOwner
,
LPWSTR
szPath
,
int
nFolder
,
BOOL
bCreate
);
#define SHGetSpecialFolderPath WINELIB_NAME_AW(SHGetSpecialFolderPath)
HRESULT
WINAPI
SHGetSpecialFolderLocation
(
HWND
hwndOwner
,
INT
nFolder
,
LPITEMIDLIST
*
ppidl
);
/****************************************************************************
* shlview structures
*/
...
...
@@ -555,7 +557,8 @@ DWORD WINAPI SHCreateDirectoryExW(HWND, LPCWSTR, LPSECURITY_ATTRIBUTES);
/****************************************************************************
* SHGetSpecialFolderLocation API
*/
HRESULT
WINAPI
SHGetSpecialFolderLocation
(
HWND
,
INT
,
LPITEMIDLIST
*
);
HRESULT
WINAPI
SHGetSpecialFolderLocation
(
HWND
hwndOwner
,
int
nFolder
,
LPITEMIDLIST
*
ppidl
);
HRESULT
WINAPI
SHGetFolderLocation
(
HWND
hwndOwner
,
int
nFolder
,
HANDLE
hToken
,
DWORD
dwReserved
,
LPITEMIDLIST
*
ppidl
);
#define CSIDL_DESKTOP 0x0000
#define CSIDL_INTERNET 0x0001
...
...
@@ -624,6 +627,11 @@ HRESULT WINAPI SHGetSpecialFolderLocation(HWND, INT, LPITEMIDLIST *);
#define CSIDL_FLAG_MASK 0xff00
/****************************************************************************
* SHGetDesktopFolder API
*/
DWORD
WINAPI
SHGetDesktopFolder
(
IShellFolder
*
*
);
/****************************************************************************
* SHBindToParent API
*/
HRESULT
WINAPI
SHBindToParent
(
LPCITEMIDLIST
pidl
,
REFIID
riid
,
LPVOID
*
ppv
,
LPCITEMIDLIST
*
ppidlLast
);
...
...
include/wine/obj_shellfolder.h
View file @
7ffcb0ea
...
...
@@ -33,15 +33,6 @@ extern "C" {
DEFINE_GUID
(
IID_IPersistFolder3
,
0xcef04fdf
,
0xfe72
,
0x11d2
,
0x87
,
0xa5
,
0x0
,
0xc0
,
0x4f
,
0x68
,
0x37
,
0xcf
);
typedef
struct
IPersistFolder3
IPersistFolder3
,
*
LPPERSISTFOLDER3
;
/************************************************************************
* Desktopfolder
*/
extern
IShellFolder
*
pdesktopfolder
;
DWORD
WINAPI
SHGetDesktopFolder
(
IShellFolder
*
*
);
/* GetDetailsEx */
#define PID_FINDDATA 0
#define PID_NETRESOURCE 1
...
...
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