Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sam Joan Roque-Worcel
wine
Commits
52b2d2cf
Commit
52b2d2cf
authored
24 years ago
by
Huw D. M. Davies
Committed by
Alexandre Julliard
24 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add some Str* prototypes to shlwapi.h.
parent
5f9fd77d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
dlls/shell32/shellstring.c
+1
-0
1 addition, 0 deletions
dlls/shell32/shellstring.c
dlls/shlwapi/string.c
+6
-3
6 additions, 3 deletions
dlls/shlwapi/string.c
include/shlwapi.h
+39
-0
39 additions, 0 deletions
include/shlwapi.h
include/wine/undocshell.h
+1
-13
1 addition, 13 deletions
include/wine/undocshell.h
with
47 additions
and
16 deletions
dlls/shell32/shellstring.c
+
1
−
0
View file @
52b2d2cf
...
...
@@ -8,6 +8,7 @@
#include
"debugtools.h"
#include
"heap.h"
#include
"shlwapi.h"
#include
"shellapi.h"
#include
"shell32_main.h"
#include
"wine/undocshell.h"
...
...
This diff is collapsed.
Click to expand it.
dlls/shlwapi/string.c
+
6
−
3
View file @
52b2d2cf
...
...
@@ -4,7 +4,10 @@
#include
<string.h>
#include
"winerror.h"
#include
"wine/undocshell.h"
#include
"windef.h"
#include
"wingdi.h"
#include
"winuser.h"
#include
"shlwapi.h"
#include
"wine/unicode.h"
#include
"heap.h"
#include
"debugtools.h"
...
...
@@ -14,7 +17,7 @@ DEFAULT_DEBUG_CHANNEL(shell);
/*************************************************************************
* StrChrA [SHLWAPI]
*/
LPSTR
WINAPI
StrChrA
(
LPCSTR
str
,
INT
c
)
LPSTR
WINAPI
StrChrA
(
LPCSTR
str
,
WORD
c
)
{
TRACE
(
"%s %i
\n
"
,
str
,
c
);
return
strchr
(
str
,
c
);
...
...
@@ -24,7 +27,7 @@ LPSTR WINAPI StrChrA (LPCSTR str, INT c)
* StrChrW [SHLWAPI]
*
*/
LPWSTR
WINAPI
StrChrW
(
LPWSTR
str
,
WCHAR
x
)
LPWSTR
WINAPI
StrChrW
(
LP
C
WSTR
str
,
WCHAR
x
)
{
TRACE
(
"%s 0x%04x
\n
"
,
debugstr_w
(
str
),
x
);
return
strchrW
(
str
,
x
);
...
...
This diff is collapsed.
Click to expand it.
include/shlwapi.h
+
39
−
0
View file @
52b2d2cf
...
...
@@ -3,6 +3,7 @@
#include
"windef.h"
#include
"wine/obj_queryassociations.h"
#include
"wine/obj_shellfolder.h"
#ifdef __cplusplus
extern
"C"
{
...
...
@@ -76,10 +77,48 @@ BOOL WINAPI PathStripToRootA(LPSTR pszPath);
BOOL
WINAPI
PathStripToRootW
(
LPWSTR
pszPath
);
#define PathStripToRoot WINELIB_NAME_AW(PathStripToRoot)
INT
WINAPI
StrCSpnA
(
LPCSTR
lpStr
,
LPCSTR
lpSet
);
INT
WINAPI
StrCSpnW
(
LPCWSTR
lpStr
,
LPCWSTR
lpSet
);
#define StrCSpn WINELIB_NAME_AW(StrCSpn)
INT
WINAPI
StrCSpnIA
(
LPCSTR
lpStr
,
LPCSTR
lpSet
);
INT
WINAPI
StrCSpnIW
(
LPCWSTR
lpStr
,
LPCWSTR
lpSet
);
#define StrCSpnI WINELIB_NAME_AW(StrCSpnI)
#define StrCatA lstrcatA
LPWSTR
WINAPI
StrCatW
(
LPWSTR
front
,
LPCWSTR
back
);
#define StrCat WINELIB_NAME_AW(StrCat)
LPSTR
WINAPI
StrCatBuffA
(
LPSTR
front
,
LPCSTR
back
,
INT
size
);
LPWSTR
WINAPI
StrCatBuffW
(
LPWSTR
front
,
LPCWSTR
back
,
INT
size
);
#define StrCatBuff WINELIB_NAME_AW(StrCatBuff)
LPSTR
WINAPI
StrChrA
(
LPCSTR
lpStart
,
WORD
wMatch
);
LPWSTR
WINAPI
StrChrW
(
LPCWSTR
lpStart
,
WCHAR
wMatch
);
#define StrChr WINELIB_NAME_AW(StrChr)
LPSTR
WINAPI
StrChrIA
(
LPCSTR
lpStart
,
WORD
wMatch
);
LPWSTR
WINAPI
StrChrIW
(
LPCWSTR
lpStart
,
WCHAR
wMatch
);
#define StrChrI WINELIB_NAME_AW(StrChrI)
INT
WINAPI
StrCmpNA
(
LPCSTR
lpStr1
,
LPCSTR
lpStr2
,
INT
nChar
);
INT
WINAPI
StrCmpNW
(
LPCWSTR
lpStr1
,
LPCWSTR
lpStr2
,
INT
nChar
);
#define StrCmpN WINELIB_NAME_AW(StrCmpN)
INT
WINAPI
StrCmpNIA
(
LPCSTR
lpStr1
,
LPCSTR
lpStr2
,
INT
nChar
);
INT
WINAPI
StrCmpNIW
(
LPCWSTR
lpStr1
,
LPCWSTR
lpStr2
,
INT
nChar
);
#define StrCmpNI WINELIB_NAME_AW(StrCmpNI)
LPSTR
WINAPI
StrDupA
(
LPCSTR
lpSrc
);
LPWSTR
WINAPI
StrDupW
(
LPCWSTR
lpSrc
);
#define StrDup WINELIB_NAME_AW(StrDup)
HRESULT
WINAPI
StrRetToBufA
(
LPSTRRET
src
,
LPITEMIDLIST
pidl
,
LPSTR
dest
,
DWORD
len
);
HRESULT
WINAPI
StrRetToBufW
(
LPSTRRET
src
,
LPITEMIDLIST
pidl
,
LPWSTR
dest
,
DWORD
len
);
#define StrRetToBuf WINELIB_NAME_AW(StrRetToBuf)
void
WINAPI
PathRemoveBlanksA
(
LPSTR
lpszPath
);
void
WINAPI
PathRemoveBlanksW
(
LPWSTR
lpszPath
);
#define PathRemoveBlanks WINELIB_NAME_AW(PathRemoveBlanks)
...
...
This diff is collapsed.
Click to expand it.
include/wine/undocshell.h
+
1
−
13
View file @
52b2d2cf
...
...
@@ -2,7 +2,6 @@
#define __WINE_UNDOCSHELL_H
#include
"windef.h"
//#include "shell.h"
#include
"commctrl.h"
#include
"wine/obj_shellfolder.h"
#include
"wine/obj_shellview.h"
...
...
@@ -113,17 +112,6 @@ HRESULT WINAPI StrRetToStrNAW (
LPSTRRET
src
,
LPITEMIDLIST
pidl
);
HRESULT
WINAPI
StrRetToBufA
(
LPSTRRET
src
,
LPITEMIDLIST
pidl
,
LPSTR
dest
,
DWORD
len
);
HRESULT
WINAPI
StrRetToBufW
(
LPSTRRET
src
,
LPITEMIDLIST
pidl
,
LPWSTR
dest
,
DWORD
len
);
/****************************************************************************
* SHChangeNotifyRegister API
...
...
@@ -681,7 +669,7 @@ int WINAPI PathProcessCommand(
void
WINAPI
PathStripPath
(
LPWSTR
lpszPath
);
BOOL
WINAPI
PathStripToRoot
(
LP
WSTR
lpszPath
);
BOOL
WINAPI
PathStripToRoot
AW
(
LP
VOID
lpszPath
);
void
WINAPI
PathRemoveArgs
(
LPWSTR
lpszPath
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment