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
ed4f2f52
Commit
ed4f2f52
authored
Oct 23, 1999
by
Juergen Schmied
Committed by
Alexandre Julliard
Oct 23, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- removed all unnecessary "winapi" from internal _IL* functions
- better parameter checking for shellfolder - removed dead code from shv_bg_contextmenu
parent
e0f604a3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
71 additions
and
92 deletions
+71
-92
pidl.c
dlls/shell32/pidl.c
+28
-28
pidl.h
dlls/shell32/pidl.h
+35
-43
shlfolder.c
dlls/shell32/shlfolder.c
+6
-0
shv_bg_cmenu.c
dlls/shell32/shv_bg_cmenu.c
+2
-21
No files found.
dlls/shell32/pidl.c
View file @
ed4f2f52
...
@@ -1051,42 +1051,42 @@ BOOL WINAPI SHGetPathFromIDListAW(LPCITEMIDLIST pidl,LPVOID pszPath)
...
@@ -1051,42 +1051,42 @@ BOOL WINAPI SHGetPathFromIDListAW(LPCITEMIDLIST pidl,LPVOID pszPath)
* _ILCreateFolder()
* _ILCreateFolder()
* _ILCreateValue()
* _ILCreateValue()
*/
*/
LPITEMIDLIST
WINAPI
_ILCreateDesktop
()
LPITEMIDLIST
_ILCreateDesktop
()
{
TRACE_
(
pidl
)(
"()
\n
"
);
{
TRACE_
(
pidl
)(
"()
\n
"
);
return
_ILCreate
(
PT_DESKTOP
,
NULL
,
0
);
return
_ILCreate
(
PT_DESKTOP
,
NULL
,
0
);
}
}
LPITEMIDLIST
WINAPI
_ILCreateMyComputer
()
LPITEMIDLIST
_ILCreateMyComputer
()
{
TRACE_
(
pidl
)(
"()
\n
"
);
{
TRACE_
(
pidl
)(
"()
\n
"
);
return
_ILCreate
(
PT_MYCOMP
,
&
IID_MyComputer
,
sizeof
(
GUID
));
return
_ILCreate
(
PT_MYCOMP
,
&
IID_MyComputer
,
sizeof
(
GUID
));
}
}
LPITEMIDLIST
WINAPI
_ILCreateIExplore
()
LPITEMIDLIST
_ILCreateIExplore
()
{
TRACE_
(
pidl
)(
"()
\n
"
);
{
TRACE_
(
pidl
)(
"()
\n
"
);
return
_ILCreate
(
PT_MYCOMP
,
&
IID_IExplore
,
sizeof
(
GUID
));
return
_ILCreate
(
PT_MYCOMP
,
&
IID_IExplore
,
sizeof
(
GUID
));
}
}
LPITEMIDLIST
WINAPI
_ILCreateControl
()
LPITEMIDLIST
_ILCreateControl
()
{
TRACE_
(
pidl
)(
"()
\n
"
);
{
TRACE_
(
pidl
)(
"()
\n
"
);
return
_ILCreate
(
PT_SPECIAL
,
&
IID_Control
,
sizeof
(
GUID
));
return
_ILCreate
(
PT_SPECIAL
,
&
IID_Control
,
sizeof
(
GUID
));
}
}
LPITEMIDLIST
WINAPI
_ILCreatePrinter
()
LPITEMIDLIST
_ILCreatePrinter
()
{
TRACE_
(
pidl
)(
"()
\n
"
);
{
TRACE_
(
pidl
)(
"()
\n
"
);
return
_ILCreate
(
PT_SPECIAL
,
&
IID_Printer
,
sizeof
(
GUID
));
return
_ILCreate
(
PT_SPECIAL
,
&
IID_Printer
,
sizeof
(
GUID
));
}
}
LPITEMIDLIST
WINAPI
_ILCreateNetwork
()
LPITEMIDLIST
_ILCreateNetwork
()
{
TRACE_
(
pidl
)(
"()
\n
"
);
{
TRACE_
(
pidl
)(
"()
\n
"
);
return
_ILCreate
(
PT_MYCOMP
,
&
IID_Network
,
sizeof
(
GUID
));
return
_ILCreate
(
PT_MYCOMP
,
&
IID_Network
,
sizeof
(
GUID
));
}
}
LPITEMIDLIST
WINAPI
_ILCreateBitBucket
()
LPITEMIDLIST
_ILCreateBitBucket
()
{
TRACE_
(
pidl
)(
"()
\n
"
);
{
TRACE_
(
pidl
)(
"()
\n
"
);
return
_ILCreate
(
PT_MYCOMP
,
&
IID_BitBucket
,
sizeof
(
GUID
));
return
_ILCreate
(
PT_MYCOMP
,
&
IID_BitBucket
,
sizeof
(
GUID
));
}
}
LPITEMIDLIST
WINAPI
_ILCreateDrive
(
LPCSTR
lpszNew
)
LPITEMIDLIST
_ILCreateDrive
(
LPCSTR
lpszNew
)
{
char
sTemp
[
4
];
{
char
sTemp
[
4
];
lstrcpynA
(
sTemp
,
lpszNew
,
4
);
lstrcpynA
(
sTemp
,
lpszNew
,
4
);
sTemp
[
2
]
=
'\\'
;
sTemp
[
2
]
=
'\\'
;
...
@@ -1095,7 +1095,7 @@ LPITEMIDLIST WINAPI _ILCreateDrive( LPCSTR lpszNew)
...
@@ -1095,7 +1095,7 @@ LPITEMIDLIST WINAPI _ILCreateDrive( LPCSTR lpszNew)
return
_ILCreate
(
PT_DRIVE
,(
LPVOID
)
&
sTemp
[
0
],
4
);
return
_ILCreate
(
PT_DRIVE
,(
LPVOID
)
&
sTemp
[
0
],
4
);
}
}
LPITEMIDLIST
WINAPI
_ILCreateFolder
(
WIN32_FIND_DATAA
*
stffile
)
LPITEMIDLIST
_ILCreateFolder
(
WIN32_FIND_DATAA
*
stffile
)
{
{
char
buff
[
MAX_PATH
+
14
+
1
];
/* see WIN32_FIND_DATA */
char
buff
[
MAX_PATH
+
14
+
1
];
/* see WIN32_FIND_DATA */
char
*
pbuff
=
buff
;
char
*
pbuff
=
buff
;
...
@@ -1135,7 +1135,7 @@ LPITEMIDLIST WINAPI _ILCreateFolder( WIN32_FIND_DATAA * stffile )
...
@@ -1135,7 +1135,7 @@ LPITEMIDLIST WINAPI _ILCreateFolder( WIN32_FIND_DATAA * stffile )
return
pidl
;
return
pidl
;
}
}
LPITEMIDLIST
WINAPI
_ILCreateValue
(
WIN32_FIND_DATAA
*
stffile
)
LPITEMIDLIST
_ILCreateValue
(
WIN32_FIND_DATAA
*
stffile
)
{
{
char
buff
[
MAX_PATH
+
14
+
1
];
/* see WIN32_FIND_DATA */
char
buff
[
MAX_PATH
+
14
+
1
];
/* see WIN32_FIND_DATA */
char
*
pbuff
=
buff
;
char
*
pbuff
=
buff
;
...
@@ -1175,7 +1175,7 @@ LPITEMIDLIST WINAPI _ILCreateValue(WIN32_FIND_DATAA * stffile)
...
@@ -1175,7 +1175,7 @@ LPITEMIDLIST WINAPI _ILCreateValue(WIN32_FIND_DATAA * stffile)
return
pidl
;
return
pidl
;
}
}
LPITEMIDLIST
WINAPI
_ILCreateSpecial
(
LPCSTR
szGUID
)
LPITEMIDLIST
_ILCreateSpecial
(
LPCSTR
szGUID
)
{
{
IID
iid
;
IID
iid
;
CLSIDFromString16
(
szGUID
,
&
iid
);
CLSIDFromString16
(
szGUID
,
&
iid
);
...
@@ -1190,7 +1190,7 @@ LPITEMIDLIST WINAPI _ILCreateSpecial(LPCSTR szGUID)
...
@@ -1190,7 +1190,7 @@ LPITEMIDLIST WINAPI _ILCreateSpecial(LPCSTR szGUID)
* uInSize = size of data (raw)
* uInSize = size of data (raw)
*/
*/
LPITEMIDLIST
WINAPI
_ILCreate
(
PIDLTYPE
type
,
LPCVOID
pIn
,
UINT16
uInSize
)
LPITEMIDLIST
_ILCreate
(
PIDLTYPE
type
,
LPCVOID
pIn
,
UINT16
uInSize
)
{
LPITEMIDLIST
pidlOut
=
NULL
,
pidlTemp
=
NULL
;
{
LPITEMIDLIST
pidlOut
=
NULL
,
pidlTemp
=
NULL
;
LPPIDLDATA
pData
;
LPPIDLDATA
pData
;
UINT16
uSize
=
0
;
UINT16
uSize
=
0
;
...
@@ -1259,7 +1259,7 @@ LPITEMIDLIST WINAPI _ILCreate(PIDLTYPE type, LPCVOID pIn, UINT16 uInSize)
...
@@ -1259,7 +1259,7 @@ LPITEMIDLIST WINAPI _ILCreate(PIDLTYPE type, LPCVOID pIn, UINT16 uInSize)
* RETURNS
* RETURNS
* strlen (lpszText)
* strlen (lpszText)
*/
*/
DWORD
WINAPI
_ILGetDrive
(
LPCITEMIDLIST
pidl
,
LPSTR
pOut
,
UINT16
uSize
)
DWORD
_ILGetDrive
(
LPCITEMIDLIST
pidl
,
LPSTR
pOut
,
UINT16
uSize
)
{
TRACE_
(
pidl
)(
"(%p,%p,%u)
\n
"
,
pidl
,
pOut
,
uSize
);
{
TRACE_
(
pidl
)(
"(%p,%p,%u)
\n
"
,
pidl
,
pOut
,
uSize
);
if
(
_ILIsMyComputer
(
pidl
))
if
(
_ILIsMyComputer
(
pidl
))
...
@@ -1284,12 +1284,12 @@ DWORD WINAPI _ILGetDrive(LPCITEMIDLIST pidl,LPSTR pOut, UINT16 uSize)
...
@@ -1284,12 +1284,12 @@ DWORD WINAPI _ILGetDrive(LPCITEMIDLIST pidl,LPSTR pOut, UINT16 uSize)
* _ILIsValue()
* _ILIsValue()
* _ILIsPidlSimple()
* _ILIsPidlSimple()
*/
*/
BOOL
WINAPI
_ILIsDesktop
(
LPCITEMIDLIST
pidl
)
BOOL
_ILIsDesktop
(
LPCITEMIDLIST
pidl
)
{
TRACE_
(
pidl
)(
"(%p)
\n
"
,
pidl
);
{
TRACE_
(
pidl
)(
"(%p)
\n
"
,
pidl
);
return
(
!
pidl
||
(
pidl
&&
pidl
->
mkid
.
cb
==
0x00
)
);
return
(
!
pidl
||
(
pidl
&&
pidl
->
mkid
.
cb
==
0x00
)
);
}
}
BOOL
WINAPI
_ILIsMyComputer
(
LPCITEMIDLIST
pidl
)
BOOL
_ILIsMyComputer
(
LPCITEMIDLIST
pidl
)
{
{
REFIID
iid
=
_ILGetGUIDPointer
(
pidl
);
REFIID
iid
=
_ILGetGUIDPointer
(
pidl
);
...
@@ -1300,7 +1300,7 @@ BOOL WINAPI _ILIsMyComputer(LPCITEMIDLIST pidl)
...
@@ -1300,7 +1300,7 @@ BOOL WINAPI _ILIsMyComputer(LPCITEMIDLIST pidl)
return
FALSE
;
return
FALSE
;
}
}
BOOL
WINAPI
_ILIsSpecialFolder
(
LPCITEMIDLIST
pidl
)
BOOL
_ILIsSpecialFolder
(
LPCITEMIDLIST
pidl
)
{
{
LPPIDLDATA
lpPData
=
_ILGetDataPointer
(
pidl
);
LPPIDLDATA
lpPData
=
_ILGetDataPointer
(
pidl
);
TRACE_
(
pidl
)(
"(%p)
\n
"
,
pidl
);
TRACE_
(
pidl
)(
"(%p)
\n
"
,
pidl
);
...
@@ -1309,7 +1309,7 @@ BOOL WINAPI _ILIsSpecialFolder (LPCITEMIDLIST pidl)
...
@@ -1309,7 +1309,7 @@ BOOL WINAPI _ILIsSpecialFolder (LPCITEMIDLIST pidl)
));
));
}
}
BOOL
WINAPI
_ILIsDrive
(
LPCITEMIDLIST
pidl
)
BOOL
_ILIsDrive
(
LPCITEMIDLIST
pidl
)
{
LPPIDLDATA
lpPData
=
_ILGetDataPointer
(
pidl
);
{
LPPIDLDATA
lpPData
=
_ILGetDataPointer
(
pidl
);
TRACE_
(
pidl
)(
"(%p)
\n
"
,
pidl
);
TRACE_
(
pidl
)(
"(%p)
\n
"
,
pidl
);
return
(
pidl
&&
lpPData
&&
(
PT_DRIVE
==
lpPData
->
type
||
return
(
pidl
&&
lpPData
&&
(
PT_DRIVE
==
lpPData
->
type
||
...
@@ -1318,13 +1318,13 @@ BOOL WINAPI _ILIsDrive(LPCITEMIDLIST pidl)
...
@@ -1318,13 +1318,13 @@ BOOL WINAPI _ILIsDrive(LPCITEMIDLIST pidl)
PT_DRIVE3
==
lpPData
->
type
));
PT_DRIVE3
==
lpPData
->
type
));
}
}
BOOL
WINAPI
_ILIsFolder
(
LPCITEMIDLIST
pidl
)
BOOL
_ILIsFolder
(
LPCITEMIDLIST
pidl
)
{
LPPIDLDATA
lpPData
=
_ILGetDataPointer
(
pidl
);
{
LPPIDLDATA
lpPData
=
_ILGetDataPointer
(
pidl
);
TRACE_
(
pidl
)(
"(%p)
\n
"
,
pidl
);
TRACE_
(
pidl
)(
"(%p)
\n
"
,
pidl
);
return
(
pidl
&&
lpPData
&&
(
PT_FOLDER
==
lpPData
->
type
||
PT_FOLDER1
==
lpPData
->
type
));
return
(
pidl
&&
lpPData
&&
(
PT_FOLDER
==
lpPData
->
type
||
PT_FOLDER1
==
lpPData
->
type
));
}
}
BOOL
WINAPI
_ILIsValue
(
LPCITEMIDLIST
pidl
)
BOOL
_ILIsValue
(
LPCITEMIDLIST
pidl
)
{
LPPIDLDATA
lpPData
=
_ILGetDataPointer
(
pidl
);
{
LPPIDLDATA
lpPData
=
_ILGetDataPointer
(
pidl
);
TRACE_
(
pidl
)(
"(%p)
\n
"
,
pidl
);
TRACE_
(
pidl
)(
"(%p)
\n
"
,
pidl
);
return
(
pidl
&&
lpPData
&&
PT_VALUE
==
lpPData
->
type
);
return
(
pidl
&&
lpPData
&&
PT_VALUE
==
lpPData
->
type
);
...
@@ -1333,7 +1333,7 @@ BOOL WINAPI _ILIsValue(LPCITEMIDLIST pidl)
...
@@ -1333,7 +1333,7 @@ BOOL WINAPI _ILIsValue(LPCITEMIDLIST pidl)
/**************************************************************************
/**************************************************************************
* _ILIsPidlSimple
* _ILIsPidlSimple
*/
*/
BOOL
WINAPI
_ILIsPidlSimple
(
LPCITEMIDLIST
pidl
)
BOOL
_ILIsPidlSimple
(
LPCITEMIDLIST
pidl
)
{
{
BOOL
ret
=
TRUE
;
BOOL
ret
=
TRUE
;
...
@@ -1361,7 +1361,7 @@ BOOL WINAPI _ILIsPidlSimple ( LPCITEMIDLIST pidl)
...
@@ -1361,7 +1361,7 @@ BOOL WINAPI _ILIsPidlSimple ( LPCITEMIDLIST pidl)
*
*
* returns the lenght of the string
* returns the lenght of the string
*/
*/
DWORD
WINAPI
_ILSimpleGetText
(
LPCITEMIDLIST
pidl
,
LPSTR
szOut
,
UINT
uOutSize
)
DWORD
_ILSimpleGetText
(
LPCITEMIDLIST
pidl
,
LPSTR
szOut
,
UINT
uOutSize
)
{
{
LPPIDLDATA
pData
;
LPPIDLDATA
pData
;
DWORD
dwReturn
=
0
;
DWORD
dwReturn
=
0
;
...
@@ -1424,7 +1424,7 @@ DWORD WINAPI _ILSimpleGetText (LPCITEMIDLIST pidl, LPSTR szOut, UINT uOutSize)
...
@@ -1424,7 +1424,7 @@ DWORD WINAPI _ILSimpleGetText (LPCITEMIDLIST pidl, LPSTR szOut, UINT uOutSize)
**************************************************************************
**************************************************************************
* _ILGetDataPointer()
* _ILGetDataPointer()
*/
*/
LPPIDLDATA
WINAPI
_ILGetDataPointer
(
LPITEMIDLIST
pidl
)
LPPIDLDATA
_ILGetDataPointer
(
LPITEMIDLIST
pidl
)
{
{
if
(
pidl
&&
pidl
->
mkid
.
cb
!=
0x00
)
if
(
pidl
&&
pidl
->
mkid
.
cb
!=
0x00
)
return
(
LPPIDLDATA
)
&
(
pidl
->
mkid
.
abID
);
return
(
LPPIDLDATA
)
&
(
pidl
->
mkid
.
abID
);
...
@@ -1435,7 +1435,7 @@ LPPIDLDATA WINAPI _ILGetDataPointer(LPITEMIDLIST pidl)
...
@@ -1435,7 +1435,7 @@ LPPIDLDATA WINAPI _ILGetDataPointer(LPITEMIDLIST pidl)
* _ILGetTextPointer()
* _ILGetTextPointer()
* gets a pointer to the long filename string stored in the pidl
* gets a pointer to the long filename string stored in the pidl
*/
*/
LPSTR
WINAPI
_ILGetTextPointer
(
PIDLTYPE
type
,
LPPIDLDATA
pidldata
)
LPSTR
_ILGetTextPointer
(
PIDLTYPE
type
,
LPPIDLDATA
pidldata
)
{
/* TRACE(pidl,"(type=%x data=%p)\n", type, pidldata);*/
{
/* TRACE(pidl,"(type=%x data=%p)\n", type, pidldata);*/
if
(
!
pidldata
)
if
(
!
pidldata
)
...
@@ -1473,7 +1473,7 @@ LPSTR WINAPI _ILGetTextPointer(PIDLTYPE type, LPPIDLDATA pidldata)
...
@@ -1473,7 +1473,7 @@ LPSTR WINAPI _ILGetTextPointer(PIDLTYPE type, LPPIDLDATA pidldata)
* _ILGetSTextPointer()
* _ILGetSTextPointer()
* gets a pointer to the short filename string stored in the pidl
* gets a pointer to the short filename string stored in the pidl
*/
*/
LPSTR
WINAPI
_ILGetSTextPointer
(
PIDLTYPE
type
,
LPPIDLDATA
pidldata
)
LPSTR
_ILGetSTextPointer
(
PIDLTYPE
type
,
LPPIDLDATA
pidldata
)
{
/* TRACE(pidl,"(type=%x data=%p)\n", type, pidldata);*/
{
/* TRACE(pidl,"(type=%x data=%p)\n", type, pidldata);*/
if
(
!
pidldata
)
if
(
!
pidldata
)
...
@@ -1497,7 +1497,7 @@ LPSTR WINAPI _ILGetSTextPointer(PIDLTYPE type, LPPIDLDATA pidldata)
...
@@ -1497,7 +1497,7 @@ LPSTR WINAPI _ILGetSTextPointer(PIDLTYPE type, LPPIDLDATA pidldata)
*
*
* returns reference to guid stored in some pidls
* returns reference to guid stored in some pidls
*/
*/
REFIID
WINAPI
_ILGetGUIDPointer
(
LPCITEMIDLIST
pidl
)
REFIID
_ILGetGUIDPointer
(
LPCITEMIDLIST
pidl
)
{
{
LPPIDLDATA
pdata
=
_ILGetDataPointer
(
pidl
);
LPPIDLDATA
pdata
=
_ILGetDataPointer
(
pidl
);
...
@@ -1546,7 +1546,7 @@ BOOL _ILGetFileDateTime(LPCITEMIDLIST pidl, FILETIME *pFt)
...
@@ -1546,7 +1546,7 @@ BOOL _ILGetFileDateTime(LPCITEMIDLIST pidl, FILETIME *pFt)
return
TRUE
;
return
TRUE
;
}
}
BOOL
WINAPI
_ILGetFileDate
(
LPCITEMIDLIST
pidl
,
LPSTR
pOut
,
UINT
uOutSize
)
BOOL
_ILGetFileDate
(
LPCITEMIDLIST
pidl
,
LPSTR
pOut
,
UINT
uOutSize
)
{
{
FILETIME
ft
;
FILETIME
ft
;
SYSTEMTIME
time
;
SYSTEMTIME
time
;
...
@@ -1574,7 +1574,7 @@ BOOL WINAPI _ILGetFileDate (LPCITEMIDLIST pidl, LPSTR pOut, UINT uOutSize)
...
@@ -1574,7 +1574,7 @@ BOOL WINAPI _ILGetFileDate (LPCITEMIDLIST pidl, LPSTR pOut, UINT uOutSize)
* pOut can be null when no string is needed
* pOut can be null when no string is needed
*
*
*/
*/
DWORD
WINAPI
_ILGetFileSize
(
LPCITEMIDLIST
pidl
,
LPSTR
pOut
,
UINT
uOutSize
)
DWORD
_ILGetFileSize
(
LPCITEMIDLIST
pidl
,
LPSTR
pOut
,
UINT
uOutSize
)
{
{
LPPIDLDATA
pdata
=
_ILGetDataPointer
(
pidl
);
LPPIDLDATA
pdata
=
_ILGetDataPointer
(
pidl
);
DWORD
dwSize
;
DWORD
dwSize
;
...
@@ -1588,7 +1588,7 @@ DWORD WINAPI _ILGetFileSize (LPCITEMIDLIST pidl, LPSTR pOut, UINT uOutSize)
...
@@ -1588,7 +1588,7 @@ DWORD WINAPI _ILGetFileSize (LPCITEMIDLIST pidl, LPSTR pOut, UINT uOutSize)
return
0
;
return
0
;
}
}
BOOL
WINAPI
_ILGetExtension
(
LPCITEMIDLIST
pidl
,
LPSTR
pOut
,
UINT
uOutSize
)
BOOL
_ILGetExtension
(
LPCITEMIDLIST
pidl
,
LPSTR
pOut
,
UINT
uOutSize
)
{
{
char
szTemp
[
MAX_PATH
];
char
szTemp
[
MAX_PATH
];
const
char
*
pPoint
;
const
char
*
pPoint
;
...
...
dlls/shell32/pidl.h
View file @
ed4f2f52
...
@@ -114,66 +114,58 @@ typedef struct tagPIDLDATA
...
@@ -114,66 +114,58 @@ typedef struct tagPIDLDATA
#include "poppack.h"
#include "poppack.h"
/*
/*
* getting string values from pidls
*
* return value is strlen()
*/
DWORD
WINAPI
_ILGetDrive
(
LPCITEMIDLIST
,
LPSTR
,
UINT16
);
/*
* getting special values from simple pidls
* getting special values from simple pidls
*/
*/
BOOL
WINAPI
_ILGetFileDate
(
LPCITEMIDLIST
pidl
,
LPSTR
pOut
,
UINT
uOutSize
);
DWORD
_ILSimpleGetText
(
LPCITEMIDLIST
pidl
,
LPSTR
pOut
,
UINT
uOutSize
);
DWORD
_ILGetFileSize
(
LPCITEMIDLIST
pidl
,
LPSTR
pOut
,
UINT
uOutSize
);
BOOL
_ILGetFileDate
(
LPCITEMIDLIST
pidl
,
LPSTR
pOut
,
UINT
uOutSize
);
BOOL
WINAPI
_ILGetExtension
(
LPCITEMIDLIST
pidl
,
LPSTR
pOut
,
UINT
uOutSize
);
DWORD
_ILGetFileSize
(
LPCITEMIDLIST
pidl
,
LPSTR
pOut
,
UINT
uOutSize
);
BOOL
_ILGetExtension
(
LPCITEMIDLIST
pidl
,
LPSTR
pOut
,
UINT
uOutSize
);
void
_ILGetFileType
(
LPCITEMIDLIST
pidl
,
LPSTR
pOut
,
UINT
uOutSize
);
BOOL
_ILGetAttributeStr
(
LPCITEMIDLIST
pidl
,
LPSTR
pOut
,
UINT
uOutSize
);
BOOL
_ILGetFileDateTime
(
LPCITEMIDLIST
pidl
,
FILETIME
*
ft
);
DWORD
_ILGetDrive
(
LPCITEMIDLIST
,
LPSTR
,
UINT16
);
/*
/*
* testing simple pidls
* testing simple pidls
*/
*/
BOOL
WINAPI
_ILIsDesktop
(
LPCITEMIDLIST
);
BOOL
_ILIsDesktop
(
LPCITEMIDLIST
pidl
);
BOOL
WINAPI
_ILIsMyComputer
(
LPCITEMIDLIST
);
BOOL
_ILIsMyComputer
(
LPCITEMIDLIST
pidl
);
BOOL
WINAPI
_ILIsDrive
(
LPCITEMIDLIST
);
BOOL
_ILIsDrive
(
LPCITEMIDLIST
pidl
);
BOOL
WINAPI
_ILIsFolder
(
LPCITEMIDLIST
);
BOOL
_ILIsFolder
(
LPCITEMIDLIST
pidl
);
BOOL
WINAPI
_ILIsValue
(
LPCITEMIDLIST
);
BOOL
_ILIsValue
(
LPCITEMIDLIST
pidl
);
BOOL
WINAPI
_ILIsSpecialFolder
(
LPCITEMIDLIST
pidl
);
BOOL
_ILIsSpecialFolder
(
LPCITEMIDLIST
pidl
);
BOOL
WINAPI
_ILIsPidlSimple
(
LPCITEMIDLIST
pidl
);
BOOL
_ILIsPidlSimple
(
LPCITEMIDLIST
pidl
);
/*
/*
* simple pidls from strings
* simple pidls from strings
*/
*/
LPITEMIDLIST
WINAPI
_ILCreateDesktop
(
void
);
LPITEMIDLIST
_ILCreate
(
PIDLTYPE
,
LPCVOID
,
UINT16
);
LPITEMIDLIST
WINAPI
_ILCreateMyComputer
(
void
);
LPITEMIDLIST
WINAPI
_ILCreateIExplore
(
void
);
LPITEMIDLIST
_ILCreateDesktop
(
void
);
LPITEMIDLIST
WINAPI
_ILCreateControl
(
void
);
LPITEMIDLIST
_ILCreateMyComputer
(
void
);
LPITEMIDLIST
WINAPI
_ILCreatePrinter
(
void
);
LPITEMIDLIST
_ILCreateIExplore
(
void
);
LPITEMIDLIST
WINAPI
_ILCreateNetwork
(
void
);
LPITEMIDLIST
_ILCreateControl
(
void
);
LPITEMIDLIST
WINAPI
_ILCreateBitBucket
(
void
);
LPITEMIDLIST
_ILCreatePrinter
(
void
);
LPITEMIDLIST
WINAPI
_ILCreateDrive
(
LPCSTR
);
LPITEMIDLIST
_ILCreateNetwork
(
void
);
LPITEMIDLIST
WINAPI
_ILCreateFolder
(
WIN32_FIND_DATAA
*
stffile
);
LPITEMIDLIST
_ILCreateBitBucket
(
void
);
LPITEMIDLIST
WINAPI
_ILCreateValue
(
WIN32_FIND_DATAA
*
stffile
);
LPITEMIDLIST
_ILCreateDrive
(
LPCSTR
);
LPITEMIDLIST
WINAPI
_ILCreateSpecial
(
LPCSTR
szGUID
);
LPITEMIDLIST
_ILCreateFolder
(
WIN32_FIND_DATAA
*
stffile
);
LPITEMIDLIST
_ILCreateValue
(
WIN32_FIND_DATAA
*
stffile
);
DWORD
WINAPI
_ILSimpleGetText
(
LPCITEMIDLIST
pidl
,
LPSTR
szOut
,
UINT
uOutSize
);
LPITEMIDLIST
_ILCreateSpecial
(
LPCSTR
szGUID
);
LPITEMIDLIST
WINAPI
_ILCreate
(
PIDLTYPE
,
LPCVOID
,
UINT16
);
/*
/*
* helper functions (getting struct-pointer)
* helper functions (getting struct-pointer)
*/
*/
LPPIDLDATA
WINAPI
_ILGetDataPointer
(
LPCITEMIDLIST
);
LPPIDLDATA
_ILGetDataPointer
(
LPCITEMIDLIST
);
LPSTR
WINAPI
_ILGetTextPointer
(
PIDLTYPE
type
,
LPPIDLDATA
pidldata
);
LPSTR
_ILGetTextPointer
(
PIDLTYPE
type
,
LPPIDLDATA
pidldata
);
LPSTR
WINAPI
_ILGetSTextPointer
(
PIDLTYPE
type
,
LPPIDLDATA
pidldata
);
LPSTR
_ILGetSTextPointer
(
PIDLTYPE
type
,
LPPIDLDATA
pidldata
);
REFIID
WINAPI
_ILGetGUIDPointer
(
LPCITEMIDLIST
pidl
);
REFIID
_ILGetGUIDPointer
(
LPCITEMIDLIST
pidl
);
void
pdump
(
LPCITEMIDLIST
pidl
);
BOOL
pcheck
(
LPCITEMIDLIST
pidl
);
/*
/*
*
ItemIDList File helper functions
*
debug helper
*/
*/
void
_ILGetFileType
(
LPCITEMIDLIST
pidl
,
LPSTR
pOut
,
UINT
uOutSize
);
void
pdump
(
LPCITEMIDLIST
pidl
);
BOOL
_ILGetFileDateTime
(
LPCITEMIDLIST
pidl
,
FILETIME
*
ft
);
BOOL
pcheck
(
LPCITEMIDLIST
pidl
);
BOOL
_ILGetAttributeStr
(
LPCITEMIDLIST
pidl
,
LPSTR
pOut
,
UINT
uOutSize
);
#endif
#endif
dlls/shell32/shlfolder.c
View file @
ed4f2f52
...
@@ -438,6 +438,8 @@ static HRESULT WINAPI IShellFolder_fnParseDisplayName(
...
@@ -438,6 +438,8 @@ static HRESULT WINAPI IShellFolder_fnParseDisplayName(
This
,
hwndOwner
,
pbcReserved
,
lpszDisplayName
,
This
,
hwndOwner
,
pbcReserved
,
lpszDisplayName
,
debugstr_w
(
lpszDisplayName
),
pchEaten
,
ppidl
,
pdwAttributes
);
debugstr_w
(
lpszDisplayName
),
pchEaten
,
ppidl
,
pdwAttributes
);
if
(
!
lpszDisplayName
||
!
ppidl
)
return
E_INVALIDARG
;
if
(
pchEaten
)
*
pchEaten
=
0
;
/* strange but like the original */
if
(
pchEaten
)
*
pchEaten
=
0
;
/* strange but like the original */
if
(
*
lpszDisplayName
)
if
(
*
lpszDisplayName
)
...
@@ -524,6 +526,8 @@ static HRESULT WINAPI IShellFolder_fnBindToObject( IShellFolder * iface, LPCITEM
...
@@ -524,6 +526,8 @@ static HRESULT WINAPI IShellFolder_fnBindToObject( IShellFolder * iface, LPCITEM
TRACE
(
"(%p)->(pidl=%p,%p,
\n\t
IID:
\t
%s,%p)
\n
"
,
This
,
pidl
,
pbcReserved
,
xriid
,
ppvOut
);
TRACE
(
"(%p)->(pidl=%p,%p,
\n\t
IID:
\t
%s,%p)
\n
"
,
This
,
pidl
,
pbcReserved
,
xriid
,
ppvOut
);
if
(
!
pidl
||
!
ppvOut
)
return
E_INVALIDARG
;
*
ppvOut
=
NULL
;
*
ppvOut
=
NULL
;
if
((
iid
=
_ILGetGUIDPointer
(
pidl
)))
if
((
iid
=
_ILGetGUIDPointer
(
pidl
)))
...
@@ -1460,6 +1464,8 @@ static HRESULT WINAPI ISF_MyComputer_fnBindToObject( IShellFolder * iface, LPCIT
...
@@ -1460,6 +1464,8 @@ static HRESULT WINAPI ISF_MyComputer_fnBindToObject( IShellFolder * iface, LPCIT
TRACE
(
"(%p)->(pidl=%p,%p,
\n\t
IID:
\t
%s,%p)
\n
"
,
This
,
pidl
,
pbcReserved
,
xriid
,
ppvOut
);
TRACE
(
"(%p)->(pidl=%p,%p,
\n\t
IID:
\t
%s,%p)
\n
"
,
This
,
pidl
,
pbcReserved
,
xriid
,
ppvOut
);
if
(
!
pidl
||
!
ppvOut
)
return
E_INVALIDARG
;
*
ppvOut
=
NULL
;
*
ppvOut
=
NULL
;
if
((
clsid
=
_ILGetGUIDPointer
(
pidl
))
&&
!
IsEqualIID
(
clsid
,
&
IID_MyComputer
))
if
((
clsid
=
_ILGetGUIDPointer
(
pidl
))
&&
!
IsEqualIID
(
clsid
,
&
IID_MyComputer
))
...
...
dlls/shell32/shv_bg_cmenu.c
View file @
ed4f2f52
...
@@ -187,27 +187,8 @@ static HRESULT WINAPI ISVBgCm_fnInvokeCommand(
...
@@ -187,27 +187,8 @@ static HRESULT WINAPI ISVBgCm_fnInvokeCommand(
}
}
else
else
{
{
switch
(
LOWORD
(
lpcmi
->
lpVerb
))
/* if it's a id just pass it to the parent shv */
{
SendMessageA
(
hWndSV
,
WM_COMMAND
,
MAKEWPARAM
(
LOWORD
(
lpcmi
->
lpVerb
),
0
),
0
);
case
FCIDM_SHVIEW_BIGICON
:
SendMessageA
(
hWndSV
,
WM_COMMAND
,
MAKEWPARAM
(
FCIDM_SHVIEW_BIGICON
,
0
),
0
);
break
;
case
FCIDM_SHVIEW_SMALLICON
:
SendMessageA
(
hWndSV
,
WM_COMMAND
,
MAKEWPARAM
(
FCIDM_SHVIEW_SMALLICON
,
0
),
0
);
case
FCIDM_SHVIEW_LISTVIEW
:
SendMessageA
(
hWndSV
,
WM_COMMAND
,
MAKEWPARAM
(
FCIDM_SHVIEW_LISTVIEW
,
0
),
0
);
break
;
case
FCIDM_SHVIEW_REPORTVIEW
:
SendMessageA
(
hWndSV
,
WM_COMMAND
,
MAKEWPARAM
(
FCIDM_SHVIEW_REPORTVIEW
,
0
),
0
);
break
;
default:
SendMessageA
(
hWndSV
,
WM_COMMAND
,
MAKEWPARAM
(
LOWORD
(
lpcmi
->
lpVerb
),
0
),
0
);
break
;
}
}
}
IShellView_Release
(
lpSV
);
/* QueryActiveShellView does AddRef*/
IShellView_Release
(
lpSV
);
/* QueryActiveShellView does AddRef*/
...
...
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