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
63fecde9
Commit
63fecde9
authored
Sep 02, 2003
by
Martin Fuchs
Committed by
Alexandre Julliard
Sep 02, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Declare LPCITEMIDLIST as 'const' pointer and adjust shell32
implementation to the corrected type.
parent
8a4f2ada
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
94 additions
and
92 deletions
+94
-92
filedlg95.c
dlls/commdlg/filedlg95.c
+1
-1
filedlgbrowser.c
dlls/commdlg/filedlgbrowser.c
+2
-2
filedlgbrowser.h
dlls/commdlg/filedlgbrowser.h
+1
-1
brsfolder.c
dlls/shell32/brsfolder.c
+7
-7
changenotify.c
dlls/shell32/changenotify.c
+2
-2
dataobject.c
dlls/shell32/dataobject.c
+1
-1
debughlp.c
dlls/shell32/debughlp.c
+5
-6
iconcache.c
dlls/shell32/iconcache.c
+1
-1
pidl.c
dlls/shell32/pidl.c
+30
-30
pidl.h
dlls/shell32/pidl.h
+1
-1
shell32_main.c
dlls/shell32/shell32_main.c
+3
-3
shell32_main.h
dlls/shell32/shell32_main.h
+4
-4
shfldr.h
dlls/shell32/shfldr.h
+3
-3
shlfolder.c
dlls/shell32/shlfolder.c
+8
-6
shlmenu.c
dlls/shell32/shlmenu.c
+4
-4
shlview.c
dlls/shell32/shlview.c
+7
-7
shv_bg_cmenu.c
dlls/shell32/shv_bg_cmenu.c
+1
-1
shv_item_cmenu.c
dlls/shell32/shv_item_cmenu.c
+2
-2
undocshell.h
dlls/shell32/undocshell.h
+8
-8
shlobj.h
include/shlobj.h
+3
-2
No files found.
dlls/commdlg/filedlg95.c
View file @
63fecde9
...
...
@@ -3109,7 +3109,7 @@ LPITEMIDLIST GetPidlFromName(IShellFolder *lpsf,LPWSTR lpcstrFileName)
/*
*/
BOOL
IsPidlFolder
(
LPSHELLFOLDER
psf
,
LPITEMIDLIST
pidl
)
BOOL
IsPidlFolder
(
LPSHELLFOLDER
psf
,
LP
C
ITEMIDLIST
pidl
)
{
ULONG
uAttr
=
SFGAO_FOLDER
|
SFGAO_HASSUBFOLDER
;
HRESULT
ret
;
...
...
dlls/commdlg/filedlgbrowser.c
View file @
63fecde9
...
...
@@ -102,7 +102,7 @@ static void COMDLG32_UpdateCurrentDir(FileOpenDlgInfos *fodInfos)
}
/* copied from shell32 to avoid linking to it */
static
HRESULT
COMDLG32_StrRetToStrNW
(
LPVOID
dest
,
DWORD
len
,
LPSTRRET
src
,
LPITEMIDLIST
pidl
)
static
HRESULT
COMDLG32_StrRetToStrNW
(
LPVOID
dest
,
DWORD
len
,
LPSTRRET
src
,
LP
C
ITEMIDLIST
pidl
)
{
TRACE
(
"dest=%p len=0x%lx strret=%p pidl=%p stub
\n
"
,
dest
,
len
,
src
,
pidl
);
...
...
@@ -722,7 +722,7 @@ HRESULT WINAPI IShellBrowserImpl_ICommDlgBrowser_OnDefaultCommand(ICommDlgBrowse
HRESULT
hRes
;
ULONG
ulAttr
=
SFGAO_FOLDER
|
SFGAO_HASSUBFOLDER
;
IShellFolder_GetAttributesOf
(
fodInfos
->
Shell
.
FOIShellFolder
,
1
,
&
pidl
,
&
ulAttr
);
IShellFolder_GetAttributesOf
(
fodInfos
->
Shell
.
FOIShellFolder
,
1
,
(
LPCITEMIDLIST
*
)
&
pidl
,
&
ulAttr
);
if
(
ulAttr
&
(
SFGAO_FOLDER
|
SFGAO_HASSUBFOLDER
)
)
{
hRes
=
IShellBrowser_BrowseObject
((
IShellBrowser
*
)
This
,
pidl
,
SBSP_RELATIVE
);
...
...
dlls/commdlg/filedlgbrowser.h
View file @
63fecde9
...
...
@@ -151,7 +151,7 @@ LPITEMIDLIST GetPidlFromDataObject ( IDataObject *doSelected, UINT nPidlIndex);
UINT
GetNumSelected
(
IDataObject
*
doSelected
);
/* pidl handling */
BOOL
IsPidlFolder
(
LPSHELLFOLDER
psf
,
LPITEMIDLIST
pidl
);
BOOL
IsPidlFolder
(
LPSHELLFOLDER
psf
,
LP
C
ITEMIDLIST
pidl
);
/* Functions used by the EDIT box */
void
FILEDLG95_FILENAME_FillFromSelection
(
HWND
hwnd
);
...
...
dlls/shell32/brsfolder.c
View file @
63fecde9
...
...
@@ -40,7 +40,7 @@ static LPBROWSEINFOW lpBrowseInfo;
static
LPITEMIDLIST
pidlRet
;
static
void
FillTreeView
(
LPSHELLFOLDER
lpsf
,
LPITEMIDLIST
lpifq
,
HTREEITEM
hParent
,
IEnumIDList
*
lpe
);
static
HTREEITEM
InsertTreeViewItem
(
IShellFolder
*
lpsf
,
LP
ITEMIDLIST
pidl
,
LP
ITEMIDLIST
pidlParent
,
IEnumIDList
*
pEnumIL
,
HTREEITEM
hParent
);
static
HTREEITEM
InsertTreeViewItem
(
IShellFolder
*
lpsf
,
LP
CITEMIDLIST
pidl
,
LPC
ITEMIDLIST
pidlParent
,
IEnumIDList
*
pEnumIL
,
HTREEITEM
hParent
);
#define SUPPORTEDFLAGS (BIF_STATUSTEXT | \
BIF_BROWSEFORCOMPUTER | \
...
...
@@ -153,7 +153,7 @@ typedef struct tagID
IEnumIDList
*
pEnumIL
;
}
TV_ITEMDATA
,
*
LPTV_ITEMDATA
;
static
BOOL
GetName
(
LPSHELLFOLDER
lpsf
,
LPITEMIDLIST
lpi
,
DWORD
dwFlags
,
LPWSTR
lpFriendlyName
)
static
BOOL
GetName
(
LPSHELLFOLDER
lpsf
,
LP
C
ITEMIDLIST
lpi
,
DWORD
dwFlags
,
LPWSTR
lpFriendlyName
)
{
BOOL
bSuccess
=
TRUE
;
STRRET
str
;
...
...
@@ -173,7 +173,7 @@ static BOOL GetName(LPSHELLFOLDER lpsf, LPITEMIDLIST lpi, DWORD dwFlags, LPWSTR
return
bSuccess
;
}
static
HTREEITEM
InsertTreeViewItem
(
IShellFolder
*
lpsf
,
LP
ITEMIDLIST
pidl
,
LP
ITEMIDLIST
pidlParent
,
IEnumIDList
*
pEnumIL
,
HTREEITEM
hParent
)
static
HTREEITEM
InsertTreeViewItem
(
IShellFolder
*
lpsf
,
LP
CITEMIDLIST
pidl
,
LPC
ITEMIDLIST
pidlParent
,
IEnumIDList
*
pEnumIL
,
HTREEITEM
hParent
)
{
TVITEMW
tvi
;
TVINSERTSTRUCTW
tvins
;
...
...
@@ -212,7 +212,7 @@ static HTREEITEM InsertTreeViewItem(IShellFolder * lpsf, LPITEMIDLIST pidl, LPIT
static
void
FillTreeView
(
IShellFolder
*
lpsf
,
LPITEMIDLIST
pidl
,
HTREEITEM
hParent
,
IEnumIDList
*
lpe
)
{
HTREEITEM
hPrev
=
0
;
LPITEMIDLIST
pidlTemp
=
0
;
LPITEMIDLIST
pidlTemp
=
0
;
ULONG
ulFetched
;
HRESULT
hr
;
HWND
hwnd
=
GetParent
(
hwndTreeView
);
...
...
@@ -226,7 +226,7 @@ static void FillTreeView(IShellFolder * lpsf, LPITEMIDLIST pidl, HTREEITEM hPar
ULONG
ulAttrs
=
SFGAO_HASSUBFOLDER
|
SFGAO_FOLDER
;
IEnumIDList
*
pEnumIL
=
NULL
;
IShellFolder
*
pSFChild
=
NULL
;
IShellFolder_GetAttributesOf
(
lpsf
,
1
,
&
pidlTemp
,
&
ulAttrs
);
IShellFolder_GetAttributesOf
(
lpsf
,
1
,
(
LPCITEMIDLIST
*
)
&
pidlTemp
,
&
ulAttrs
);
if
(
ulAttrs
&
SFGAO_FOLDER
)
{
hr
=
IShellFolder_BindToObject
(
lpsf
,
pidlTemp
,
NULL
,
&
IID_IShellFolder
,(
LPVOID
*
)
&
pSFChild
);
...
...
@@ -278,14 +278,14 @@ static void BrsFolder_CheckValidSelection(HWND hWndTree, LPTV_ITEMDATA lptvid)
if
(
lpBrowseInfo
->
ulFlags
&
BIF_RETURNFSANCESTORS
)
{
dwAttributes
=
SFGAO_FILESYSANCESTOR
|
SFGAO_FILESYSTEM
;
if
(
FAILED
(
IShellFolder_GetAttributesOf
(
lptvid
->
lpsfParent
,
1
,
&
lptvid
->
lpi
,
&
dwAttributes
))
||
if
(
FAILED
(
IShellFolder_GetAttributesOf
(
lptvid
->
lpsfParent
,
1
,
(
LPCITEMIDLIST
*
)
&
lptvid
->
lpi
,
&
dwAttributes
))
||
!
dwAttributes
)
bEnabled
=
FALSE
;
}
if
(
lpBrowseInfo
->
ulFlags
&
BIF_RETURNONLYFSDIRS
)
{
dwAttributes
=
SFGAO_FOLDER
|
SFGAO_FILESYSTEM
;
if
(
FAILED
(
IShellFolder_GetAttributesOf
(
lptvid
->
lpsfParent
,
1
,
&
lptvid
->
lpi
,
&
dwAttributes
))
||
if
(
FAILED
(
IShellFolder_GetAttributesOf
(
lptvid
->
lpsfParent
,
1
,
(
LPCITEMIDLIST
*
)
&
lptvid
->
lpi
,
&
dwAttributes
))
||
(
dwAttributes
!=
(
SFGAO_FOLDER
|
SFGAO_FILESYSTEM
)))
bEnabled
=
FALSE
;
}
...
...
dlls/shell32/changenotify.c
View file @
63fecde9
...
...
@@ -48,7 +48,7 @@ typedef struct _NOTIFICATIONLIST
LONG
wEventMask
;
/* subscribed events */
LONG
wSignalledEvent
;
/* event that occurred */
DWORD
dwFlags
;
/* client flags */
LPCITEMIDLIST
pidlSignaled
;
/*pidl of the path that caused the signal*/
LPCITEMIDLIST
pidlSignaled
;
/*pidl of the path that caused the signal*/
}
NOTIFICATIONLIST
,
*
LPNOTIFICATIONLIST
;
...
...
@@ -424,7 +424,7 @@ DWORD WINAPI NTSHChangeNotifyRegister(
HANDLE
WINAPI
SHChangeNotification_Lock
(
HANDLE
hChange
,
DWORD
dwProcessId
,
LPITEMIDLIST
**
lppidls
,
LP
C
ITEMIDLIST
**
lppidls
,
LPLONG
lpwEventId
)
{
DWORD
i
;
...
...
dlls/shell32/dataobject.c
View file @
63fecde9
...
...
@@ -226,7 +226,7 @@ static struct ICOM_VTABLE(IDataObject) dtovt;
/**************************************************************************
* IDataObject_Constructor
*/
LPDATAOBJECT
IDataObject_Constructor
(
HWND
hwndOwner
,
LP
ITEMIDLIST
pMyPidl
,
LP
ITEMIDLIST
*
apidl
,
UINT
cidl
)
LPDATAOBJECT
IDataObject_Constructor
(
HWND
hwndOwner
,
LP
CITEMIDLIST
pMyPidl
,
LPC
ITEMIDLIST
*
apidl
,
UINT
cidl
)
{
IDataObjectImpl
*
dto
;
...
...
dlls/shell32/debughlp.c
View file @
63fecde9
...
...
@@ -32,7 +32,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
pidl
);
LPITEMIDLIST
_dbg_ILGetNext
(
LP
ITEMIDLIST
pidl
)
LPITEMIDLIST
_dbg_ILGetNext
(
LPC
ITEMIDLIST
pidl
)
{
WORD
len
;
...
...
@@ -41,8 +41,7 @@ LPITEMIDLIST _dbg_ILGetNext(LPITEMIDLIST pidl)
len
=
pidl
->
mkid
.
cb
;
if
(
len
)
{
pidl
=
(
LPITEMIDLIST
)
(((
LPBYTE
)
pidl
)
+
len
);
return
pidl
;
return
(
LPITEMIDLIST
)
(((
LPBYTE
)
pidl
)
+
len
);
}
}
return
NULL
;
...
...
@@ -53,7 +52,7 @@ BOOL _dbg_ILIsDesktop(LPCITEMIDLIST pidl)
return
(
!
pidl
||
(
pidl
&&
pidl
->
mkid
.
cb
==
0x00
)
);
}
LPPIDLDATA
_dbg_ILGetDataPointer
(
LPITEMIDLIST
pidl
)
LPPIDLDATA
_dbg_ILGetDataPointer
(
LP
C
ITEMIDLIST
pidl
)
{
if
(
pidl
&&
pidl
->
mkid
.
cb
!=
0x00
)
return
(
LPPIDLDATA
)
&
(
pidl
->
mkid
.
abID
);
...
...
@@ -174,7 +173,7 @@ DWORD _dbg_ILSimpleGetText (LPCITEMIDLIST pidl, LPSTR szOut, UINT uOutSize)
void
pdump
(
LPCITEMIDLIST
pidl
)
{
LPITEMIDLIST
pidltemp
=
pidl
;
LP
C
ITEMIDLIST
pidltemp
=
pidl
;
if
(
!
TRACE_ON
(
pidl
))
return
;
...
...
@@ -220,7 +219,7 @@ void pdump (LPCITEMIDLIST pidl)
BOOL
pcheck
(
LPCITEMIDLIST
pidl
)
{
DWORD
type
,
ret
=
TRUE
;
LPITEMIDLIST
pidltemp
=
pidl
;
LP
C
ITEMIDLIST
pidltemp
=
pidl
;
if
(
pidltemp
&&
pidltemp
->
mkid
.
cb
)
{
do
...
...
dlls/shell32/iconcache.c
View file @
63fecde9
...
...
@@ -320,7 +320,7 @@ BOOL WINAPI Shell_GetImageList(HIMAGELIST * lpBigList, HIMAGELIST * lpSmallList)
*/
BOOL
PidlToSicIndex
(
IShellFolder
*
sh
,
LPITEMIDLIST
pidl
,
LP
C
ITEMIDLIST
pidl
,
BOOL
bBigIcon
,
UINT
uFlags
,
UINT
*
pIndex
)
...
...
dlls/shell32/pidl.c
View file @
63fecde9
...
...
@@ -87,7 +87,7 @@ BOOL WINAPI ILGetDisplayNameExW(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, LPWSTR pa
{
LPSHELLFOLDER
psfParent
,
lsf
=
psf
;
HRESULT
ret
=
NO_ERROR
;
LPITEMIDLIST
pidllast
;
LP
C
ITEMIDLIST
pidllast
;
STRRET
strret
;
DWORD
flag
;
...
...
@@ -176,8 +176,8 @@ BOOL WINAPI ILGetDisplayName(LPCITEMIDLIST pidl, LPVOID path)
* NOTES
* observed: pidl=Desktop return=pidl
*/
LPITEMIDLIST
WINAPI
ILFindLastID
(
LPITEMIDLIST
pidl
)
{
LPITEMIDLIST
pidlLast
=
pidl
;
LPITEMIDLIST
WINAPI
ILFindLastID
(
LP
C
ITEMIDLIST
pidl
)
{
LP
C
ITEMIDLIST
pidlLast
=
pidl
;
TRACE
(
"(pidl=%p)
\n
"
,
pidl
);
...
...
@@ -186,7 +186,7 @@ LPITEMIDLIST WINAPI ILFindLastID(LPITEMIDLIST pidl)
pidlLast
=
pidl
;
pidl
=
ILGetNext
(
pidl
);
}
return
pidlLast
;
return
(
LPITEMIDLIST
)
pidlLast
;
}
/*************************************************************************
* ILRemoveLastID [SHELL32.17]
...
...
@@ -319,7 +319,7 @@ HRESULT WINAPI ILLoadFromStream (IStream * pStream, LPITEMIDLIST * ppPidl)
*/
HRESULT
WINAPI
ILSaveToStream
(
IStream
*
pStream
,
LPCITEMIDLIST
pPidl
)
{
LPITEMIDLIST
pidl
;
LP
C
ITEMIDLIST
pidl
;
WORD
wLen
=
0
;
HRESULT
ret
=
E_FAIL
;
...
...
@@ -445,8 +445,8 @@ BOOL WINAPI ILIsEqual(LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2)
char
szData1
[
MAX_PATH
];
char
szData2
[
MAX_PATH
];
LPITEMIDLIST
pidltemp1
=
pidl1
;
LPITEMIDLIST
pidltemp2
=
pidl2
;
LP
C
ITEMIDLIST
pidltemp1
=
pidl1
;
LP
C
ITEMIDLIST
pidltemp2
=
pidl2
;
TRACE
(
"pidl1=%p pidl2=%p
\n
"
,
pidl1
,
pidl2
);
...
...
@@ -490,8 +490,8 @@ BOOL WINAPI ILIsParent( LPCITEMIDLIST pidlParent, LPCITEMIDLIST pidlChild, BOOL
char
szData1
[
MAX_PATH
];
char
szData2
[
MAX_PATH
];
LPITEMIDLIST
pParent
=
pidlParent
;
LPITEMIDLIST
pChild
=
pidlChild
;
LP
C
ITEMIDLIST
pParent
=
pidlParent
;
LP
C
ITEMIDLIST
pChild
=
pidlChild
;
TRACE
(
"%p %p %x
\n
"
,
pidlParent
,
pidlChild
,
bImmediate
);
...
...
@@ -528,14 +528,14 @@ BOOL WINAPI ILIsParent( LPCITEMIDLIST pidlParent, LPCITEMIDLIST pidlChild, BOOL
* pidl2 shorter pidl1 0
* pidl2 equal pidl1 pointer to last 0x00-element of pidl2
*/
LPITEMIDLIST
WINAPI
ILFindChild
(
LPCITEMIDLIST
pidl1
,
LPCITEMIDLIST
pidl2
)
LPITEMIDLIST
WINAPI
ILFindChild
(
LPCITEMIDLIST
pidl1
,
LPCITEMIDLIST
pidl2
)
{
char
szData1
[
MAX_PATH
];
char
szData2
[
MAX_PATH
];
LPITEMIDLIST
pidltemp1
=
pidl1
;
LPITEMIDLIST
pidltemp2
=
pidl2
;
LPITEMIDLIST
ret
=
NULL
;
LP
C
ITEMIDLIST
pidltemp1
=
pidl1
;
LP
C
ITEMIDLIST
pidltemp2
=
pidl2
;
LP
C
ITEMIDLIST
ret
=
NULL
;
TRACE
(
"pidl1=%p pidl2=%p
\n
"
,
pidl1
,
pidl2
);
...
...
@@ -572,7 +572,7 @@ LPITEMIDLIST WINAPI ILFindChild(LPCITEMIDLIST pidl1,LPCITEMIDLIST pidl2)
}
}
TRACE_
(
shell
)(
"--- %p
\n
"
,
ret
);
return
ret
;
/* pidl 1 is shorter */
return
(
LPITEMIDLIST
)
ret
;
/* pidl 1 is shorter */
}
/*************************************************************************
...
...
@@ -662,9 +662,9 @@ LPITEMIDLIST WINAPI SHLogILFromFSIL(LPITEMIDLIST pidl)
* NOTES
* exported by ordinal
*/
DWORD
WINAPI
ILGetSize
(
LPITEMIDLIST
pidl
)
DWORD
WINAPI
ILGetSize
(
LP
C
ITEMIDLIST
pidl
)
{
LPSHITEMID
si
=
&
(
pidl
->
mkid
);
LP
C
SHITEMID
si
=
&
(
pidl
->
mkid
);
DWORD
len
=
0
;
if
(
pidl
)
...
...
@@ -688,7 +688,7 @@ DWORD WINAPI ILGetSize(LPITEMIDLIST pidl)
* simple pidl -> pointer to 0x0000 element
*
*/
LPITEMIDLIST
WINAPI
ILGetNext
(
LPITEMIDLIST
pidl
)
LPITEMIDLIST
WINAPI
ILGetNext
(
LP
C
ITEMIDLIST
pidl
)
{
WORD
len
;
...
...
@@ -701,7 +701,7 @@ LPITEMIDLIST WINAPI ILGetNext(LPITEMIDLIST pidl)
{
pidl
=
(
LPITEMIDLIST
)
(((
LPBYTE
)
pidl
)
+
len
);
TRACE
(
"-- %p
\n
"
,
pidl
);
return
pidl
;
return
(
LPITEMIDLIST
)
pidl
;
}
}
return
NULL
;
...
...
@@ -764,7 +764,7 @@ DWORD WINAPI ILFree(LPITEMIDLIST pidl)
* ILGlobalFree [SHELL32.156]
*
*/
void
WINAPI
ILGlobalFree
(
LP
C
ITEMIDLIST
pidl
)
void
WINAPI
ILGlobalFree
(
LPITEMIDLIST
pidl
)
{
TRACE
(
"%p
\n
"
,
pidl
);
...
...
@@ -1363,14 +1363,14 @@ LPITEMIDLIST _ILCreate(PIDLTYPE type, LPCVOID pIn, UINT uInSize)
case
PT_SPECIAL
:
case
PT_MYCOMP
:
pData
=
_ILGetDataPointer
(
pidlOut
);
pData
=
_ILGetDataPointer
(
pidlOut
);
pData
->
type
=
type
;
memcpy
(
&
(
pData
->
u
.
mycomp
.
guid
),
pIn
,
uInSize
);
TRACE
(
"-- create GUID-pidl %s
\n
"
,
debugstr_guid
(
&
(
pData
->
u
.
mycomp
.
guid
)));
break
;
case
PT_DRIVE
:
pData
=
_ILGetDataPointer
(
pidlOut
);
pData
=
_ILGetDataPointer
(
pidlOut
);
pData
->
type
=
type
;
pszDest
=
_ILGetTextPointer
(
pidlOut
);
memcpy
(
pszDest
,
pIn
,
uInSize
);
...
...
@@ -1379,7 +1379,7 @@ LPITEMIDLIST _ILCreate(PIDLTYPE type, LPCVOID pIn, UINT uInSize)
case
PT_FOLDER
:
case
PT_VALUE
:
pData
=
_ILGetDataPointer
(
pidlOut
);
pData
=
_ILGetDataPointer
(
pidlOut
);
pData
->
type
=
type
;
pszDest
=
_ILGetTextPointer
(
pidlOut
);
memcpy
(
pszDest
,
pIn
,
uInSize
);
...
...
@@ -1588,7 +1588,7 @@ DWORD _ILSimpleGetTextW (LPCITEMIDLIST pidl, LPWSTR szOut, UINT uOutSize)
**************************************************************************
* _ILGetDataPointer()
*/
LPPIDLDATA
_ILGetDataPointer
(
LPITEMIDLIST
pidl
)
LPPIDLDATA
_ILGetDataPointer
(
LP
C
ITEMIDLIST
pidl
)
{
if
(
pidl
&&
pidl
->
mkid
.
cb
!=
0x00
)
return
(
LPPIDLDATA
)
&
(
pidl
->
mkid
.
abID
);
...
...
@@ -1602,7 +1602,7 @@ LPPIDLDATA _ILGetDataPointer(LPITEMIDLIST pidl)
LPSTR
_ILGetTextPointer
(
LPCITEMIDLIST
pidl
)
{
/* TRACE(pidl,"(pidl%p)\n", pidl);*/
LPPIDLDATA
pdata
=
_ILGetDataPointer
(
pidl
);
LPPIDLDATA
pdata
=
_ILGetDataPointer
(
pidl
);
if
(
pdata
)
{
...
...
@@ -1707,7 +1707,7 @@ REFIID _ILGetGUIDPointer(LPCITEMIDLIST pidl)
*/
BOOL
_ILGetFileDateTime
(
LPCITEMIDLIST
pidl
,
FILETIME
*
pFt
)
{
LPPIDLDATA
pdata
=
_ILGetDataPointer
(
pidl
);
LPPIDLDATA
pdata
=
_ILGetDataPointer
(
pidl
);
if
(
!
pdata
)
return
FALSE
;
...
...
@@ -1762,7 +1762,7 @@ BOOL _ILGetFileDate (LPCITEMIDLIST pidl, LPSTR pOut, UINT uOutSize)
*/
DWORD
_ILGetFileSize
(
LPCITEMIDLIST
pidl
,
LPSTR
pOut
,
UINT
uOutSize
)
{
LPPIDLDATA
pdata
=
_ILGetDataPointer
(
pidl
);
LPPIDLDATA
pdata
=
_ILGetDataPointer
(
pidl
);
DWORD
dwSize
;
if
(
!
pdata
)
return
0
;
...
...
@@ -1782,7 +1782,7 @@ BOOL _ILGetExtension (LPCITEMIDLIST pidl, LPSTR pOut, UINT uOutSize)
{
char
szTemp
[
MAX_PATH
];
const
char
*
pPoint
;
LPITEMIDLIST
pidlTemp
=
pidl
;
LP
C
ITEMIDLIST
pidlTemp
=
pidl
;
TRACE
(
"pidl=%p
\n
"
,
pidl
);
...
...
@@ -1864,7 +1864,7 @@ void _ILGetFileType(LPCITEMIDLIST pidl, LPSTR pOut, UINT uOutSize)
*/
DWORD
_ILGetFileAttributes
(
LPCITEMIDLIST
pidl
,
LPSTR
pOut
,
UINT
uOutSize
)
{
LPPIDLDATA
pData
=
_ILGetDataPointer
(
pidl
);
LPPIDLDATA
pData
=
_ILGetDataPointer
(
pidl
);
WORD
wAttrib
=
0
;
int
i
;
...
...
@@ -1929,7 +1929,7 @@ void _ILFreeaPidl(LPITEMIDLIST * apidl, UINT cidl)
*
* copies an aPidl struct
*/
LPITEMIDLIST
*
_ILCopyaPidl
(
LP
ITEMIDLIST
*
apidlsrc
,
UINT
cidl
)
LPITEMIDLIST
*
_ILCopyaPidl
(
LPC
ITEMIDLIST
*
apidlsrc
,
UINT
cidl
)
{
UINT
i
;
LPITEMIDLIST
*
apidldest
=
(
LPITEMIDLIST
*
)
SHAlloc
(
cidl
*
sizeof
(
LPITEMIDLIST
));
...
...
@@ -1946,7 +1946,7 @@ LPITEMIDLIST * _ILCopyaPidl(LPITEMIDLIST * apidlsrc, UINT cidl)
*
* creates aPidl from CIDA
*/
LPITEMIDLIST
*
_ILCopyCidaToaPidl
(
LPITEMIDLIST
*
pidl
,
LPIDA
cida
)
LPITEMIDLIST
*
_ILCopyCidaToaPidl
(
LPITEMIDLIST
*
pidl
,
LPIDA
cida
)
{
UINT
i
;
LPITEMIDLIST
*
dst
=
(
LPITEMIDLIST
*
)
SHAlloc
(
cida
->
cidl
*
sizeof
(
LPITEMIDLIST
));
...
...
dlls/shell32/pidl.h
View file @
63fecde9
...
...
@@ -198,7 +198,7 @@ BOOL pcheck (LPCITEMIDLIST pidl);
* aPidl helper
*/
void
_ILFreeaPidl
(
LPITEMIDLIST
*
apidl
,
UINT
cidl
);
LPITEMIDLIST
*
_ILCopyaPidl
(
LPITEMIDLIST
*
apidlsrc
,
UINT
cidl
);
LPITEMIDLIST
*
_ILCopyaPidl
(
LP
C
ITEMIDLIST
*
apidlsrc
,
UINT
cidl
);
LPITEMIDLIST
*
_ILCopyCidaToaPidl
(
LPITEMIDLIST
*
pidl
,
LPIDA
cida
);
BOOL
WINAPI
ILGetDisplayNameExA
(
LPSHELLFOLDER
psf
,
LPCITEMIDLIST
pidl
,
LPSTR
path
,
DWORD
type
);
...
...
dlls/shell32/shell32_main.c
View file @
63fecde9
...
...
@@ -317,7 +317,7 @@ DWORD WINAPI SHGetFileInfoA(LPCSTR path,DWORD dwFileAttributes,
{
/* get the parent shellfolder */
if
(
pidl
)
{
hr
=
SHBindToParent
(
pidl
,
&
IID_IShellFolder
,
(
LPVOID
*
)
&
psfParent
,
&
pidlLast
);
hr
=
SHBindToParent
(
pidl
,
&
IID_IShellFolder
,
(
LPVOID
*
)
&
psfParent
,
(
LPCITEMIDLIST
*
)
&
pidlLast
);
ILFree
(
pidl
);
}
else
{
ERR
(
"pidl is null!
\n
"
);
...
...
@@ -332,7 +332,7 @@ DWORD WINAPI SHGetFileInfoA(LPCSTR path,DWORD dwFileAttributes,
{
psfi
->
dwAttributes
=
0xffffffff
;
}
IShellFolder_GetAttributesOf
(
psfParent
,
1
,
&
pidlLast
,
&
(
psfi
->
dwAttributes
));
IShellFolder_GetAttributesOf
(
psfParent
,
1
,
(
LPCITEMIDLIST
*
)
&
pidlLast
,
&
(
psfi
->
dwAttributes
));
}
/* get the displayname */
...
...
@@ -387,7 +387,7 @@ DWORD WINAPI SHGetFileInfoA(LPCSTR path,DWORD dwFileAttributes,
if
(
SUCCEEDED
(
hr
)
&&
(
flags
&
SHGFI_ICONLOCATION
))
{
UINT
uDummy
,
uFlags
;
hr
=
IShellFolder_GetUIObjectOf
(
psfParent
,
0
,
1
,
&
pidlLast
,
&
IID_IExtractIconA
,
&
uDummy
,
(
LPVOID
*
)
&
pei
);
hr
=
IShellFolder_GetUIObjectOf
(
psfParent
,
0
,
1
,
(
LPCITEMIDLIST
*
)
&
pidlLast
,
&
IID_IExtractIconA
,
&
uDummy
,
(
LPVOID
*
)
&
pei
);
if
(
SUCCEEDED
(
hr
))
{
...
...
dlls/shell32/shell32_main.h
View file @
63fecde9
...
...
@@ -52,7 +52,7 @@ BOOL WINAPI Shell_GetImageList(HIMAGELIST * lpBigList, HIMAGELIST * lpSmallList)
#define INVALID_INDEX -1
BOOL
SIC_Initialize
(
void
);
void
SIC_Destroy
(
void
);
BOOL
PidlToSicIndex
(
IShellFolder
*
sh
,
LPITEMIDLIST
pidl
,
BOOL
bBigIcon
,
UINT
uFlags
,
UINT
*
pIndex
);
BOOL
PidlToSicIndex
(
IShellFolder
*
sh
,
LP
C
ITEMIDLIST
pidl
,
BOOL
bBigIcon
,
UINT
uFlags
,
UINT
*
pIndex
);
INT
SIC_GetIconIndex
(
LPCSTR
sSourceFile
,
INT
dwSourceIndex
);
/* Classes Root */
...
...
@@ -78,7 +78,7 @@ DWORD WINAPI ParseFieldW(LPCWSTR src, DWORD nField, LPWSTR dst, DWORD len);
/****************************************************************************
* Class constructors
*/
LPDATAOBJECT
IDataObject_Constructor
(
HWND
hwndOwner
,
LP
ITEMIDLIST
myPidl
,
LP
ITEMIDLIST
*
apidl
,
UINT
cidl
);
LPDATAOBJECT
IDataObject_Constructor
(
HWND
hwndOwner
,
LP
CITEMIDLIST
myPidl
,
LPC
ITEMIDLIST
*
apidl
,
UINT
cidl
);
LPENUMFORMATETC
IEnumFORMATETC_Constructor
(
UINT
,
const
FORMATETC
[]);
LPCLASSFACTORY
IClassFactory_Constructor
(
REFCLSID
);
...
...
@@ -99,8 +99,8 @@ HRESULT WINAPI IDropTargetHelper_Constructor (IUnknown * pUnkOuter, REFIID riid,
LPENUMIDLIST
IEnumIDList_Constructor
(
LPCSTR
,
DWORD
,
DWORD
);
LPEXTRACTICONA
IExtractIconA_Constructor
(
LPITEMIDLIST
);
LPEXTRACTICONW
IExtractIconW_Constructor
(
LPITEMIDLIST
);
LPEXTRACTICONA
IExtractIconA_Constructor
(
LP
C
ITEMIDLIST
);
LPEXTRACTICONW
IExtractIconW_Constructor
(
LP
C
ITEMIDLIST
);
HRESULT
CreateStreamOnFile
(
LPCWSTR
pszFilename
,
DWORD
grfMode
,
IStream
**
ppstm
);
/* FIXME: rename the functions when the shell32.dll has it's own exports namespace */
...
...
dlls/shell32/shfldr.h
View file @
63fecde9
...
...
@@ -34,10 +34,10 @@ typedef struct {
LPCWSTR
GetNextElementW
(
LPCWSTR
pszNext
,
LPWSTR
pszOut
,
DWORD
dwOut
);
HRESULT
SHELL32_ParseNextElement
(
HWND
hwndOwner
,
IShellFolder2
*
psf
,
LPITEMIDLIST
*
pidlInOut
,
LPOLESTR
szNext
,
DWORD
*
pEaten
,
DWORD
*
pdwAttributes
);
HRESULT
SHELL32_GetItemAttributes
(
IShellFolder
*
psf
,
LPITEMIDLIST
pidl
,
LPDWORD
pdwAttributes
);
HRESULT
SHELL32_CoCreateInitSF
(
LP
ITEMIDLIST
pidlRoot
,
LP
ITEMIDLIST
pidlChild
,
REFCLSID
clsid
,
REFIID
iid
,
HRESULT
SHELL32_GetItemAttributes
(
IShellFolder
*
psf
,
LP
C
ITEMIDLIST
pidl
,
LPDWORD
pdwAttributes
);
HRESULT
SHELL32_CoCreateInitSF
(
LP
CITEMIDLIST
pidlRoot
,
LPC
ITEMIDLIST
pidlChild
,
REFCLSID
clsid
,
REFIID
iid
,
LPVOID
*
ppvOut
);
HRESULT
SHELL32_CoCreateInitSFEx
(
LP
ITEMIDLIST
pidlRoot
,
LPCSTR
pathRoot
,
LP
ITEMIDLIST
pidlChild
,
REFCLSID
clsid
,
HRESULT
SHELL32_CoCreateInitSFEx
(
LP
CITEMIDLIST
pidlRoot
,
LPCSTR
pathRoot
,
LPC
ITEMIDLIST
pidlChild
,
REFCLSID
clsid
,
REFIID
iid
,
LPVOID
*
ppvOut
);
HRESULT
SHELL32_GetDisplayNameOfChild
(
IShellFolder2
*
psf
,
LPCITEMIDLIST
pidl
,
DWORD
dwFlags
,
LPSTR
szOut
,
DWORD
dwOutLen
);
...
...
dlls/shell32/shlfolder.c
View file @
63fecde9
...
...
@@ -139,8 +139,8 @@ HRESULT SHELL32_ParseNextElement (HWND hwndOwner,
* This function is meant for virtual forders not backed by a file system
* folder.
*/
HRESULT
SHELL32_CoCreateInitSF
(
LPITEMIDLIST
pidlRoot
,
LPITEMIDLIST
pidlChild
,
REFCLSID
clsid
,
REFIID
iid
,
LPVOID
*
ppvOut
)
HRESULT
SHELL32_CoCreateInitSF
(
LP
C
ITEMIDLIST
pidlRoot
,
LP
C
ITEMIDLIST
pidlChild
,
REFCLSID
clsid
,
REFIID
iid
,
LPVOID
*
ppvOut
)
{
HRESULT
hr
;
...
...
@@ -177,8 +177,8 @@ HRESULT SHELL32_CoCreateInitSF (LPITEMIDLIST pidlRoot,
* pathRoot can be NULL for Folders beeing a drive.
* In this case the absolute path is build from pidlChild (eg. C:)
*/
HRESULT
SHELL32_CoCreateInitSFEx
(
LPITEMIDLIST
pidlRoot
,
LPCSTR
pathRoot
,
LPITEMIDLIST
pidlChild
,
REFCLSID
clsid
,
REFIID
riid
,
LPVOID
*
ppvOut
)
HRESULT
SHELL32_CoCreateInitSFEx
(
LP
C
ITEMIDLIST
pidlRoot
,
LPCSTR
pathRoot
,
LP
C
ITEMIDLIST
pidlChild
,
REFCLSID
clsid
,
REFIID
riid
,
LPVOID
*
ppvOut
)
{
HRESULT
hr
;
IPersistFolder3
*
ppf
;
...
...
@@ -203,7 +203,9 @@ HRESULT SHELL32_CoCreateInitSFEx (LPITEMIDLIST pidlRoot,
}
else
{
szDestPath
[
0
]
=
'\0'
;
}
lstrcatA
(
szDestPath
,
_ILGetTextPointer
(
pidlChild
));
if
(
pidlChild
)
lstrcatA
(
szDestPath
,
_ILGetTextPointer
(
pidlChild
));
/* fill the PERSIST_FOLDER_TARGET_INFO */
ppfti
.
dwAttributes
=
-
1
;
...
...
@@ -330,7 +332,7 @@ HRESULT SHELL32_GetDisplayNameOfChild (IShellFolder2 * psf,
*
* This functions does not set flags!! It only resets flags when nessesary.
*/
HRESULT
SHELL32_GetItemAttributes
(
IShellFolder
*
psf
,
LPITEMIDLIST
pidl
,
LPDWORD
pdwAttributes
)
HRESULT
SHELL32_GetItemAttributes
(
IShellFolder
*
psf
,
LP
C
ITEMIDLIST
pidl
,
LPDWORD
pdwAttributes
)
{
GUID
const
*
clsid
;
DWORD
dwAttributes
;
...
...
dlls/shell32/shlmenu.c
View file @
63fecde9
...
...
@@ -120,12 +120,12 @@ static LPFMINFO FM_SetMenuParameter(
* FM_InitMenuPopup [internal]
*
*/
static
int
FM_InitMenuPopup
(
HMENU
hmenu
,
LPITEMIDLIST
pAlternatePidl
)
static
int
FM_InitMenuPopup
(
HMENU
hmenu
,
LP
C
ITEMIDLIST
pAlternatePidl
)
{
IShellFolder
*
lpsf
,
*
lpsf2
;
ULONG
ulItemAttr
=
SFGAO_FOLDER
;
UINT
uID
,
uFlags
,
uEnumFlags
;
LPFNFMCALLBACK
lpfnCallback
;
LPITEMIDLIST
pidl
;
LP
C
ITEMIDLIST
pidl
;
char
sTemp
[
MAX_PATH
];
int
NumberOfItems
=
0
,
iIcon
;
MENUINFO
MenuInfo
;
...
...
@@ -150,7 +150,7 @@ static int FM_InitMenuPopup(HMENU hmenu, LPITEMIDLIST pAlternatePidl)
if
(
menudata
->
bInitialized
)
return
0
;
pidl
=
(
(
pAlternatePidl
)
?
pAlternatePidl
:
menudata
->
pidl
);
pidl
=
(
pAlternatePidl
?
pAlternatePidl
:
menudata
->
pidl
);
if
(
!
pidl
)
return
0
;
...
...
@@ -176,7 +176,7 @@ static int FM_InitMenuPopup(HMENU hmenu, LPITEMIDLIST pAlternatePidl)
while
((
!
bAbortInit
)
&&
(
NOERROR
==
IEnumIDList_Next
(
lpe
,
1
,
&
pidlTemp
,
&
ulFetched
)))
{
if
(
SUCCEEDED
(
IShellFolder_GetAttributesOf
(
lpsf
,
1
,
&
pidlTemp
,
&
ulItemAttr
)))
if
(
SUCCEEDED
(
IShellFolder_GetAttributesOf
(
lpsf
,
1
,
(
LPCITEMIDLIST
*
)
&
pidlTemp
,
&
ulItemAttr
)))
{
ILGetDisplayNameExA
(
NULL
,
pidlTemp
,
sTemp
,
ILGDN_FORPARSING
);
if
(
!
(
PidlToSicIndex
(
lpsf
,
pidlTemp
,
FALSE
,
0
,
&
iIcon
)))
...
...
dlls/shell32/shlview.c
View file @
63fecde9
...
...
@@ -813,7 +813,7 @@ static void ShellView_DoContextMenu(IShellViewImpl * This, WORD x, WORD y, BOOL
/* look, what's selected and create a context menu object of it*/
if
(
ShellView_GetSelections
(
This
)
)
{
IShellFolder_GetUIObjectOf
(
This
->
pSFParent
,
This
->
hWndParent
,
This
->
cidl
,
This
->
apidl
,
IShellFolder_GetUIObjectOf
(
This
->
pSFParent
,
This
->
hWndParent
,
This
->
cidl
,
(
LPCITEMIDLIST
*
)
This
->
apidl
,
(
REFIID
)
&
IID_IContextMenu
,
NULL
,
(
LPVOID
*
)
&
pContextMenu
);
if
(
pContextMenu
)
...
...
@@ -1217,11 +1217,11 @@ static LRESULT ShellView_OnNotify(IShellViewImpl * This, UINT CtlID, LPNMHDR lpn
if
(
GetShellOle
()
&&
pDoDragDrop
)
{
if
(
SUCCEEDED
(
IShellFolder_GetUIObjectOf
(
This
->
pSFParent
,
This
->
hWnd
,
This
->
cidl
,
This
->
apidl
,
&
IID_IDataObject
,
0
,(
LPVOID
*
)
&
pda
)))
if
(
SUCCEEDED
(
IShellFolder_GetUIObjectOf
(
This
->
pSFParent
,
This
->
hWnd
,
This
->
cidl
,
(
LPCITEMIDLIST
*
)
This
->
apidl
,
&
IID_IDataObject
,
0
,(
LPVOID
*
)
&
pda
)))
{
IDropSource
*
pds
=
(
IDropSource
*
)
&
(
This
->
lpvtblDropSource
);
/* own DropSource interface */
if
(
SUCCEEDED
(
IShellFolder_GetAttributesOf
(
This
->
pSFParent
,
This
->
cidl
,
This
->
apidl
,
&
dwAttributes
)))
if
(
SUCCEEDED
(
IShellFolder_GetAttributesOf
(
This
->
pSFParent
,
This
->
cidl
,
(
LPCITEMIDLIST
*
)
This
->
apidl
,
&
dwAttributes
)))
{
if
(
dwAttributes
&
SFGAO_CANLINK
)
{
...
...
@@ -1247,7 +1247,7 @@ static LRESULT ShellView_OnNotify(IShellViewImpl * This, UINT CtlID, LPNMHDR lpn
TRACE
(
"-- LVN_BEGINLABELEDITA %p
\n
"
,
This
);
IShellFolder_GetAttributesOf
(
This
->
pSFParent
,
1
,
&
pidl
,
&
dwAttr
);
IShellFolder_GetAttributesOf
(
This
->
pSFParent
,
1
,
(
LPCITEMIDLIST
*
)
&
pidl
,
&
dwAttr
);
if
(
SFGAO_CANRENAME
&
dwAttr
)
{
return
FALSE
;
...
...
@@ -1355,7 +1355,7 @@ static LRESULT ShellView_OnNotify(IShellViewImpl * This, UINT CtlID, LPNMHDR lpn
}
/* perform the item deletion */
ISFHelper_DeleteItems
(
psfhlp
,
i
,
pItems
);
ISFHelper_DeleteItems
(
psfhlp
,
i
,
(
LPCITEMIDLIST
*
)
pItems
);
/* free pidl array memory */
HeapFree
(
GetProcessHeap
(),
0
,
pItems
);
...
...
@@ -1841,7 +1841,7 @@ static HRESULT WINAPI IShellView_fnGetItemObject(IShellView * iface, UINT uItem,
case
SVGIO_SELECTION
:
ShellView_GetSelections
(
This
);
IShellFolder_GetUIObjectOf
(
This
->
pSFParent
,
This
->
hWnd
,
This
->
cidl
,
This
->
apidl
,
riid
,
0
,
ppvOut
);
IShellFolder_GetUIObjectOf
(
This
->
pSFParent
,
This
->
hWnd
,
This
->
cidl
,
(
LPCITEMIDLIST
*
)
This
->
apidl
,
riid
,
0
,
ppvOut
);
break
;
}
TRACE
(
"-- (%p)->(interface=%p)
\n
"
,
This
,
*
ppvOut
);
...
...
@@ -1853,7 +1853,7 @@ static HRESULT WINAPI IShellView_fnGetItemObject(IShellView * iface, UINT uItem,
static
HRESULT
WINAPI
IShellView_fnEditItem
(
IShellView
*
iface
,
LPITEMIDLIST
pidl
)
LP
C
ITEMIDLIST
pidl
)
{
ICOM_THIS
(
IShellViewImpl
,
iface
);
int
i
;
...
...
dlls/shell32/shv_bg_cmenu.c
View file @
63fecde9
...
...
@@ -263,7 +263,7 @@ static BOOL DoPaste(
/* do the copy/move */
if
(
psfhlpdst
&&
psfhlpsrc
)
{
ISFHelper_CopyItems
(
psfhlpdst
,
psfFrom
,
lpcida
->
cidl
,
apidl
);
ISFHelper_CopyItems
(
psfhlpdst
,
psfFrom
,
lpcida
->
cidl
,
(
LPCITEMIDLIST
*
)
apidl
);
/* FIXME handle move
ISFHelper_DeleteItems(psfhlpsrc, lpcida->cidl, apidl);
*/
...
...
dlls/shell32/shv_item_cmenu.c
View file @
63fecde9
...
...
@@ -65,7 +65,7 @@ static BOOL ISvItemCm_CanRenameItems(ItemCmImpl *This)
for
(
i
=
0
;
i
<
This
->
cidl
;
i
++
){}
if
(
i
>
1
)
return
FALSE
;
/* can't rename more than one item at a time*/
dwAttributes
=
SFGAO_CANRENAME
;
IShellFolder_GetAttributesOf
(
This
->
pSFParent
,
1
,
This
->
apidl
,
&
dwAttributes
);
IShellFolder_GetAttributesOf
(
This
->
pSFParent
,
1
,
(
LPCITEMIDLIST
*
)
This
->
apidl
,
&
dwAttributes
);
return
dwAttributes
&
SFGAO_CANRENAME
;
}
return
FALSE
;
...
...
@@ -339,7 +339,7 @@ static void DoDelete(IContextMenu *iface)
IShellFolder_QueryInterface
(
This
->
pSFParent
,
&
IID_ISFHelper
,
(
LPVOID
*
)
&
psfhlp
);
if
(
psfhlp
)
{
ISFHelper_DeleteItems
(
psfhlp
,
This
->
cidl
,
This
->
apidl
);
ISFHelper_DeleteItems
(
psfhlp
,
This
->
cidl
,
(
LPCITEMIDLIST
*
)
This
->
apidl
);
ISFHelper_Release
(
psfhlp
);
}
}
...
...
dlls/shell32/undocshell.h
View file @
63fecde9
...
...
@@ -37,10 +37,10 @@ LPITEMIDLIST WINAPI ILCombine(
LPCITEMIDLIST
iil1
,
LPCITEMIDLIST
iil2
);
DWORD
WINAPI
ILGetSize
(
LPITEMIDLIST
pidl
);
DWORD
WINAPI
ILGetSize
(
LP
C
ITEMIDLIST
pidl
);
LPITEMIDLIST
WINAPI
ILGetNext
(
LPITEMIDLIST
pidl
);
LPITEMIDLIST
WINAPI
ILFindLastID
(
LPITEMIDLIST
pidl
);
LPITEMIDLIST
WINAPI
ILGetNext
(
LP
C
ITEMIDLIST
pidl
);
LPITEMIDLIST
WINAPI
ILFindLastID
(
LP
C
ITEMIDLIST
pidl
);
BOOL
WINAPI
ILRemoveLastID
(
LPCITEMIDLIST
pidl
);
LPITEMIDLIST
WINAPI
ILFindChild
(
...
...
@@ -87,7 +87,7 @@ HRESULT WINAPI ILLoadFromStream(
LPITEMIDLIST
*
ppidl
);
LPITEMIDLIST
WINAPI
ILGlobalClone
(
LPCITEMIDLIST
pidl
);
void
WINAPI
ILGlobalFree
(
LP
C
ITEMIDLIST
pidl
);
void
WINAPI
ILGlobalFree
(
LPITEMIDLIST
pidl
);
LPITEMIDLIST
WINAPI
SHSimpleIDListFromPathA
(
LPCSTR
lpszPath
);
LPITEMIDLIST
WINAPI
SHSimpleIDListFromPathW
(
LPCWSTR
lpszPath
);
...
...
@@ -144,7 +144,7 @@ HRESULT WINAPI StrRetToStrNAW (
typedef
struct
{
LP
C
ITEMIDLIST
pidlPath
;
LPITEMIDLIST
pidlPath
;
BOOL
bWatchSubtree
;
}
NOTIFYREGISTER
,
*
LPNOTIFYREGISTER
;
...
...
@@ -163,7 +163,7 @@ HANDLE WINAPI SHChangeNotifyRegister(
LONG
wEventMask
,
UINT
uMsg
,
int
cItems
,
LP
C
NOTIFYREGISTER
lpItems
);
LPNOTIFYREGISTER
lpItems
);
BOOL
WINAPI
SHChangeNotifyDeregister
(
HANDLE
hNotify
);
...
...
@@ -424,8 +424,8 @@ BOOL WINAPI FileMenu_TrackPopupMenuEx(
BOOL
WINAPI
FileMenu_GetLastSelectedItemPidls
(
UINT
uReserved
,
LPITEMIDLIST
*
ppidlFolder
,
LPITEMIDLIST
*
ppidlItem
);
LP
C
ITEMIDLIST
*
ppidlFolder
,
LP
C
ITEMIDLIST
*
ppidlItem
);
LRESULT
WINAPI
FileMenu_MeasureItem
(
HWND
hWnd
,
...
...
include/shlobj.h
View file @
63fecde9
...
...
@@ -42,12 +42,13 @@ typedef struct
WORD
cb
;
/* nr of bytes in this item */
BYTE
abID
[
1
];
/* first byte in this item */
}
SHITEMID
,
*
LPSHITEMID
;
typedef
LPSHITEMID
const
LPCSHITEMID
;
typedef
const
SHITEMID
*
LPCSHITEMID
;
typedef
struct
_ITEMIDLIST
{
SHITEMID
mkid
;
/* first itemid in list */
}
ITEMIDLIST
,
*
LPITEMIDLIST
,
*
LPCITEMIDLIST
;
}
ITEMIDLIST
,
*
LPITEMIDLIST
;
typedef
const
ITEMIDLIST
*
LPCITEMIDLIST
;
#include <poppack.h>
BOOL
WINAPI
SHGetPathFromIDListA
(
LPCITEMIDLIST
pidl
,
LPSTR
pszPath
);
...
...
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