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
a830bf55
Commit
a830bf55
authored
Feb 15, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Feb 15, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define some extra SHFGI values.
parent
0fba748f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
10 deletions
+22
-10
shell32_main.c
dlls/shell32/shell32_main.c
+20
-7
shellapi.h
include/shellapi.h
+2
-3
No files found.
dlls/shell32/shell32_main.c
View file @
a830bf55
...
...
@@ -212,8 +212,15 @@ LPWSTR* WINAPI CommandLineToArgvW(LPCWSTR lpCmdline, int* numargs)
return
argv
;
}
#define SHGFI_KNOWN_FLAGS \
(SHGFI_SMALLICON | SHGFI_OPENICON | SHGFI_SHELLICONSIZE | SHGFI_PIDL | \
SHGFI_USEFILEATTRIBUTES | SHGFI_ADDOVERLAYS | SHGFI_OVERLAYINDEX | \
SHGFI_ICON | SHGFI_DISPLAYNAME | SHGFI_TYPENAME | SHGFI_ATTRIBUTES | \
SHGFI_ICONLOCATION | SHGFI_EXETYPE | SHGFI_SYSICONINDEX | \
SHGFI_LINKOVERLAY | SHGFI_SELECTED | SHGFI_ATTR_SPECIFIED)
/*************************************************************************
* SHGetFileInfo
A
[SHELL32.@]
* SHGetFileInfo
W
[SHELL32.@]
*
*/
...
...
@@ -230,8 +237,9 @@ DWORD WINAPI SHGetFileInfoW(LPCWSTR path,DWORD dwFileAttributes,
HRESULT
hr
=
S_OK
;
BOOL
IconNotYetLoaded
=
TRUE
;
TRACE
(
"(%s fattr=0x%lx sfi=%p(attr=0x%08lx) size=0x%x flags=0x%x)
\n
"
,
(
flags
&
SHGFI_PIDL
)
?
"pidl"
:
debugstr_w
(
path
),
dwFileAttributes
,
psfi
,
psfi
->
dwAttributes
,
sizeofpsfi
,
flags
);
TRACE
(
"%s fattr=0x%lx sfi=%p(attr=0x%08lx) size=0x%x flags=0x%x
\n
"
,
(
flags
&
SHGFI_PIDL
)
?
"pidl"
:
debugstr_w
(
path
),
dwFileAttributes
,
psfi
,
psfi
->
dwAttributes
,
sizeofpsfi
,
flags
);
if
((
flags
&
SHGFI_USEFILEATTRIBUTES
)
&&
(
flags
&
(
SHGFI_ATTRIBUTES
|
SHGFI_EXETYPE
|
SHGFI_PIDL
)))
return
FALSE
;
...
...
@@ -392,6 +400,12 @@ DWORD WINAPI SHGetFileInfoW(LPCWSTR path,DWORD dwFileAttributes,
}
/* ### icons ###*/
if
(
flags
&
SHGFI_ADDOVERLAYS
)
FIXME
(
"SHGFI_ADDOVERLAYS unhandled
\n
"
);
if
(
flags
&
SHGFI_OVERLAYINDEX
)
FIXME
(
"SHGFI_OVERLAYINDEX unhandled
\n
"
);
if
(
flags
&
SHGFI_LINKOVERLAY
)
FIXME
(
"set icon to link, stub
\n
"
);
...
...
@@ -424,7 +438,6 @@ DWORD WINAPI SHGetFileInfoW(LPCWSTR path,DWORD dwFileAttributes,
/* get icon index (or load icon)*/
if
(
SUCCEEDED
(
hr
)
&&
(
flags
&
(
SHGFI_ICON
|
SHGFI_SYSICONINDEX
)))
{
if
(
flags
&
SHGFI_USEFILEATTRIBUTES
)
{
WCHAR
sTemp
[
MAX_PATH
];
...
...
@@ -481,8 +494,8 @@ DWORD WINAPI SHGetFileInfoW(LPCWSTR path,DWORD dwFileAttributes,
if
(
SUCCEEDED
(
hr
)
&&
(
flags
&
SHGFI_ICON
)
&&
IconNotYetLoaded
)
psfi
->
hIcon
=
ImageList_GetIcon
((
flags
&
SHGFI_SMALLICON
)
?
ShellSmallIconList
:
ShellBigIconList
,
psfi
->
iIcon
,
ILD_NORMAL
);
if
(
flags
&
(
SHGFI_UNKNOWN1
|
SHGFI_UNKNOWN2
|
SHGFI_UNKNOWN3
)
)
FIXME
(
"unknown
attribute!
\n
"
);
if
(
flags
&
~
SHGFI_KNOWN_FLAGS
)
FIXME
(
"unknown
flags %08x
\n
"
,
flags
&
~
SHGFI_KNOWN_FLAGS
);
if
(
psfParent
)
IShellFolder_Release
(
psfParent
);
...
...
@@ -499,7 +512,7 @@ DWORD WINAPI SHGetFileInfoW(LPCWSTR path,DWORD dwFileAttributes,
}
/*************************************************************************
* SHGetFileInfo
W
[SHELL32.@]
* SHGetFileInfo
A
[SHELL32.@]
*/
DWORD
WINAPI
SHGetFileInfoA
(
LPCSTR
path
,
DWORD
dwFileAttributes
,
...
...
include/shellapi.h
View file @
a830bf55
...
...
@@ -115,9 +115,8 @@ UINT WINAPI SHAppBarMessage(DWORD,PAPPBARDATA);
#define SHGFI_SHELLICONSIZE 0x000000004
/* get shell size icon */
#define SHGFI_PIDL 0x000000008
/* pszPath is a pidl */
#define SHGFI_USEFILEATTRIBUTES 0x000000010
/* use passed dwFileAttribute */
#define SHGFI_UNKNOWN1 0x000000020
#define SHGFI_UNKNOWN2 0x000000040
#define SHGFI_UNKNOWN3 0x000000080
#define SHGFI_ADDOVERLAYS 0x000000020
#define SHGFI_OVERLAYINDEX 0x000000040
#define SHGFI_ICON 0x000000100
/* get icon */
#define SHGFI_DISPLAYNAME 0x000000200
/* get display name */
#define SHGFI_TYPENAME 0x000000400
/* get type name */
...
...
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