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
1abff5af
Commit
1abff5af
authored
Dec 03, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Make some functions static.
parent
366fcaf1
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
29 additions
and
38 deletions
+29
-38
dialogs.c
dlls/shell32/dialogs.c
+2
-2
iconcache.c
dlls/shell32/iconcache.c
+2
-2
pidl.c
dlls/shell32/pidl.c
+8
-1
pidl.h
dlls/shell32/pidl.h
+0
-8
shell32_main.h
dlls/shell32/shell32_main.h
+0
-4
shellpath.c
dlls/shell32/shellpath.c
+9
-9
shellstring.c
dlls/shell32/shellstring.c
+6
-6
shlexec.c
dlls/shell32/shlexec.c
+1
-1
shlfileop.c
dlls/shell32/shlfileop.c
+1
-1
undocshell.h
dlls/shell32/undocshell.h
+0
-4
No files found.
dlls/shell32/dialogs.c
View file @
1abff5af
...
...
@@ -79,7 +79,7 @@ BOOL WINAPI PickIconDlg(
* SEE ALSO
* RunFileDlgAW
*/
void
WINAPI
RunFileDlgW
(
static
void
RunFileDlgW
(
HWND
hwndOwner
,
HICON
hIcon
,
LPCWSTR
lpstrDirectory
,
...
...
@@ -440,7 +440,7 @@ static void FillList (HWND hCb, char *pszLatest, BOOL fShowDefault)
* SEE ALSO
* RunFileDlgAW
*/
void
WINAPI
RunFileDlgA
(
static
void
RunFileDlgA
(
HWND
hwndOwner
,
HICON
hIcon
,
LPCSTR
lpstrDirectory
,
...
...
dlls/shell32/iconcache.c
View file @
1abff5af
...
...
@@ -632,7 +632,7 @@ HRESULT WINAPI SHMapIDListToImageListIndexAsync(IUnknown *pts, IShellFolder *psf
* Shell_GetCachedImageIndex [SHELL32.72]
*
*/
INT
WINAPI
Shell_GetCachedImageIndexA
(
LPCSTR
szPath
,
INT
nIndex
,
BOOL
bSimulateDoc
)
static
INT
Shell_GetCachedImageIndexA
(
LPCSTR
szPath
,
INT
nIndex
,
BOOL
bSimulateDoc
)
{
INT
ret
,
len
;
LPWSTR
szTemp
;
...
...
@@ -650,7 +650,7 @@ INT WINAPI Shell_GetCachedImageIndexA(LPCSTR szPath, INT nIndex, BOOL bSimulateD
return
ret
;
}
INT
WINAPI
Shell_GetCachedImageIndexW
(
LPCWSTR
szPath
,
INT
nIndex
,
BOOL
bSimulateDoc
)
static
INT
Shell_GetCachedImageIndexW
(
LPCWSTR
szPath
,
INT
nIndex
,
BOOL
bSimulateDoc
)
{
WARN
(
"(%s,%08x,%08x) semi-stub.
\n
"
,
debugstr_w
(
szPath
),
nIndex
,
bSimulateDoc
);
...
...
dlls/shell32/pidl.c
View file @
1abff5af
...
...
@@ -1322,7 +1322,14 @@ HRESULT WINAPI SHBindToParent(LPCITEMIDLIST pidl, REFIID riid, LPVOID *ppv, LPCI
*
*************************************************************************
*/
LPITEMIDLIST
_ILAlloc
(
PIDLTYPE
type
,
unsigned
int
size
)
/* Basic PIDL constructor. Allocates size + 5 bytes, where:
* - two bytes are SHITEMID.cb
* - one byte is PIDLDATA.type
* - two bytes are the NULL PIDL terminator
* Sets type of the returned PIDL to type.
*/
static
LPITEMIDLIST
_ILAlloc
(
PIDLTYPE
type
,
unsigned
int
size
)
{
LPITEMIDLIST
pidlOut
=
NULL
;
...
...
dlls/shell32/pidl.h
View file @
1abff5af
...
...
@@ -223,14 +223,6 @@ BOOL _ILIsEmpty (LPCITEMIDLIST pidl) { return _ILIsDesktop(pidl)
* simple pidls
*/
/* Basic PIDL constructor. Allocates size + 5 bytes, where:
* - two bytes are SHITEMID.cb
* - one byte is PIDLDATA.type
* - two bytes are the NULL PIDL terminator
* Sets type of the returned PIDL to type.
*/
LPITEMIDLIST
_ILAlloc
(
PIDLTYPE
type
,
unsigned
int
size
);
/* Creates a PIDL with guid format and type type, which must be one of PT_GUID,
* PT_SHELLEXT, or PT_YAGUID.
*/
...
...
dlls/shell32/shell32_main.h
View file @
1abff5af
...
...
@@ -156,7 +156,6 @@ void FreeChangeNotifications(void);
#define ASK_CANT_TRASH_ITEM 10
#define ASK_OVERWRITE_FOLDER 11
BOOL
SHELL_DeleteDirectoryW
(
HWND
hwnd
,
LPCWSTR
pwszDir
,
BOOL
bShowUI
);
BOOL
SHELL_ConfirmYesNoW
(
HWND
hWnd
,
int
nKindOfDialog
,
LPCWSTR
szDir
);
/* 16-bit functions */
...
...
@@ -222,9 +221,6 @@ typedef UINT_PTR (*SHELL_ExecuteW32)(const WCHAR *lpCmd, WCHAR *env, BOOL shWait
BOOL
SHELL_execute
(
LPSHELLEXECUTEINFOW
sei
,
SHELL_ExecuteW32
execfunc
);
UINT
SHELL_FindExecutable
(
LPCWSTR
lpPath
,
LPCWSTR
lpFile
,
LPCWSTR
lpOperation
,
LPWSTR
lpResult
,
int
resultLen
,
LPWSTR
key
,
WCHAR
**
env
,
LPITEMIDLIST
pidl
,
LPCWSTR
args
);
extern
WCHAR
swShell32Name
[
MAX_PATH
];
BOOL
UNIXFS_is_rooted_at_desktop
(
void
);
...
...
dlls/shell32/shellpath.c
View file @
1abff5af
...
...
@@ -483,7 +483,7 @@ BOOL WINAPI IsLFNDriveAW(LPCVOID lpszPath)
/*************************************************************************
* PathMakeUniqueNameA [internal]
*/
BOOL
WINAPI
PathMakeUniqueNameA
(
static
BOOL
PathMakeUniqueNameA
(
LPSTR
lpszBuffer
,
DWORD
dwBuffSize
,
LPCSTR
lpszShortName
,
...
...
@@ -499,7 +499,7 @@ BOOL WINAPI PathMakeUniqueNameA(
/*************************************************************************
* PathMakeUniqueNameW [internal]
*/
BOOL
WINAPI
PathMakeUniqueNameW
(
static
BOOL
PathMakeUniqueNameW
(
LPWSTR
lpszBuffer
,
DWORD
dwBuffSize
,
LPCWSTR
lpszShortName
,
...
...
@@ -636,7 +636,7 @@ int WINAPI PathCleanupSpec( LPCWSTR lpszPathW, LPWSTR lpszFileW )
/*************************************************************************
* PathQualifyA [SHELL32]
*/
BOOL
WINAPI
PathQualifyA
(
LPCSTR
pszPath
)
static
BOOL
PathQualifyA
(
LPCSTR
pszPath
)
{
FIXME
(
"%s
\n
"
,
pszPath
);
return
0
;
...
...
@@ -645,7 +645,7 @@ BOOL WINAPI PathQualifyA(LPCSTR pszPath)
/*************************************************************************
* PathQualifyW [SHELL32]
*/
BOOL
WINAPI
PathQualifyW
(
LPCWSTR
pszPath
)
static
BOOL
PathQualifyW
(
LPCWSTR
pszPath
)
{
FIXME
(
"%s
\n
"
,
debugstr_w
(
pszPath
));
return
0
;
...
...
@@ -661,7 +661,7 @@ BOOL WINAPI PathQualifyAW(LPCVOID pszPath)
return
PathQualifyA
(
pszPath
);
}
BOOL
WINAPI
PathResolveA
(
static
BOOL
PathResolveA
(
LPSTR
lpszPath
,
LPCSTR
*
alpszPaths
,
DWORD
dwFlags
)
...
...
@@ -671,7 +671,7 @@ BOOL WINAPI PathResolveA(
return
0
;
}
BOOL
WINAPI
PathResolveW
(
static
BOOL
PathResolveW
(
LPWSTR
lpszPath
,
LPCWSTR
*
alpszPaths
,
DWORD
dwFlags
)
...
...
@@ -695,9 +695,9 @@ BOOL WINAPI PathResolveAW(
}
/*************************************************************************
* PathProcessCommandA
[SHELL32.653]
* PathProcessCommandA
*/
LONG
WINAPI
PathProcessCommandA
(
static
LONG
PathProcessCommandA
(
LPCSTR
lpszPath
,
LPSTR
lpszBuff
,
DWORD
dwBuffSize
,
...
...
@@ -713,7 +713,7 @@ LONG WINAPI PathProcessCommandA (
/*************************************************************************
* PathProcessCommandW
*/
LONG
WINAPI
PathProcessCommandW
(
static
LONG
PathProcessCommandW
(
LPCWSTR
lpszPath
,
LPWSTR
lpszBuff
,
DWORD
dwBuffSize
,
...
...
dlls/shell32/shellstring.c
View file @
1abff5af
...
...
@@ -140,7 +140,7 @@ BOOL WINAPI StrRetToStrNAW(LPVOID dest, DWORD len, LPSTRRET src, const ITEMIDLIS
* StrToOleStr [SHELL32.163]
*
*/
int
WINAPI
StrToOleStrA
(
LPWSTR
lpWideCharStr
,
LPCSTR
lpMultiByteString
)
static
int
StrToOleStrA
(
LPWSTR
lpWideCharStr
,
LPCSTR
lpMultiByteString
)
{
TRACE
(
"(%p, %p %s)
\n
"
,
lpWideCharStr
,
lpMultiByteString
,
debugstr_a
(
lpMultiByteString
));
...
...
@@ -148,7 +148,7 @@ int WINAPI StrToOleStrA (LPWSTR lpWideCharStr, LPCSTR lpMultiByteString)
return
MultiByteToWideChar
(
0
,
0
,
lpMultiByteString
,
-
1
,
lpWideCharStr
,
MAX_PATH
);
}
int
WINAPI
StrToOleStrW
(
LPWSTR
lpWideCharStr
,
LPCWSTR
lpWString
)
static
int
StrToOleStrW
(
LPWSTR
lpWideCharStr
,
LPCWSTR
lpWString
)
{
TRACE
(
"(%p, %p %s)
\n
"
,
lpWideCharStr
,
lpWString
,
debugstr_w
(
lpWString
));
...
...
@@ -169,12 +169,12 @@ BOOL WINAPI StrToOleStrAW (LPWSTR lpWideCharStr, LPCVOID lpString)
* lpMulti, nMulti, nWide [IN]
* lpWide [OUT]
*/
BOOL
WINAPI
StrToOleStrNA
(
LPWSTR
lpWide
,
INT
nWide
,
LPCSTR
lpStrA
,
INT
nStr
)
static
BOOL
StrToOleStrNA
(
LPWSTR
lpWide
,
INT
nWide
,
LPCSTR
lpStrA
,
INT
nStr
)
{
TRACE
(
"(%p, %x, %s, %x)
\n
"
,
lpWide
,
nWide
,
debugstr_an
(
lpStrA
,
nStr
),
nStr
);
return
MultiByteToWideChar
(
0
,
0
,
lpStrA
,
nStr
,
lpWide
,
nWide
);
}
BOOL
WINAPI
StrToOleStrNW
(
LPWSTR
lpWide
,
INT
nWide
,
LPCWSTR
lpStrW
,
INT
nStr
)
static
BOOL
StrToOleStrNW
(
LPWSTR
lpWide
,
INT
nWide
,
LPCWSTR
lpStrW
,
INT
nStr
)
{
TRACE
(
"(%p, %x, %s, %x)
\n
"
,
lpWide
,
nWide
,
debugstr_wn
(
lpStrW
,
nStr
),
nStr
);
...
...
@@ -194,13 +194,13 @@ BOOL WINAPI StrToOleStrNAW (LPWSTR lpWide, INT nWide, LPCVOID lpStr, INT nStr)
/*************************************************************************
* OleStrToStrN [SHELL32.78]
*/
BOOL
WINAPI
OleStrToStrNA
(
LPSTR
lpStr
,
INT
nStr
,
LPCWSTR
lpOle
,
INT
nOle
)
static
BOOL
OleStrToStrNA
(
LPSTR
lpStr
,
INT
nStr
,
LPCWSTR
lpOle
,
INT
nOle
)
{
TRACE
(
"(%p, %x, %s, %x)
\n
"
,
lpStr
,
nStr
,
debugstr_wn
(
lpOle
,
nOle
),
nOle
);
return
WideCharToMultiByte
(
0
,
0
,
lpOle
,
nOle
,
lpStr
,
nStr
,
NULL
,
NULL
);
}
BOOL
WINAPI
OleStrToStrNW
(
LPWSTR
lpwStr
,
INT
nwStr
,
LPCWSTR
lpOle
,
INT
nOle
)
static
BOOL
OleStrToStrNW
(
LPWSTR
lpwStr
,
INT
nwStr
,
LPCWSTR
lpOle
,
INT
nOle
)
{
TRACE
(
"(%p, %x, %s, %x)
\n
"
,
lpwStr
,
nwStr
,
debugstr_wn
(
lpOle
,
nOle
),
nOle
);
...
...
dlls/shell32/shlexec.c
View file @
1abff5af
...
...
@@ -534,7 +534,7 @@ static UINT SHELL_FindExecutableByOperation(LPCWSTR lpOperation, LPWSTR key, LPW
* command (it'll be used afterwards for more information
* on the operation)
*/
UINT
SHELL_FindExecutable
(
LPCWSTR
lpPath
,
LPCWSTR
lpFile
,
LPCWSTR
lpOperation
,
static
UINT
SHELL_FindExecutable
(
LPCWSTR
lpPath
,
LPCWSTR
lpFile
,
LPCWSTR
lpOperation
,
LPWSTR
lpResult
,
int
resultLen
,
LPWSTR
key
,
WCHAR
**
env
,
LPITEMIDLIST
pidl
,
LPCWSTR
args
)
{
static
const
WCHAR
wWindows
[]
=
{
'w'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
0
};
...
...
dlls/shell32/shlfileop.c
View file @
1abff5af
...
...
@@ -346,7 +346,7 @@ HRESULT WINAPI SHIsFileAvailableOffline(LPCWSTR path, LPDWORD status)
* Asks for confirmation when bShowUI is true and deletes the directory and
* all its subdirectories and files if necessary.
*/
BOOL
SHELL_DeleteDirectoryW
(
HWND
hwnd
,
LPCWSTR
pszDir
,
BOOL
bShowUI
)
static
BOOL
SHELL_DeleteDirectoryW
(
HWND
hwnd
,
LPCWSTR
pszDir
,
BOOL
bShowUI
)
{
BOOL
ret
=
TRUE
;
HANDLE
hFind
;
...
...
dlls/shell32/undocshell.h
View file @
1abff5af
...
...
@@ -412,12 +412,8 @@ BOOL WINAPI PathMakeUniqueNameAW(
LPCVOID
lpszPathName
);
BOOL
WINAPI
PathQualifyA
(
LPCSTR
path
);
BOOL
WINAPI
PathQualifyW
(
LPCWSTR
path
);
#define PathQualify WINELIB_NAME_AW(PathQualify)
BOOL
WINAPI
PathQualifyAW
(
LPCVOID
path
);
BOOL
WINAPI
PathResolveAW
(
LPVOID
lpszPath
,
LPCVOID
*
alpszPaths
,
DWORD
dwFlags
);
VOID
WINAPI
PathSetDlgItemPathAW
(
HWND
hDlg
,
int
nIDDlgItem
,
LPCVOID
lpszPath
);
...
...
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