2 * SHLWAPI.DLL functions
4 * Copyright (C) 2000 Juergen Schmied
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #ifndef __WINE_SHLWAPI_H
22 #define __WINE_SHLWAPI_H
24 /* FIXME: #include <specstrings.h> */
30 #endif /* defined(__cplusplus) */
34 #ifndef NO_SHLWAPI_REG
36 /* Registry functions */
38 DWORD WINAPI
SHDeleteEmptyKeyA(_In_ HKEY
, _In_opt_ LPCSTR
);
39 DWORD WINAPI
SHDeleteEmptyKeyW(_In_ HKEY
, _In_opt_ LPCWSTR
);
40 #define SHDeleteEmptyKey WINELIB_NAME_AW(SHDeleteEmptyKey)
42 DWORD WINAPI
SHDeleteKeyA(_In_ HKEY
, _In_opt_ LPCSTR
);
43 DWORD WINAPI
SHDeleteKeyW(_In_ HKEY
, _In_opt_ LPCWSTR
);
44 #define SHDeleteKey WINELIB_NAME_AW(SHDeleteKey)
46 DWORD WINAPI
SHDeleteValueA(_In_ HKEY
, _In_opt_ LPCSTR
, _In_ LPCSTR
);
47 DWORD WINAPI
SHDeleteValueW(_In_ HKEY
, _In_opt_ LPCWSTR
, _In_ LPCWSTR
);
48 #define SHDeleteValue WINELIB_NAME_AW(SHDeleteValue)
57 _Out_writes_bytes_opt_(*pcbData
) LPVOID
,
58 _Inout_opt_ LPDWORD pcbData
);
67 _Out_writes_bytes_opt_(*pcbData
) LPVOID
,
68 _Inout_opt_ LPDWORD pcbData
);
70 #define SHGetValue WINELIB_NAME_AW(SHGetValue)
79 _In_reads_bytes_opt_(cbData
) LPCVOID
,
89 _In_reads_bytes_opt_(cbData
) LPCVOID
,
92 #define SHSetValue WINELIB_NAME_AW(SHSetValue)
101 _Out_writes_bytes_to_opt_(*pcbData
, *pcbData
) LPVOID
,
102 _Inout_opt_ LPDWORD pcbData
);
111 _Out_writes_bytes_to_opt_(*pcbData
, *pcbData
) LPVOID
,
112 _Inout_opt_ LPDWORD pcbData
);
114 #define SHQueryValueEx WINELIB_NAME_AW(SHQueryValueEx)
121 _Out_writes_(*pcchName
) LPSTR
,
122 _Inout_ LPDWORD pcchName
);
129 _Out_writes_(*pcchName
) LPWSTR
,
130 _Inout_ LPDWORD pcchName
);
132 #define SHEnumKeyEx WINELIB_NAME_AW(SHEnumKeyEx)
139 _Out_writes_opt_(*pcchValueName
) LPSTR
,
140 _Inout_opt_ LPDWORD pcchValueName
,
142 _Out_writes_bytes_to_opt_(*pcbData
, *pcbData
) LPVOID
,
143 _Inout_opt_ LPDWORD pcbData
);
150 _Out_writes_opt_(*pcchValueName
) LPWSTR
,
151 _Inout_opt_ LPDWORD pcchValueName
,
153 _Out_writes_bytes_to_opt_(*pcbData
, *pcbData
) LPVOID
,
154 _Inout_opt_ LPDWORD pcbData
);
156 #define SHEnumValue WINELIB_NAME_AW(SHEnumValue)
176 #define SHQueryInfoKey WINELIB_NAME_AW(SHQueryInfoKey)
184 _Out_writes_(MAX_PATH
) LPSTR
,
193 _Out_writes_(MAX_PATH
) LPWSTR
,
196 #define SHRegGetPath WINELIB_NAME_AW(SHRegGetPath)
216 #define SHRegSetPath WINELIB_NAME_AW(SHRegSetPath)
234 #define SHCopyKey WINELIB_NAME_AW(SHCopyKey)
236 HKEY WINAPI
SHRegDuplicateHKey(_In_ HKEY
);
238 /* SHRegGetValue flags */
241 #define SRRF_RT_REG_NONE 0x1
242 #define SRRF_RT_REG_SZ 0x2
243 #define SRRF_RT_REG_EXPAND_SZ 0x4
244 #define SRRF_RT_REG_BINARY 0x8
245 #define SRRF_RT_REG_DWORD 0x10
246 #define SRRF_RT_REG_MULTI_SZ 0x20
247 #define SRRF_RT_REG_QWORD 0x40
249 #define SRRF_RT_DWORD (SRRF_RT_REG_BINARY|SRRF_RT_REG_DWORD)
250 #define SRRF_RT_QWORD (SRRF_RT_REG_BINARY|SRRF_RT_REG_QWORD)
251 #define SRRF_RT_ANY 0xffff
253 #define SRRF_RM_ANY 0
254 #define SRRF_RM_NORMAL 0x10000
255 #define SRRF_RM_SAFE 0x20000
256 #define SRRF_RM_SAFENETWORK 0x40000
258 #define SRRF_NOEXPAND 0x10000000
259 #define SRRF_ZEROONFAILURE 0x20000000
260 #define SRRF_NOVIRT 0x40000000
270 _Out_writes_bytes_to_opt_(*pcbData
, *pcbData
) LPVOID
,
271 _Inout_opt_ LPDWORD pcbData
);
281 _Out_writes_bytes_to_opt_(*pcbData
, *pcbData
) LPVOID
,
282 _Inout_opt_ LPDWORD pcbData
);
284 #define SHRegGetValue WINELIB_NAME_AW(SHRegGetValue)
286 /* Undocumented registry functions */
288 DWORD WINAPI
SHDeleteOrphanKeyA(HKEY
,LPCSTR
);
289 DWORD WINAPI
SHDeleteOrphanKeyW(HKEY
,LPCWSTR
);
290 #define SHDeleteOrphanKey WINELIB_NAME_AW(SHDeleteOrphanKey)
293 /* User registry functions */
297 SHREGDEL_DEFAULT
= 0,
299 SHREGDEL_HKLM
= 0x10,
300 SHREGDEL_BOTH
= SHREGDEL_HKLM
| SHREGDEL_HKCU
305 SHREGENUM_DEFAULT
= 0,
306 SHREGENUM_HKCU
= 0x1,
307 SHREGENUM_HKLM
= 0x10,
308 SHREGENUM_BOTH
= SHREGENUM_HKLM
| SHREGENUM_HKCU
311 #define SHREGSET_HKCU 0x1 /* Apply to HKCU if empty */
312 #define SHREGSET_FORCE_HKCU 0x2 /* Always apply to HKCU */
313 #define SHREGSET_HKLM 0x4 /* Apply to HKLM if empty */
314 #define SHREGSET_FORCE_HKLM 0x8 /* Always apply to HKLM */
315 #define SHREGSET_DEFAULT (SHREGSET_FORCE_HKCU | SHREGSET_HKLM)
317 typedef HANDLE HUSKEY
;
318 typedef HUSKEY
*PHUSKEY
;
338 #define SHRegCreateUSKey WINELIB_NAME_AW(SHRegCreateUSKey)
358 #define SHRegOpenUSKey WINELIB_NAME_AW(SHRegOpenUSKey)
366 _Out_writes_bytes_to_opt_(*pcbData
, *pcbData
) LPVOID
,
367 _Inout_opt_ LPDWORD pcbData
,
369 _In_reads_bytes_opt_(dwDefaultDataSize
) LPVOID
,
370 _In_opt_ DWORD dwDefaultDataSize
);
378 _Out_writes_bytes_to_opt_(*pcbData
, *pcbData
) LPVOID
,
379 _Inout_opt_ LPDWORD pcbData
,
381 _In_reads_bytes_opt_(dwDefaultDataSize
) LPVOID
,
382 _In_opt_ DWORD dwDefaultDataSize
);
384 #define SHRegQueryUSValue WINELIB_NAME_AW(SHRegQueryUSValue)
392 _In_reads_bytes_(cbData
) LPVOID
,
402 _In_reads_bytes_(cbData
) LPVOID
,
406 #define SHRegWriteUSValue WINELIB_NAME_AW(SHRegWriteUSValue)
413 _In_ SHREGDEL_FLAGS
);
420 _In_ SHREGDEL_FLAGS
);
422 #define SHRegDeleteUSValue WINELIB_NAME_AW(SHRegDeleteUSValue)
426 SHRegDeleteEmptyUSKeyA(
429 _In_ SHREGDEL_FLAGS
);
433 SHRegDeleteEmptyUSKeyW(
436 _In_ SHREGDEL_FLAGS
);
438 #define SHRegDeleteEmptyUSKey WINELIB_NAME_AW(SHRegDeleteEmptyUSKey)
445 _Out_writes_to_(*pcchName
, *pcchName
) LPSTR
,
446 _Inout_ LPDWORD pcchName
,
447 _In_ SHREGENUM_FLAGS
);
454 _Out_writes_to_(*pcchName
, *pcchName
) LPWSTR
,
455 _Inout_ LPDWORD pcchName
,
456 _In_ SHREGENUM_FLAGS
);
458 #define SHRegEnumUSKey WINELIB_NAME_AW(SHRegEnumUSKey)
465 _Out_writes_to_(*pcchValueName
, *pcchValueName
) LPSTR
,
466 _Inout_ LPDWORD pcchValueName
,
468 _Out_writes_bytes_to_opt_(*pcbData
, *pcbData
) LPVOID
,
469 _Inout_opt_ LPDWORD pcbData
,
470 _In_ SHREGENUM_FLAGS
);
477 _Out_writes_to_(*pcchValueName
, *pcchValueName
) LPWSTR
,
478 _Inout_ LPDWORD pcchValueName
,
480 _Out_writes_bytes_to_opt_(*pcbData
, *pcbData
) LPVOID
,
481 _Inout_opt_ LPDWORD pcbData
,
482 _In_ SHREGENUM_FLAGS
);
484 #define SHRegEnumUSValue WINELIB_NAME_AW(SHRegEnumUSValue)
488 SHRegQueryInfoUSKeyA(
494 _In_ SHREGENUM_FLAGS
);
498 SHRegQueryInfoUSKeyW(
504 _In_ SHREGENUM_FLAGS
);
506 #define SHRegQueryInfoUSKey WINELIB_NAME_AW(SHRegQueryInfoUSKey)
508 LONG WINAPI
SHRegCloseUSKey(_In_ HUSKEY
);
516 _Out_writes_bytes_to_opt_(*pcbData
, *pcbData
) LPVOID
,
517 _Inout_opt_ LPDWORD pcbData
,
519 _In_reads_bytes_opt_(dwDefaultDataSize
) LPVOID
,
520 _In_ DWORD dwDefaultDataSize
);
528 _Out_writes_bytes_to_opt_(*pcbData
, *pcbData
) LPVOID
,
529 _Inout_opt_ LPDWORD pcbData
,
531 _In_reads_bytes_opt_(dwDefaultDataSize
) LPVOID
,
532 _In_ DWORD dwDefaultDataSize
);
534 #define SHRegGetUSValue WINELIB_NAME_AW(SHRegGetUSValue)
542 _In_reads_bytes_opt_(cbData
) LPVOID
,
543 _In_opt_ DWORD cbData
,
552 _In_reads_bytes_opt_(cbData
) LPVOID
,
553 _In_opt_ DWORD cbData
,
556 #define SHRegSetUSValue WINELIB_NAME_AW(SHRegSetUSValue)
560 SHRegGetBoolUSValueA(
568 SHRegGetBoolUSValueW(
574 #define SHRegGetBoolUSValue WINELIB_NAME_AW(SHRegGetBoolUSValue)
576 int WINAPI
SHRegGetIntW(_In_ HKEY
, _In_opt_ LPCWSTR
, _In_
int);
578 /* IQueryAssociation and helpers */
581 ASSOCF_INIT_NOREMAPCLSID
= 0x001, /* Don't map clsid->progid */
582 ASSOCF_INIT_BYEXENAME
= 0x002, /* .exe name given */
583 ASSOCF_OPEN_BYEXENAME
= 0x002, /* Synonym */
584 ASSOCF_INIT_DEFAULTTOSTAR
= 0x004, /* Use * as base */
585 ASSOCF_INIT_DEFAULTTOFOLDER
= 0x008, /* Use folder as base */
586 ASSOCF_NOUSERSETTINGS
= 0x010, /* No HKCU reads */
587 ASSOCF_NOTRUNCATE
= 0x020, /* Don't truncate return */
588 ASSOCF_VERIFY
= 0x040, /* Verify data */
589 ASSOCF_REMAPRUNDLL
= 0x080, /* Get rundll args */
590 ASSOCF_NOFIXUPS
= 0x100, /* Don't fixup errors */
591 ASSOCF_IGNOREBASECLASS
= 0x200, /* Don't read baseclass */
592 ASSOCF_INIT_IGNOREUNKNOWN
= 0x400, /* Fail for unknown progid */
595 typedef DWORD ASSOCF
;
599 ASSOCSTR_COMMAND
= 1, /* Verb command */
600 ASSOCSTR_EXECUTABLE
, /* .exe from command string */
601 ASSOCSTR_FRIENDLYDOCNAME
, /* Friendly doc type name */
602 ASSOCSTR_FRIENDLYAPPNAME
, /* Friendly .exe name */
603 ASSOCSTR_NOOPEN
, /* noopen value */
604 ASSOCSTR_SHELLNEWVALUE
, /* Use shellnew key */
605 ASSOCSTR_DDECOMMAND
, /* DDE command template */
606 ASSOCSTR_DDEIFEXEC
, /* DDE command for process create */
607 ASSOCSTR_DDEAPPLICATION
, /* DDE app name */
608 ASSOCSTR_DDETOPIC
, /* DDE topic */
609 ASSOCSTR_INFOTIP
, /* Infotip */
610 ASSOCSTR_QUICKTIP
, /* Quick infotip */
611 ASSOCSTR_TILEINFO
, /* Properties for tileview */
612 ASSOCSTR_CONTENTTYPE
, /* Mimetype */
613 ASSOCSTR_DEFAULTICON
, /* Icon */
614 ASSOCSTR_SHELLEXTENSION
, /* GUID for shell extension handler */
620 ASSOCKEY_SHELLEXECCLASS
= 1, /* Key for ShellExec */
621 ASSOCKEY_APP
, /* Application */
622 ASSOCKEY_CLASS
, /* Progid or class */
623 ASSOCKEY_BASECLASS
, /* Base class */
629 ASSOCDATA_MSIDESCRIPTOR
= 1, /* Component descriptor */
630 ASSOCDATA_NOACTIVATEHANDLER
, /* Don't activate */
631 ASSOCDATA_QUERYCLASSSTORE
, /* Look in Class Store */
632 ASSOCDATA_HASPERUSERASSOC
, /* Use user association */
633 ASSOCDATA_EDITFLAGS
, /* Edit flags */
634 ASSOCDATA_VALUE
, /* pszExtra is value */
643 typedef struct IQueryAssociations
*LPQUERYASSOCIATIONS
;
645 #define INTERFACE IQueryAssociations
646 DECLARE_INTERFACE_(IQueryAssociations
,IUnknown
)
648 /*** IUnknown methods ***/
649 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
650 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
651 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
652 /*** IQueryAssociations methods ***/
653 STDMETHOD(Init
)(THIS_ _In_ ASSOCF flags
, _In_opt_ LPCWSTR pszAssoc
, _In_opt_ HKEY hkProgid
, _In_opt_ HWND hwnd
) PURE
;
654 STDMETHOD(GetString
)(THIS_ _In_ ASSOCF flags
, _In_ ASSOCSTR str
, _In_opt_ LPCWSTR pszExtra
, _Out_writes_opt_(*pcchOut
) LPWSTR pszOut
, _Inout_ DWORD
*pcchOut
) PURE
;
655 STDMETHOD(GetKey
)(THIS_ _In_ ASSOCF flags
, _In_ ASSOCKEY key
, _In_opt_ LPCWSTR pszExtra
, _Out_ HKEY
*phkeyOut
) PURE
;
656 STDMETHOD(GetData
)(THIS_ _In_ ASSOCF flags
, _In_ ASSOCDATA data
, _In_opt_ LPCWSTR pszExtra
, _Out_writes_bytes_opt_(*pcbOut
) LPVOID pvOut
, _Inout_opt_ DWORD
*pcbOut
) PURE
;
657 STDMETHOD(GetEnum
)(THIS_ _In_ ASSOCF flags
, _In_ ASSOCENUM assocenum
, _In_opt_ LPCWSTR pszExtra
, _In_ REFIID riid
, _Outptr_ LPVOID
*ppvOut
) PURE
;
661 #if !defined(__cplusplus) || defined(CINTERFACE)
662 #define IQueryAssociations_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
663 #define IQueryAssociations_AddRef(p) (p)->lpVtbl->AddRef(p)
664 #define IQueryAssociations_Release(p) (p)->lpVtbl->Release(p)
665 #define IQueryAssociations_Init(p,a,b,c,d) (p)->lpVtbl->Init(p,a,b,c,d)
666 #define IQueryAssociations_GetString(p,a,b,c,d,e) (p)->lpVtbl->GetString(p,a,b,c,d,e)
667 #define IQueryAssociations_GetKey(p,a,b,c,d) (p)->lpVtbl->GetKey(p,a,b,c,d)
668 #define IQueryAssociations_GetData(p,a,b,c,d,e) (p)->lpVtbl->GetData(p,a,b,c,d,e)
669 #define IQueryAssociations_GetEnum(p,a,b,c,d,e) (p)->lpVtbl->GetEnum(p,a,b,c,d,e)
672 HRESULT WINAPI
AssocCreate(_In_ CLSID
, _In_ REFIID
, _Outptr_ LPVOID
*);
681 _Out_writes_opt_(*pcchOut
) LPSTR
,
682 _Inout_ LPDWORD pcchOut
);
691 _Out_writes_opt_(*pcchOut
) LPWSTR
,
692 _Inout_ LPDWORD pcchOut
);
694 #define AssocQueryString WINELIB_NAME_AW(AssocQueryString)
698 AssocQueryStringByKeyA(
703 _Out_writes_opt_(*pcchOut
) LPSTR
,
704 _Inout_ LPDWORD pcchOut
);
708 AssocQueryStringByKeyW(
713 _Out_writes_opt_(*pcchOut
) LPWSTR
,
714 _Inout_ LPDWORD pcchOut
);
716 #define AssocQueryStringByKey WINELIB_NAME_AW(AssocQueryStringByKey)
736 #define AssocQueryKey WINELIB_NAME_AW(AssocQueryKey)
738 BOOL WINAPI
AssocIsDangerous(_In_ LPCWSTR
);
740 #endif /* NO_SHLWAPI_REG */
742 void WINAPI
IUnknown_Set(_Inout_ IUnknown
**ppunk
, _In_opt_ IUnknown
*punk
);
743 void WINAPI
IUnknown_AtomicRelease(_Inout_opt_ IUnknown
**punk
);
744 HRESULT WINAPI
IUnknown_GetWindow(_In_ IUnknown
*punk
, _Out_ HWND
*phwnd
);
750 _In_opt_ IUnknown
*punkSite
);
757 _Outptr_
void **ppv
);
761 IUnknown_QueryService(
762 _In_opt_ IUnknown
*punk
,
763 _In_ REFGUID guidService
,
765 _Outptr_
void **ppvOut
);
768 #ifndef NO_SHLWAPI_PATH
770 /* GetPathCharType return flags */
771 #define GCT_INVALID 0x0
772 #define GCT_LFNCHAR 0x1
773 #define GCT_SHORTCHAR 0x2
775 #define GCT_SEPARATOR 0x8
777 LPSTR WINAPI
PathAddBackslashA(_Inout_updates_(MAX_PATH
) LPSTR
);
778 LPWSTR WINAPI
PathAddBackslashW(_Inout_updates_(MAX_PATH
) LPWSTR
);
779 #define PathAddBackslash WINELIB_NAME_AW(PathAddBackslash)
784 _Inout_updates_(MAX_PATH
) LPSTR
,
790 _Inout_updates_(MAX_PATH
) LPWSTR
,
793 #define PathAddExtension WINELIB_NAME_AW(PathAddExtension)
795 BOOL WINAPI
PathAppendA(_Inout_updates_(MAX_PATH
) LPSTR
, _In_ LPCSTR
);
796 BOOL WINAPI
PathAppendW(_Inout_updates_(MAX_PATH
) LPWSTR
, _In_ LPCWSTR
);
797 #define PathAppend WINELIB_NAME_AW(PathAppend)
799 LPSTR WINAPI
PathBuildRootA(_Out_writes_(4) LPSTR
, int);
800 LPWSTR WINAPI
PathBuildRootW(_Out_writes_(4) LPWSTR
, int);
801 #define PathBuildRoot WINELIB_NAME_AW(PathBuiltRoot)
803 BOOL WINAPI
PathCanonicalizeA(_Out_writes_(MAX_PATH
) LPSTR
, _In_ LPCSTR
);
804 BOOL WINAPI
PathCanonicalizeW(_Out_writes_(MAX_PATH
) LPWSTR
, _In_ LPCWSTR
);
805 #define PathCanonicalize WINELIB_NAME_AW(PathCanonicalize)
810 _Out_writes_(MAX_PATH
) LPSTR
,
817 _Out_writes_(MAX_PATH
) LPWSTR
,
821 #define PathCombine WINELIB_NAME_AW(PathCombine)
827 _Inout_updates_(MAX_PATH
) LPSTR
,
834 _Inout_updates_(MAX_PATH
) LPWSTR
,
837 #define PathCompactPath WINELIB_NAME_AW(PathCompactPath)
842 _Out_writes_(cchMax
) LPSTR
,
850 _Out_writes_(cchMax
) LPWSTR
,
855 #define PathCompactPathEx WINELIB_NAME_AW(PathCompactPathEx)
862 _Out_writes_opt_(MAX_PATH
) LPSTR
);
869 _Out_writes_opt_(MAX_PATH
) LPWSTR
);
871 #define PathCommonPrefix WINELIB_NAME_AW(PathCommonPrefix)
877 _Out_writes_to_(*pcchPath
, *pcchPath
) LPSTR
,
878 _Inout_ LPDWORD pcchPath
,
885 _Out_writes_to_(*pcchPath
, *pcchPath
) LPWSTR
,
886 _Inout_ LPDWORD pcchPath
,
889 #define PathCreateFromUrl WINELIB_NAME_AW(PathCreateFromUrl)
891 HRESULT WINAPI
PathCreateFromUrlAlloc(_In_ LPCWSTR
, _Outptr_ LPWSTR
*, DWORD
);
893 BOOL WINAPI
PathFileExistsA(_In_ LPCSTR
);
894 BOOL WINAPI
PathFileExistsW(_In_ LPCWSTR
);
895 #define PathFileExists WINELIB_NAME_AW(PathFileExists)
897 BOOL WINAPI
PathFileExistsAndAttributesA(LPCSTR
,DWORD
*);
898 BOOL WINAPI
PathFileExistsAndAttributesW(LPCWSTR
,DWORD
*);
899 #define PathFileExistsAndAttributes WINELIB_NAME_AW(PathFileExistsAndAttributes)
901 LPSTR WINAPI
PathFindExtensionA(_In_ LPCSTR
);
902 LPWSTR WINAPI
PathFindExtensionW(_In_ LPCWSTR
);
903 #define PathFindExtension WINELIB_NAME_AW(PathFindExtension)
905 LPSTR WINAPI
PathFindFileNameA(_In_ LPCSTR
);
906 LPWSTR WINAPI
PathFindFileNameW(_In_ LPCWSTR
);
907 #define PathFindFileName WINELIB_NAME_AW(PathFindFileName)
909 LPSTR WINAPI
PathFindNextComponentA(_In_ LPCSTR
);
910 LPWSTR WINAPI
PathFindNextComponentW(_In_ LPCWSTR
);
911 #define PathFindNextComponent WINELIB_NAME_AW(PathFindNextComponent)
913 BOOL WINAPI
PathFindOnPathA(_Inout_updates_(MAX_PATH
) LPSTR
, _In_opt_ LPCSTR
*);
914 BOOL WINAPI
PathFindOnPathW(_Inout_updates_(MAX_PATH
) LPWSTR
, _In_opt_ LPCWSTR
*);
915 #define PathFindOnPath WINELIB_NAME_AW(PathFindOnPath)
917 LPSTR WINAPI
PathGetArgsA(_In_ LPCSTR
);
918 LPWSTR WINAPI
PathGetArgsW(_In_ LPCWSTR
);
919 #define PathGetArgs WINELIB_NAME_AW(PathGetArgs)
921 UINT WINAPI
PathGetCharTypeA(_In_ UCHAR
);
922 UINT WINAPI
PathGetCharTypeW(_In_ WCHAR
);
923 #define PathGetCharType WINELIB_NAME_AW(PathGetCharType)
925 int WINAPI
PathGetDriveNumberA(_In_ LPCSTR
);
926 int WINAPI
PathGetDriveNumberW(_In_ LPCWSTR
);
927 #define PathGetDriveNumber WINELIB_NAME_AW(PathGetDriveNumber)
929 BOOL WINAPI
PathIsDirectoryA(_In_ LPCSTR
);
930 BOOL WINAPI
PathIsDirectoryW(_In_ LPCWSTR
);
931 #define PathIsDirectory WINELIB_NAME_AW(PathIsDirectory)
933 BOOL WINAPI
PathIsDirectoryEmptyA(_In_ LPCSTR
);
934 BOOL WINAPI
PathIsDirectoryEmptyW(_In_ LPCWSTR
);
935 #define PathIsDirectoryEmpty WINELIB_NAME_AW(PathIsDirectoryEmpty)
937 BOOL WINAPI
PathIsFileSpecA(_In_ LPCSTR
);
938 BOOL WINAPI
PathIsFileSpecW(_In_ LPCWSTR
);
939 #define PathIsFileSpec WINELIB_NAME_AW(PathIsFileSpec);
941 BOOL WINAPI
PathIsPrefixA(_In_ LPCSTR
, _In_ LPCSTR
);
942 BOOL WINAPI
PathIsPrefixW(_In_ LPCWSTR
, _In_ LPCWSTR
);
943 #define PathIsPrefix WINELIB_NAME_AW(PathIsPrefix)
945 BOOL WINAPI
PathIsRelativeA(_In_ LPCSTR
);
946 BOOL WINAPI
PathIsRelativeW(_In_ LPCWSTR
);
947 #define PathIsRelative WINELIB_NAME_AW(PathIsRelative)
949 BOOL WINAPI
PathIsRootA(_In_ LPCSTR
);
950 BOOL WINAPI
PathIsRootW(_In_ LPCWSTR
);
951 #define PathIsRoot WINELIB_NAME_AW(PathIsRoot)
953 BOOL WINAPI
PathIsSameRootA(_In_ LPCSTR
, _In_ LPCSTR
);
954 BOOL WINAPI
PathIsSameRootW(_In_ LPCWSTR
, _In_ LPCWSTR
);
955 #define PathIsSameRoot WINELIB_NAME_AW(PathIsSameRoot)
957 BOOL WINAPI
PathIsUNCA(_In_ LPCSTR
);
958 BOOL WINAPI
PathIsUNCW(_In_ LPCWSTR
);
959 #define PathIsUNC WINELIB_NAME_AW(PathIsUNC)
961 BOOL WINAPI
PathIsUNCServerA(_In_ LPCSTR
);
962 BOOL WINAPI
PathIsUNCServerW(_In_ LPCWSTR
);
963 #define PathIsUNCServer WINELIB_NAME_AW(PathIsUNCServer)
965 BOOL WINAPI
PathIsUNCServerShareA(_In_ LPCSTR
);
966 BOOL WINAPI
PathIsUNCServerShareW(_In_ LPCWSTR
);
967 #define PathIsUNCServerShare WINELIB_NAME_AW(PathIsUNCServerShare)
969 BOOL WINAPI
PathIsContentTypeA(_In_ LPCSTR
, _In_ LPCSTR
);
970 BOOL WINAPI
PathIsContentTypeW(_In_ LPCWSTR
, _In_ LPCWSTR
);
971 #define PathIsContentType WINELIB_NAME_AW(PathIsContentType)
973 BOOL WINAPI
PathIsURLA(_In_ LPCSTR
);
974 BOOL WINAPI
PathIsURLW(_In_ LPCWSTR
);
975 #define PathIsURL WINELIB_NAME_AW(PathIsURL)
977 BOOL WINAPI
PathMakePrettyA(_Inout_ LPSTR
);
978 BOOL WINAPI
PathMakePrettyW(_Inout_ LPWSTR
);
979 #define PathMakePretty WINELIB_NAME_AW(PathMakePretty)
981 BOOL WINAPI
PathMatchSpecA(_In_ LPCSTR
, _In_ LPCSTR
);
982 BOOL WINAPI
PathMatchSpecW(_In_ LPCWSTR
, _In_ LPCWSTR
);
983 #define PathMatchSpec WINELIB_NAME_AW(PathMatchSpec)
985 int WINAPI
PathParseIconLocationA(_Inout_ LPSTR
);
986 int WINAPI
PathParseIconLocationW(_Inout_ LPWSTR
);
987 #define PathParseIconLocation WINELIB_NAME_AW(PathParseIconLocation)
989 VOID WINAPI
PathQuoteSpacesA(_Inout_updates_(MAX_PATH
) LPSTR
);
990 VOID WINAPI
PathQuoteSpacesW(_Inout_updates_(MAX_PATH
) LPWSTR
);
991 #define PathQuoteSpaces WINELIB_NAME_AW(PathQuoteSpaces)
996 _Out_writes_(MAX_PATH
) LPSTR
,
1004 PathRelativePathToW(
1005 _Out_writes_(MAX_PATH
) LPWSTR
,
1011 #define PathRelativePathTo WINELIB_NAME_AW(PathRelativePathTo)
1013 VOID WINAPI
PathRemoveArgsA(_Inout_ LPSTR
);
1014 VOID WINAPI
PathRemoveArgsW(_Inout_ LPWSTR
);
1015 #define PathRemoveArgs WINELIB_NAME_AW(PathRemoveArgs)
1017 LPSTR WINAPI
PathRemoveBackslashA(_Inout_ LPSTR
);
1018 LPWSTR WINAPI
PathRemoveBackslashW(_Inout_ LPWSTR
);
1019 #define PathRemoveBackslash WINELIB_NAME_AW(PathRemoveBackslash)
1021 VOID WINAPI
PathRemoveBlanksA(_Inout_ LPSTR
);
1022 VOID WINAPI
PathRemoveBlanksW(_Inout_ LPWSTR
);
1023 #define PathRemoveBlanks WINELIB_NAME_AW(PathRemoveBlanks)
1025 VOID WINAPI
PathRemoveExtensionA(_Inout_ LPSTR
);
1026 VOID WINAPI
PathRemoveExtensionW(_Inout_ LPWSTR
);
1027 #define PathRemoveExtension WINELIB_NAME_AW(PathRemoveExtension)
1029 BOOL WINAPI
PathRemoveFileSpecA(_Inout_ LPSTR
);
1030 BOOL WINAPI
PathRemoveFileSpecW(_Inout_ LPWSTR
);
1031 #define PathRemoveFileSpec WINELIB_NAME_AW(PathRemoveFileSpec)
1035 PathRenameExtensionA(
1036 _Inout_updates_(MAX_PATH
) LPSTR
,
1041 PathRenameExtensionW(
1042 _Inout_updates_(MAX_PATH
) LPWSTR
,
1045 #define PathRenameExtension WINELIB_NAME_AW(PathRenameExtension)
1049 PathSearchAndQualifyA(
1051 _Out_writes_(cchBuf
) LPSTR
,
1056 PathSearchAndQualifyW(
1058 _Out_writes_(cchBuf
) LPWSTR
,
1061 #define PathSearchAndQualify WINELIB_NAME_AW(PathSearchAndQualify)
1063 VOID WINAPI
PathSetDlgItemPathA(_In_ HWND
, int, LPCSTR
);
1064 VOID WINAPI
PathSetDlgItemPathW(_In_ HWND
, int, LPCWSTR
);
1065 #define PathSetDlgItemPath WINELIB_NAME_AW(PathSetDlgItemPath)
1067 LPSTR WINAPI
PathSkipRootA(_In_ LPCSTR
);
1068 LPWSTR WINAPI
PathSkipRootW(_In_ LPCWSTR
);
1069 #define PathSkipRoot WINELIB_NAME_AW(PathSkipRoot)
1071 VOID WINAPI
PathStripPathA(_Inout_ LPSTR
);
1072 VOID WINAPI
PathStripPathW(_Inout_ LPWSTR
);
1073 #define PathStripPath WINELIB_NAME_AW(PathStripPath)
1075 BOOL WINAPI
PathStripToRootA(_Inout_ LPSTR
);
1076 BOOL WINAPI
PathStripToRootW(_Inout_ LPWSTR
);
1077 #define PathStripToRoot WINELIB_NAME_AW(PathStripToRoot)
1079 VOID WINAPI
PathUnquoteSpacesA(_Inout_ LPSTR
);
1080 VOID WINAPI
PathUnquoteSpacesW(_Inout_ LPWSTR
);
1081 #define PathUnquoteSpaces WINELIB_NAME_AW(PathUnquoteSpaces)
1083 BOOL WINAPI
PathMakeSystemFolderA(_In_ LPCSTR
);
1084 BOOL WINAPI
PathMakeSystemFolderW(_In_ LPCWSTR
);
1085 #define PathMakeSystemFolder WINELIB_NAME_AW(PathMakeSystemFolder)
1087 BOOL WINAPI
PathUnmakeSystemFolderA(_In_ LPCSTR
);
1088 BOOL WINAPI
PathUnmakeSystemFolderW(_In_ LPCWSTR
);
1089 #define PathUnmakeSystemFolder WINELIB_NAME_AW(PathUnmakeSystemFolder)
1091 BOOL WINAPI
PathIsSystemFolderA(_In_opt_ LPCSTR
, _In_ DWORD
);
1092 BOOL WINAPI
PathIsSystemFolderW(_In_opt_ LPCWSTR
, _In_ DWORD
);
1093 #define PathIsSystemFolder WINELIB_NAME_AW(PathIsSystemFolder)
1095 BOOL WINAPI
PathIsNetworkPathA(_In_ LPCSTR
);
1096 BOOL WINAPI
PathIsNetworkPathW(_In_ LPCWSTR
);
1097 #define PathIsNetworkPath WINELIB_NAME_AW(PathIsNetworkPath)
1099 BOOL WINAPI
PathIsLFNFileSpecA(_In_ LPCSTR
);
1100 BOOL WINAPI
PathIsLFNFileSpecW(_In_ LPCWSTR
);
1101 #define PathIsLFNFileSpec WINELIB_NAME_AW(PathIsLFNFileSpec)
1105 PathFindSuffixArrayA(
1107 _In_reads_(iArraySize
) LPCSTR
*,
1112 PathFindSuffixArrayW(
1114 _In_reads_(iArraySize
) LPCWSTR
*,
1117 #define PathFindSuffixArray WINELIB_NAME_AW(PathFindSuffixArray)
1119 VOID WINAPI
PathUndecorateA(_Inout_ LPSTR
);
1120 VOID WINAPI
PathUndecorateW(_Inout_ LPWSTR
);
1121 #define PathUndecorate WINELIB_NAME_AW(PathUndecorate)
1125 PathUnExpandEnvStringsA(
1127 _Out_writes_(cchBuf
) LPSTR
,
1132 PathUnExpandEnvStringsW(
1134 _Out_writes_(cchBuf
) LPWSTR
,
1137 #define PathUnExpandEnvStrings WINELIB_NAME_AW(PathUnExpandEnvStrings)
1141 URL_SCHEME_INVALID
= -1,
1142 URL_SCHEME_UNKNOWN
= 0,
1157 URL_SCHEME_JAVASCRIPT
,
1158 URL_SCHEME_VBSCRIPT
,
1161 URL_SCHEME_MSSHELLROOTED
,
1162 URL_SCHEME_MSSHELLIDLIST
,
1164 URL_SCHEME_MSSHELLDEVICE
,
1165 URL_SCHEME_WILDCARD
,
1166 URL_SCHEME_SEARCH_MS
,
1168 URL_SCHEME_KNOWNFOLDER
,
1172 /* These are used by UrlGetPart routine */
1175 URL_PART_SCHEME
= 1,
1183 #define URL_PARTFLAG_KEEPSCHEME 0x00000001
1185 /* These are used by the UrlIs... routines */
1196 /* This is used by the UrlApplyScheme... routines */
1197 #define URL_APPLY_FORCEAPPLY 0x00000008
1198 #define URL_APPLY_GUESSFILE 0x00000004
1199 #define URL_APPLY_GUESSSCHEME 0x00000002
1200 #define URL_APPLY_DEFAULT 0x00000001
1202 /* The following are used by UrlEscape..., UrlUnEscape...,
1203 * UrlCanonicalize..., and UrlCombine... routines
1205 #define URL_WININET_COMPATIBILITY 0x80000000
1206 #define URL_PLUGGABLE_PROTOCOL 0x40000000
1207 #define URL_ESCAPE_UNSAFE 0x20000000
1208 #define URL_UNESCAPE 0x10000000
1210 #define URL_DONT_SIMPLIFY 0x08000000
1211 #define URL_NO_META URL_DONT_SIMPLIFY
1212 #define URL_ESCAPE_SPACES_ONLY 0x04000000
1213 #define URL_DONT_ESCAPE_EXTRA_INFO 0x02000000
1214 #define URL_DONT_UNESCAPE_EXTRA_INFO URL_DONT_ESCAPE_EXTRA_INFO
1215 #define URL_BROWSER_MODE URL_DONT_ESCAPE_EXTRA_INFO
1217 #define URL_INTERNAL_PATH 0x00800000 /* Will escape #'s in paths */
1218 #define URL_UNESCAPE_HIGH_ANSI_ONLY 0x00400000
1219 #define URL_CONVERT_IF_DOSPATH 0x00200000
1220 #define URL_UNESCAPE_INPLACE 0x00100000
1222 #define URL_FILE_USE_PATHURL 0x00010000
1224 #define URL_ESCAPE_SEGMENT_ONLY 0x00002000
1225 #define URL_ESCAPE_PERCENT 0x00001000
1231 _Out_writes_(*pcchOut
) LPSTR
,
1232 _Inout_ LPDWORD pcchOut
,
1239 _Out_writes_(*pcchOut
) LPWSTR
,
1240 _Inout_ LPDWORD pcchOut
,
1243 #define UrlApplyScheme WINELIB_NAME_AW(UrlApplyScheme)
1249 _Out_writes_to_(*pcchCanonicalized
, *pcchCanonicalized
) LPSTR
,
1250 _Inout_ LPDWORD pcchCanonicalized
,
1257 _Out_writes_to_(*pcchCanonicalized
, *pcchCanonicalized
) LPWSTR
,
1258 _Inout_ LPDWORD pcchCanonicalized
,
1261 #define UrlCanonicalize WINELIB_NAME_AW(UrlCanonicalize)
1268 _Out_writes_to_opt_(*pcchCombined
, *pcchCombined
) LPSTR
,
1269 _Inout_ LPDWORD pcchCombined
,
1277 _Out_writes_to_opt_(*pcchCombined
, *pcchCombined
) LPWSTR
,
1278 _Inout_ LPDWORD pcchCombined
,
1281 #define UrlCombine WINELIB_NAME_AW(UrlCombine)
1283 INT WINAPI
UrlCompareA(_In_ LPCSTR
, _In_ LPCSTR
, BOOL
);
1284 INT WINAPI
UrlCompareW(_In_ LPCWSTR
, _In_ LPCWSTR
, BOOL
);
1285 #define UrlCompare WINELIB_NAME_AW(UrlCompare)
1291 _Out_writes_to_(*pcchEscaped
, *pcchEscaped
) LPSTR
,
1292 _Inout_ LPDWORD pcchEscaped
,
1299 _Out_writes_to_(*pcchEscaped
, *pcchEscaped
) LPWSTR
,
1300 _Inout_ LPDWORD pcchEscaped
,
1303 #define UrlEscape WINELIB_NAME_AW(UrlEscape)
1305 #define UrlEscapeSpacesA(x,y,z) UrlCanonicalizeA(x, y, z, \
1306 URL_DONT_ESCAPE_EXTRA_INFO|URL_ESCAPE_SPACES_ONLY)
1307 #define UrlEscapeSpacesW(x,y,z) UrlCanonicalizeW(x, y, z, \
1308 URL_DONT_ESCAPE_EXTRA_INFO|URL_ESCAPE_SPACES_ONLY)
1309 #define UrlEscapeSpaces WINELIB_NAME_AW(UrlEscapeSpaces)
1311 LPCSTR WINAPI
UrlGetLocationA(_In_ LPCSTR
);
1312 LPCWSTR WINAPI
UrlGetLocationW(_In_ LPCWSTR
);
1313 #define UrlGetLocation WINELIB_NAME_AW(UrlGetLocation)
1319 _Out_writes_(*pcchOut
) LPSTR
,
1320 _Inout_ LPDWORD pcchOut
,
1328 _Out_writes_(*pcchOut
) LPWSTR
,
1329 _Inout_ LPDWORD pcchOut
,
1333 #define UrlGetPart WINELIB_NAME_AW(UrlGetPart)
1338 _In_reads_bytes_(cbData
) const unsigned char *,
1340 _Out_writes_bytes_(cbHash
) unsigned char *lpDest
,
1347 _Out_writes_bytes_(cbHash
) unsigned char *,
1354 _Out_writes_bytes_(cbHash
) unsigned char *,
1357 #define UrlHash WINELIB_NAME_AW(UrlHash)
1359 BOOL WINAPI
UrlIsA(_In_ LPCSTR
, URLIS
);
1360 BOOL WINAPI
UrlIsW(_In_ LPCWSTR
, URLIS
);
1361 #define UrlIs WINELIB_NAME_AW(UrlIs)
1363 BOOL WINAPI
UrlIsNoHistoryA(_In_ LPCSTR
);
1364 BOOL WINAPI
UrlIsNoHistoryW(_In_ LPCWSTR
);
1365 #define UrlIsNoHistory WINELIB_NAME_AW(UrlIsNoHistory)
1367 BOOL WINAPI
UrlIsOpaqueA(_In_ LPCSTR
);
1368 BOOL WINAPI
UrlIsOpaqueW(_In_ LPCWSTR
);
1369 #define UrlIsOpaque WINELIB_NAME_AW(UrlIsOpaque)
1371 #define UrlIsFileUrlA(x) UrlIsA(x, URLIS_FILEURL)
1372 #define UrlIsFileUrlW(x) UrlIsW(x, URLIS_FILEURL)
1373 #define UrlIsFileUrl WINELIB_NAME_AW(UrlIsFileUrl)
1379 _Out_writes_to_opt_(*pcchUnescaped
, *pcchUnescaped
) LPSTR
,
1380 _Inout_opt_ LPDWORD pcchUnescaped
,
1387 _Out_writes_to_opt_(*pcchUnescaped
, *pcchUnescaped
) LPWSTR
,
1388 _Inout_opt_ LPDWORD pcchUnescaped
,
1391 #define UrlUnescape WINELIB_NAME_AW(UrlUnescape)
1393 #define UrlUnescapeInPlaceA(x,y) UrlUnescapeA(x, NULL, NULL, \
1394 y | URL_UNESCAPE_INPLACE)
1395 #define UrlUnescapeInPlaceW(x,y) UrlUnescapeW(x, NULL, NULL, \
1396 y | URL_UNESCAPE_INPLACE)
1397 #define UrlUnescapeInPlace WINELIB_NAME_AW(UrlUnescapeInPlace)
1403 _Out_writes_to_(*pcchUrl
, *pcchUrl
) LPSTR
,
1404 _Inout_ LPDWORD pcchUrl
,
1411 _Out_writes_to_(*pcchUrl
, *pcchUrl
) LPWSTR
,
1412 _Inout_ LPDWORD pcchUrl
,
1415 #define UrlCreateFromPath WINELIB_NAME_AW(UrlCreateFromPath)
1417 typedef struct tagPARSEDURLA
{
1424 } PARSEDURLA
, *PPARSEDURLA
;
1426 typedef struct tagPARSEDURLW
{
1428 LPCWSTR pszProtocol
;
1433 } PARSEDURLW
, *PPARSEDURLW
;
1435 HRESULT WINAPI
ParseURLA(_In_ LPCSTR pszUrl
, _Inout_ PARSEDURLA
*ppu
);
1436 HRESULT WINAPI
ParseURLW(_In_ LPCWSTR pszUrl
, _Inout_ PARSEDURLW
*ppu
);
1437 #define ParseURL WINELIB_NAME_AW(ParseUrl)
1439 #endif /* NO_SHLWAPI_PATH */
1442 /* String functions */
1443 #ifndef NO_SHLWAPI_STRFCNS
1445 /* StrToIntEx flags */
1446 #define STIF_DEFAULT 0x0L
1447 #define STIF_SUPPORT_HEX 0x1L
1449 BOOL WINAPI
ChrCmpIA (WORD
,WORD
);
1450 BOOL WINAPI
ChrCmpIW (WCHAR
,WCHAR
);
1451 #define ChrCmpI WINELIB_NAME_AW(ChrCmpI)
1453 INT WINAPI
StrCSpnA(_In_ LPCSTR
, _In_ LPCSTR
);
1454 INT WINAPI
StrCSpnW(_In_ LPCWSTR
, _In_ LPCWSTR
);
1455 #define StrCSpn WINELIB_NAME_AW(StrCSpn)
1457 INT WINAPI
StrCSpnIA(_In_ LPCSTR
, _In_ LPCSTR
);
1458 INT WINAPI
StrCSpnIW(_In_ LPCWSTR
, _In_ LPCWSTR
);
1459 #define StrCSpnI WINELIB_NAME_AW(StrCSpnI)
1461 #define StrCatA lstrcatA
1462 LPWSTR WINAPI
StrCatW(_Inout_ LPWSTR
, _In_ LPCWSTR
);
1463 #define StrCat WINELIB_NAME_AW(StrCat)
1468 _Inout_updates_(cchDestBuffSize
) LPSTR
,
1470 INT cchDestBuffSize
);
1475 _Inout_updates_(cchDestBuffSize
) LPWSTR
,
1477 INT cchDestBuffSize
);
1479 #define StrCatBuff WINELIB_NAME_AW(StrCatBuff)
1484 _Out_writes_(cchDst
) LPWSTR
,
1489 LPSTR WINAPI
StrChrA(_In_ LPCSTR
, WORD
);
1490 LPWSTR WINAPI
StrChrW(_In_ LPCWSTR
, WCHAR
);
1491 #define StrChr WINELIB_NAME_AW(StrChr)
1493 LPSTR WINAPI
StrChrIA(_In_ LPCSTR
, WORD
);
1494 LPWSTR WINAPI
StrChrIW(_In_ LPCWSTR
, WCHAR
);
1495 #define StrChrI WINELIB_NAME_AW(StrChrI)
1497 #define StrCmpA lstrcmpA
1498 int WINAPI
StrCmpW(_In_ LPCWSTR
, _In_ LPCWSTR
);
1499 #define StrCmp WINELIB_NAME_AW(StrCmp)
1501 #define StrCmpIA lstrcmpiA
1502 int WINAPI
StrCmpIW(_In_ LPCWSTR
, _In_ LPCWSTR
);
1503 #define StrCmpI WINELIB_NAME_AW(StrCmpI)
1505 #define StrCpyA lstrcpyA
1506 LPWSTR WINAPI
StrCpyW(_Out_ LPWSTR
, _In_ LPCWSTR
);
1507 #define StrCpy WINELIB_NAME_AW(StrCpy)
1509 #define StrCpyNA lstrcpynA
1510 LPWSTR WINAPI
StrCpyNW(_Out_writes_(cchMax
) LPWSTR
, _In_ LPCWSTR
, int cchMax
);
1511 #define StrCpyN WINELIB_NAME_AW(StrCpyN)
1512 #define StrNCpy WINELIB_NAME_AW(StrCpyN)
1514 INT WINAPI
StrCmpLogicalW(_In_ LPCWSTR
, _In_ LPCWSTR
);
1516 INT WINAPI
StrCmpNA(_In_ LPCSTR
, _In_ LPCSTR
, INT
);
1517 INT WINAPI
StrCmpNW(_In_ LPCWSTR
, _In_ LPCWSTR
, INT
);
1518 #define StrCmpN WINELIB_NAME_AW(StrCmpN)
1519 #define StrNCmp WINELIB_NAME_AW(StrCmpN)
1521 INT WINAPI
StrCmpNIA(_In_ LPCSTR
, _In_ LPCSTR
, INT
);
1522 INT WINAPI
StrCmpNIW(_In_ LPCWSTR
, _In_ LPCWSTR
, INT
);
1523 #define StrCmpNI WINELIB_NAME_AW(StrCmpNI)
1524 #define StrNCmpI WINELIB_NAME_AW(StrCmpNI)
1526 LPSTR WINAPI
StrDupA(_In_ LPCSTR
);
1527 LPWSTR WINAPI
StrDupW(_In_ LPCWSTR
);
1528 #define StrDup WINELIB_NAME_AW(StrDup)
1530 HRESULT WINAPI
SHStrDupA(_In_ LPCSTR
, _Outptr_ WCHAR
**);
1531 HRESULT WINAPI
SHStrDupW(_In_ LPCWSTR
, _Outptr_ WCHAR
**);
1532 #define SHStrDup WINELIB_NAME_AW(SHStrDup)
1538 _Out_writes_(cchBuf
) LPSTR
,
1541 /* A/W Pairing is broken for this function */
1545 StrFormatByteSize64A(
1547 _Out_writes_(cchBuf
) LPSTR
,
1554 _Out_writes_(cchBuf
) LPWSTR
,
1557 #ifndef WINE_NO_UNICODE_MACROS
1559 #define StrFormatByteSize StrFormatByteSizeW
1561 #define StrFormatByteSize StrFormatByteSize64A
1569 _Out_writes_(cchBuf
) LPSTR
,
1576 _Out_writes_(cchBuf
) LPWSTR
,
1579 #define StrFormatKBSize WINELIB_NAME_AW(StrFormatKBSize)
1583 StrFromTimeIntervalA(
1584 _Out_writes_(cchMax
) LPSTR
,
1591 StrFromTimeIntervalW(
1592 _Out_writes_(cchMax
) LPWSTR
,
1597 #define StrFromTimeInterval WINELIB_NAME_AW(StrFromTimeInterval)
1599 BOOL WINAPI
StrIsIntlEqualA(BOOL
, _In_ LPCSTR
, _In_ LPCSTR
, int);
1600 BOOL WINAPI
StrIsIntlEqualW(BOOL
, _In_ LPCWSTR
, _In_ LPCWSTR
, int);
1601 #define StrIsIntlEqual WINELIB_NAME_AW(StrIsIntlEqual)
1603 #define StrIntlEqNA(a,b,c) StrIsIntlEqualA(TRUE,a,b,c)
1604 #define StrIntlEqNW(a,b,c) StrIsIntlEqualW(TRUE,a,b,c)
1606 #define StrIntlEqNIA(a,b,c) StrIsIntlEqualA(FALSE,a,b,c)
1607 #define StrIntlEqNIW(a,b,c) StrIsIntlEqualW(FALSE,a,b,c)
1609 LPSTR WINAPI
StrNCatA(_Inout_updates_(cchMax
) LPSTR
, LPCSTR
, int cchMax
);
1610 LPWSTR WINAPI
StrNCatW(_Inout_updates_(cchMax
) LPWSTR
, LPCWSTR
, int cchMax
);
1611 #define StrNCat WINELIB_NAME_AW(StrNCat)
1612 #define StrCatN WINELIB_NAME_AW(StrNCat)
1614 LPSTR WINAPI
StrPBrkA(_In_ LPCSTR
, _In_ LPCSTR
);
1615 LPWSTR WINAPI
StrPBrkW(_In_ LPCWSTR
, _In_ LPCWSTR
);
1616 #define StrPBrk WINELIB_NAME_AW(StrPBrk)
1618 LPSTR WINAPI
StrRChrA(_In_ LPCSTR
, _In_opt_ LPCSTR
, WORD
);
1619 LPWSTR WINAPI
StrRChrW(_In_ LPCWSTR
, _In_opt_ LPCWSTR
, WCHAR
);
1620 #define StrRChr WINELIB_NAME_AW(StrRChr)
1622 LPSTR WINAPI
StrRChrIA(_In_ LPCSTR
, _In_opt_ LPCSTR
, WORD
);
1623 LPWSTR WINAPI
StrRChrIW(_In_ LPCWSTR
, _In_opt_ LPCWSTR
, WCHAR
);
1624 #define StrRChrI WINELIB_NAME_AW(StrRChrI)
1626 LPSTR WINAPI
StrRStrIA(_In_ LPCSTR
, _In_opt_ LPCSTR
, _In_ LPCSTR
);
1627 LPWSTR WINAPI
StrRStrIW(_In_ LPCWSTR
, _In_opt_ LPCWSTR
, _In_ LPCWSTR
);
1628 #define StrRStrI WINELIB_NAME_AW(StrRStrI)
1630 int WINAPI
StrSpnA(_In_ LPCSTR
, _In_ LPCSTR
);
1631 int WINAPI
StrSpnW(_In_ LPCWSTR
, _In_ LPCWSTR
);
1632 #define StrSpn WINELIB_NAME_AW(StrSpn)
1634 LPSTR WINAPI
StrStrA(_In_ LPCSTR
, _In_ LPCSTR
);
1635 LPWSTR WINAPI
StrStrW(_In_ LPCWSTR
, _In_ LPCWSTR
);
1636 #define StrStr WINELIB_NAME_AW(StrStr)
1638 LPSTR WINAPI
StrStrIA(_In_ LPCSTR
, _In_ LPCSTR
);
1639 LPWSTR WINAPI
StrStrIW(_In_ LPCWSTR
, _In_ LPCWSTR
);
1640 #define StrStrI WINELIB_NAME_AW(StrStrI)
1642 LPWSTR WINAPI
StrStrNW(_In_ LPCWSTR
, _In_ LPCWSTR
, UINT
);
1643 LPWSTR WINAPI
StrStrNIW(_In_ LPCWSTR
, _In_ LPCWSTR
, UINT
);
1645 int WINAPI
StrToIntA(_In_ LPCSTR
);
1646 int WINAPI
StrToIntW(_In_ LPCWSTR
);
1647 #define StrToInt WINELIB_NAME_AW(StrToInt)
1648 #define StrToLong WINELIB_NAME_AW(StrToInt)
1650 BOOL WINAPI
StrToIntExA(_In_ LPCSTR
, DWORD
, _Out_
int*);
1651 BOOL WINAPI
StrToIntExW(_In_ LPCWSTR
, DWORD
, _Out_
int*);
1652 #define StrToIntEx WINELIB_NAME_AW(StrToIntEx)
1654 BOOL WINAPI
StrToInt64ExA(_In_ LPCSTR
, DWORD
, _Out_ LONGLONG
*);
1655 BOOL WINAPI
StrToInt64ExW(_In_ LPCWSTR
, DWORD
, _Out_ LONGLONG
*);
1656 #define StrToIntEx64 WINELIB_NAME_AW(StrToIntEx64)
1658 BOOL WINAPI
StrTrimA(_Inout_ LPSTR
, _In_ LPCSTR
);
1659 BOOL WINAPI
StrTrimW(_Inout_ LPWSTR
, _In_ LPCWSTR
);
1660 #define StrTrim WINELIB_NAME_AW(StrTrim)
1665 _Out_writes_(cchDest
) LPSTR
,
1667 _In_ _Printf_format_string_ LPCSTR
,
1673 _Out_writes_(cchDest
) LPWSTR
,
1675 _In_ _Printf_format_string_ LPCWSTR
,
1678 #define wvnsprintf WINELIB_NAME_AW(wvnsprintf)
1683 _Out_writes_(cchDest
) LPSTR
,
1685 _In_ _Printf_format_string_ LPCSTR
,
1691 _Out_writes_(cchDest
) LPWSTR
,
1693 _In_ _Printf_format_string_ LPCWSTR
,
1696 #define wnsprintf WINELIB_NAME_AW(wnsprintf)
1700 SHLoadIndirectString(
1702 _Out_writes_(cchOutBuf
) LPWSTR
,
1703 _In_ UINT cchOutBuf
,
1710 _In_reads_(nChar
) LPCSTR
,
1711 _In_reads_(nChar
) LPCSTR
,
1718 _In_reads_(nChar
) LPCWSTR
,
1719 _In_reads_(nChar
) LPCWSTR
,
1722 #define IntlStrEqWorker WINELIB_NAME_AW(IntlStrEqWorker)
1724 #define IntlStrEqNA(s1,s2,n) IntlStrEqWorkerA(TRUE,s1,s2,n)
1725 #define IntlStrEqNW(s1,s2,n) IntlStrEqWorkerW(TRUE,s1,s2,n)
1726 #define IntlStrEqN WINELIB_NAME_AW(IntlStrEqN)
1728 #define IntlStrEqNIA(s1,s2,n) IntlStrEqWorkerA(FALSE,s1,s2,n)
1729 #define IntlStrEqNIW(s1,s2,n) IntlStrEqWorkerW(FALSE,s1,s2,n)
1730 #define IntlStrEqNI WINELIB_NAME_AW(IntlStrEqNI)
1736 _In_opt_ LPCITEMIDLIST
,
1743 _In_opt_ LPCITEMIDLIST
,
1746 #define StrRetToStr WINELIB_NAME_AW(StrRetToStr)
1752 _In_opt_ LPCITEMIDLIST
,
1753 _Out_writes_(cchBuf
) LPSTR
,
1760 _In_opt_ LPCITEMIDLIST
,
1761 _Out_writes_(cchBuf
) LPWSTR
,
1764 #define StrRetToBuf WINELIB_NAME_AW(StrRetToBuf)
1770 _In_opt_ LPCITEMIDLIST
,
1773 BOOL WINAPI
IsCharSpaceA(CHAR
);
1774 BOOL WINAPI
IsCharSpaceW(WCHAR
);
1775 #define IsCharSpace WINELIB_NAME_AW(IsCharSpace)
1777 #endif /* NO_SHLWAPI_STRFCNS */
1781 #ifndef NO_SHLWAPI_GDI
1783 HPALETTE WINAPI
SHCreateShellPalette(_In_opt_ HDC
);
1785 COLORREF WINAPI
ColorHLSToRGB(WORD
,WORD
,WORD
);
1787 COLORREF WINAPI
ColorAdjustLuma(COLORREF
,int,BOOL
);
1789 VOID WINAPI
ColorRGBToHLS(COLORREF
, _Out_ LPWORD
, _Out_ LPWORD
, _Out_ LPWORD
);
1791 #endif /* NO_SHLWAPI_GDI */
1793 /* Security functions */
1794 BOOL WINAPI
IsInternetESCEnabled(void);
1796 /* Stream functions */
1797 #ifndef NO_SHLWAPI_STREAM
1815 #define SHOpenRegStream WINELIB_NAME_AW(SHOpenRegStream2) /* Uses version 2 */
1833 #define SHOpenRegStream2 WINELIB_NAME_AW(SHOpenRegStream2)
1837 SHCreateStreamOnFileA(
1840 _Outptr_
struct IStream
**);
1844 SHCreateStreamOnFileW(
1847 _Outptr_
struct IStream
**);
1849 #define SHCreateStreamOnFile WINELIB_NAME_AW(SHCreateStreamOnFile)
1853 SHCreateStreamOnFileEx(
1858 _In_opt_
struct IStream
*,
1859 _Outptr_
struct IStream
**);
1861 HRESULT WINAPI
SHCreateStreamWrapper(LPBYTE
,DWORD
,DWORD
,struct IStream
**);
1863 #endif /* NO_SHLWAPI_STREAM */
1865 /* SHAutoComplete flags */
1866 #define SHACF_DEFAULT 0x00000000
1867 #define SHACF_FILESYSTEM 0x00000001
1868 #define SHACF_URLHISTORY 0x00000002
1869 #define SHACF_URLMRU 0x00000004
1870 #define SHACF_URLALL (SHACF_URLHISTORY|SHACF_URLMRU)
1871 #define SHACF_USETAB 0x00000008
1872 #define SHACF_FILESYS_ONLY 0x00000010
1873 #define SHACF_FILESYS_DIRS 0x00000020
1874 #define SHACF_AUTOSUGGEST_FORCE_ON 0x10000000
1875 #define SHACF_AUTOSUGGEST_FORCE_OFF 0x20000000
1876 #define SHACF_AUTOAPPEND_FORCE_ON 0x40000000
1877 #define SHACF_AUTOAPPEND_FORCE_OFF 0x80000000
1879 HRESULT WINAPI
SHAutoComplete(_In_ HWND
, DWORD
);
1882 HRESULT WINAPI
SHCreateThreadRef(_Inout_ LONG
*, _Outptr_ IUnknown
**);
1883 HRESULT WINAPI
SHGetThreadRef(_Outptr_ IUnknown
**);
1884 HRESULT WINAPI
SHSetThreadRef(_In_opt_ IUnknown
*);
1885 HRESULT WINAPI
SHReleaseThreadRef(void);
1887 /* SHCreateThread flags */
1888 #define CTF_INSIST 0x01 /* Always call */
1889 #define CTF_THREAD_REF 0x02 /* Hold thread ref */
1890 #define CTF_PROCESS_REF 0x04 /* Hold process ref */
1891 #define CTF_COINIT 0x08 /* Startup COM first */
1892 #define CTF_FREELIBANDEXIT 0x10 /* Hold DLL ref */
1893 #define CTF_REF_COUNTED 0x20 /* Thread is ref counted */
1894 #define CTF_WAIT_ALLOWCOM 0x40 /* Allow marshalling */
1899 _In_ LPTHREAD_START_ROUTINE
,
1902 _In_opt_ LPTHREAD_START_ROUTINE
);
1904 BOOL WINAPI
SHSkipJunction(_In_opt_
struct IBindCtx
*, _In_
const CLSID
*);
1906 /* Version Information */
1908 typedef struct _DllVersionInfo
{
1910 DWORD dwMajorVersion
;
1911 DWORD dwMinorVersion
;
1912 DWORD dwBuildNumber
;
1916 #define DLLVER_PLATFORM_WINDOWS 0x01 /* Win9x */
1917 #define DLLVER_PLATFORM_NT 0x02 /* WinNT */
1919 typedef HRESULT (CALLBACK
*DLLGETVERSIONPROC
)(DLLVERSIONINFO
*);
1922 /* shouldn't be here, but is nice for type checking */
1923 HRESULT WINAPI
DllGetVersion(DLLVERSIONINFO
*) DECLSPEC_HIDDEN
;
1926 typedef struct _DLLVERSIONINFO2
{
1927 DLLVERSIONINFO info1
;
1928 DWORD dwFlags
; /* Reserved */
1929 ULONGLONG
DECLSPEC_ALIGN(8) ullVersion
; /* 16 bits each for Major, Minor, Build, QFE */
1932 #define DLLVER_MAJOR_MASK 0xFFFF000000000000
1933 #define DLLVER_MINOR_MASK 0x0000FFFF00000000
1934 #define DLLVER_BUILD_MASK 0x00000000FFFF0000
1935 #define DLLVER_QFE_MASK 0x000000000000FFFF
1937 #define MAKEDLLVERULL(mjr, mnr, bld, qfe) (((ULONGLONG)(mjr)<< 48)| \
1938 ((ULONGLONG)(mnr)<< 32) | ((ULONGLONG)(bld)<< 16) | (ULONGLONG)(qfe))
1940 HRESULT WINAPI
DllInstall(BOOL
, _In_opt_ LPCWSTR
) DECLSPEC_HIDDEN
;
1943 #if (_WIN32_IE >= 0x0600)
1944 #define SHGVSPB_PERUSER 0x00000001
1945 #define SHGVSPB_ALLUSERS 0x00000002
1946 #define SHGVSPB_PERFOLDER 0x00000004
1947 #define SHGVSPB_ALLFOLDERS 0x00000008
1948 #define SHGVSPB_INHERIT 0x00000010
1949 #define SHGVSPB_ROAM 0x00000020
1950 #define SHGVSPB_NOAUTODEFAULTS 0x80000000
1952 #define SHGVSPB_FOLDER (SHGVSPB_PERUSER | SHGVSPB_PERFOLDER)
1953 #define SHGVSPB_FOLDERNODEFAULTS (SHGVSPB_PERUSER | SHGVSPB_PERFOLDER | SHGVSPB_NOAUTODEFAULTS)
1954 #define SHGVSPB_USERDEFAULTS (SHGVSPB_PERUSER | SHGVSPB_ALLFOLDERS)
1955 #define SHGVSPB_GLOBALDEAFAULTS (SHGVSPB_ALLUSERS | SHGVSPB_ALLFOLDERS)
1959 SHGetViewStatePropertyBag(
1960 _In_opt_ LPCITEMIDLIST pidl
,
1961 _In_opt_ LPWSTR bag_name
,
1964 _Outptr_
void **ppv
);
1966 #endif /* (_WIN32_IE >= 0x0600) */
1969 /* IsOS definitions */
1971 #define OS_WIN32SORGREATER 0x00
1973 #define OS_WIN95ORGREATER 0x02
1974 #define OS_NT4ORGREATER 0x03
1975 #define OS_WIN2000ORGREATER_ALT 0x04
1976 #define OS_WIN98ORGREATER 0x05
1977 #define OS_WIN98_GOLD 0x06
1978 #define OS_WIN2000ORGREATER 0x07
1979 #define OS_WIN2000PRO 0x08
1980 #define OS_WIN2000SERVER 0x09
1981 #define OS_WIN2000ADVSERVER 0x0A
1982 #define OS_WIN2000DATACENTER 0x0B
1983 #define OS_WIN2000TERMINAL 0x0C
1984 #define OS_EMBEDDED 0x0D
1985 #define OS_TERMINALCLIENT 0x0E
1986 #define OS_TERMINALREMOTEADMIN 0x0F
1987 #define OS_WIN95_GOLD 0x10
1988 #define OS_MEORGREATER 0x11
1989 #define OS_XPORGREATER 0x12
1990 #define OS_HOME 0x13
1991 #define OS_PROFESSIONAL 0x14
1992 #define OS_DATACENTER 0x15
1993 #define OS_ADVSERVER 0x16
1994 #define OS_SERVER 0x17
1995 #define OS_TERMINALSERVER 0x18
1996 #define OS_PERSONALTERMINALSERVER 0x19
1997 #define OS_FASTUSERSWITCHING 0x1A
1998 #define OS_WELCOMELOGONUI 0x1B
1999 #define OS_DOMAINMEMBER 0x1C
2000 #define OS_ANYSERVER 0x1D
2001 #define OS_WOW6432 0x1E
2002 #define OS_WEBSERVER 0x1F
2003 #define OS_SMALLBUSINESSSERVER 0x20
2004 #define OS_TABLETPC 0x21
2005 #define OS_SERVERADMINUI 0x22
2006 #define OS_MEDIACENTER 0x23
2007 #define OS_APPLIANCE 0x24
2009 BOOL WINAPI
IsOS(DWORD
);
2011 /* SHSetTimerQueueTimer definitions */
2012 #define TPS_EXECUTEIO 0x00000001
2013 #define TPS_LONGEXECTIME 0x00000008
2015 /* SHFormatDateTimeA/SHFormatDateTimeW flags */
2016 #define FDTF_SHORTTIME 0x00000001
2017 #define FDTF_SHORTDATE 0x00000002
2018 #define FDTF_DEFAULT (FDTF_SHORTDATE | FDTF_SHORTTIME)
2019 #define FDTF_LONGDATE 0x00000004
2020 #define FDTF_LONGTIME 0x00000008
2021 #define FDTF_RELATIVE 0x00000010
2022 #define FDTF_LTRDATE 0x00000100
2023 #define FDTF_RTLDATE 0x00000200
2024 #define FDTF_NOAUTOREADINGORDER 0x00000400
2037 _In_
const QITAB
*pqit
,
2039 _Outptr_
void **ppv
);
2041 #include <poppack.h>
2045 #endif /* defined(__cplusplus) */
2047 #endif /* __WINE_SHLWAPI_H */