mirror of
https://github.com/QB64Official/qb64.git
synced 2024-08-22 03:15:07 +00:00
943 lines
42 KiB
C
943 lines
42 KiB
C
/**
|
|
* This file has no copyright assigned and is placed in the Public Domain.
|
|
* This file is part of the mingw-w64 runtime package.
|
|
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
|
*/
|
|
#ifndef _INC_SHLWAPI
|
|
#define _INC_SHLWAPI
|
|
|
|
#include <_mingw_unicode.h>
|
|
|
|
#ifndef NOSHLWAPI
|
|
|
|
#include <objbase.h>
|
|
#include <shtypes.h>
|
|
|
|
#ifndef _WINRESRC_
|
|
#ifndef _WIN32_IE
|
|
#define _WIN32_IE 0x0601
|
|
#endif
|
|
#endif
|
|
|
|
#ifndef WINSHLWAPI
|
|
#if !defined(_SHLWAPI_)
|
|
#define LWSTDAPI EXTERN_C DECLSPEC_IMPORT HRESULT WINAPI
|
|
#define LWSTDAPI_(type) EXTERN_C DECLSPEC_IMPORT type WINAPI
|
|
#define LWSTDAPIV EXTERN_C DECLSPEC_IMPORT HRESULT STDAPIVCALLTYPE
|
|
#define LWSTDAPIV_(type) EXTERN_C DECLSPEC_IMPORT type STDAPIVCALLTYPE
|
|
#else
|
|
#define LWSTDAPI STDAPI
|
|
#define LWSTDAPI_(type) STDAPI_(type)
|
|
#define LWSTDAPIV STDAPIV
|
|
#define LWSTDAPIV_(type) STDAPIV_(type)
|
|
#endif
|
|
#endif
|
|
|
|
#include <pshpack8.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifndef NO_SHLWAPI_STRFCNS
|
|
LWSTDAPI_(LPSTR) StrChrA(LPCSTR lpStart,WORD wMatch);
|
|
LWSTDAPI_(LPWSTR) StrChrW(LPCWSTR lpStart,WCHAR wMatch);
|
|
LWSTDAPI_(LPSTR) StrChrIA(LPCSTR lpStart,WORD wMatch);
|
|
LWSTDAPI_(LPWSTR) StrChrIW(LPCWSTR lpStart,WCHAR wMatch);
|
|
LWSTDAPI_(int) StrCmpNA(LPCSTR lpStr1,LPCSTR lpStr2,int nChar);
|
|
LWSTDAPI_(int) StrCmpNW(LPCWSTR lpStr1,LPCWSTR lpStr2,int nChar);
|
|
LWSTDAPI_(int) StrCmpNIA(LPCSTR lpStr1,LPCSTR lpStr2,int nChar);
|
|
LWSTDAPI_(int) StrCmpNIW(LPCWSTR lpStr1,LPCWSTR lpStr2,int nChar);
|
|
LWSTDAPI_(int) StrCSpnA(LPCSTR lpStr,LPCSTR lpSet);
|
|
LWSTDAPI_(int) StrCSpnW(LPCWSTR lpStr,LPCWSTR lpSet);
|
|
LWSTDAPI_(int) StrCSpnIA(LPCSTR lpStr,LPCSTR lpSet);
|
|
LWSTDAPI_(int) StrCSpnIW(LPCWSTR lpStr,LPCWSTR lpSet);
|
|
LWSTDAPI_(LPSTR) StrDupA(LPCSTR lpSrch);
|
|
LWSTDAPI_(LPWSTR) StrDupW(LPCWSTR lpSrch);
|
|
LWSTDAPI_(LPSTR) StrFormatByteSizeA(DWORD dw,LPSTR szBuf,UINT uiBufSize);
|
|
LWSTDAPI_(LPSTR) StrFormatByteSize64A(LONGLONG qdw,LPSTR szBuf,UINT uiBufSize);
|
|
LWSTDAPI_(LPWSTR) StrFormatByteSizeW(LONGLONG qdw,LPWSTR szBuf,UINT uiBufSize);
|
|
LWSTDAPI_(LPWSTR) StrFormatKBSizeW(LONGLONG qdw,LPWSTR szBuf,UINT uiBufSize);
|
|
LWSTDAPI_(LPSTR) StrFormatKBSizeA(LONGLONG qdw,LPSTR szBuf,UINT uiBufSize);
|
|
LWSTDAPI_(int) StrFromTimeIntervalA(LPSTR pszOut,UINT cchMax,DWORD dwTimeMS,int digits);
|
|
LWSTDAPI_(int) StrFromTimeIntervalW(LPWSTR pszOut,UINT cchMax,DWORD dwTimeMS,int digits);
|
|
LWSTDAPI_(WINBOOL) StrIsIntlEqualA(WINBOOL fCaseSens,LPCSTR lpString1,LPCSTR lpString2,int nChar);
|
|
LWSTDAPI_(WINBOOL) StrIsIntlEqualW(WINBOOL fCaseSens,LPCWSTR lpString1,LPCWSTR lpString2,int nChar);
|
|
LWSTDAPI_(LPSTR) StrNCatA(LPSTR psz1,LPCSTR psz2,int cchMax);
|
|
LWSTDAPI_(LPWSTR) StrNCatW(LPWSTR psz1,LPCWSTR psz2,int cchMax);
|
|
LWSTDAPI_(LPSTR) StrPBrkA(LPCSTR psz,LPCSTR pszSet);
|
|
LWSTDAPI_(LPWSTR) StrPBrkW(LPCWSTR psz,LPCWSTR pszSet);
|
|
LWSTDAPI_(LPSTR) StrRChrA(LPCSTR lpStart,LPCSTR lpEnd,WORD wMatch);
|
|
LWSTDAPI_(LPWSTR) StrRChrW(LPCWSTR lpStart,LPCWSTR lpEnd,WCHAR wMatch);
|
|
LWSTDAPI_(LPSTR) StrRChrIA(LPCSTR lpStart,LPCSTR lpEnd,WORD wMatch);
|
|
LWSTDAPI_(LPWSTR) StrRChrIW(LPCWSTR lpStart,LPCWSTR lpEnd,WCHAR wMatch);
|
|
LWSTDAPI_(LPSTR) StrRStrIA(LPCSTR lpSource,LPCSTR lpLast,LPCSTR lpSrch);
|
|
LWSTDAPI_(LPWSTR) StrRStrIW(LPCWSTR lpSource,LPCWSTR lpLast,LPCWSTR lpSrch);
|
|
LWSTDAPI_(int) StrSpnA(LPCSTR psz,LPCSTR pszSet);
|
|
LWSTDAPI_(int) StrSpnW(LPCWSTR psz,LPCWSTR pszSet);
|
|
LWSTDAPI_(LPSTR) StrStrA(LPCSTR lpFirst,LPCSTR lpSrch);
|
|
LWSTDAPI_(LPWSTR) StrStrW(LPCWSTR lpFirst,LPCWSTR lpSrch);
|
|
LWSTDAPI_(LPSTR) StrStrIA(LPCSTR lpFirst,LPCSTR lpSrch);
|
|
LWSTDAPI_(LPWSTR) StrStrIW(LPCWSTR lpFirst,LPCWSTR lpSrch);
|
|
LWSTDAPI_(int) StrToIntA(LPCSTR lpSrc);
|
|
LWSTDAPI_(int) StrToIntW(LPCWSTR lpSrc);
|
|
LWSTDAPI_(WINBOOL) StrToIntExA(LPCSTR pszString,DWORD dwFlags,int *piRet);
|
|
LWSTDAPI_(WINBOOL) StrToIntExW(LPCWSTR pszString,DWORD dwFlags,int *piRet);
|
|
#if (_WIN32_IE >= 0x0600)
|
|
LWSTDAPI_(WINBOOL) StrToInt64ExA(LPCSTR pszString,DWORD dwFlags,LONGLONG *pllRet);
|
|
LWSTDAPI_(WINBOOL) StrToInt64ExW(LPCWSTR pszString,DWORD dwFlags,LONGLONG *pllRet);
|
|
#endif
|
|
LWSTDAPI_(WINBOOL) StrTrimA(LPSTR psz,LPCSTR pszTrimChars);
|
|
LWSTDAPI_(WINBOOL) StrTrimW(LPWSTR psz,LPCWSTR pszTrimChars);
|
|
LWSTDAPI_(LPWSTR) StrCatW(LPWSTR psz1,LPCWSTR psz2);
|
|
LWSTDAPI_(int) StrCmpW(LPCWSTR psz1,LPCWSTR psz2);
|
|
LWSTDAPI_(int) StrCmpIW(LPCWSTR psz1,LPCWSTR psz2);
|
|
LWSTDAPI_(LPWSTR) StrCpyW(LPWSTR psz1,LPCWSTR psz2);
|
|
LWSTDAPI_(LPWSTR) StrCpyNW(LPWSTR psz1,LPCWSTR psz2,int cchMax);
|
|
LWSTDAPI_(LPWSTR) StrCatBuffW(LPWSTR pszDest,LPCWSTR pszSrc,int cchDestBuffSize);
|
|
LWSTDAPI_(LPSTR) StrCatBuffA(LPSTR pszDest,LPCSTR pszSrc,int cchDestBuffSize);
|
|
LWSTDAPI_(WINBOOL) ChrCmpIA(WORD w1,WORD w2);
|
|
LWSTDAPI_(WINBOOL) ChrCmpIW(WCHAR w1,WCHAR w2);
|
|
LWSTDAPI_(int) wvnsprintfA(LPSTR lpOut,int cchLimitIn,LPCSTR lpFmt,va_list arglist);
|
|
LWSTDAPI_(int) wvnsprintfW(LPWSTR lpOut,int cchLimitIn,LPCWSTR lpFmt,va_list arglist);
|
|
LWSTDAPIV_(int) wnsprintfA(LPSTR lpOut,int cchLimitIn,LPCSTR lpFmt,...);
|
|
LWSTDAPIV_(int) wnsprintfW(LPWSTR lpOut,int cchLimitIn,LPCWSTR lpFmt,...);
|
|
|
|
#define StrIntlEqNA(s1,s2,nChar) StrIsIntlEqualA(TRUE,s1,s2,nChar)
|
|
#define StrIntlEqNW(s1,s2,nChar) StrIsIntlEqualW(TRUE,s1,s2,nChar)
|
|
#define StrIntlEqNIA(s1,s2,nChar) StrIsIntlEqualA(FALSE,s1,s2,nChar)
|
|
#define StrIntlEqNIW(s1,s2,nChar) StrIsIntlEqualW(FALSE,s1,s2,nChar)
|
|
|
|
#define StrRetToStr __MINGW_NAME_AW(StrRetToStr)
|
|
#define StrRetToBuf __MINGW_NAME_AW(StrRetToBuf)
|
|
#define SHStrDup __MINGW_NAME_AW(SHStrDup)
|
|
|
|
LWSTDAPI StrRetToStrA(STRRET *pstr,LPCITEMIDLIST pidl,LPSTR *ppsz);
|
|
LWSTDAPI StrRetToStrW(STRRET *pstr,LPCITEMIDLIST pidl,LPWSTR *ppsz);
|
|
LWSTDAPI StrRetToBufA(STRRET *pstr,LPCITEMIDLIST pidl,LPSTR pszBuf,UINT cchBuf);
|
|
LWSTDAPI StrRetToBufW(STRRET *pstr,LPCITEMIDLIST pidl,LPWSTR pszBuf,UINT cchBuf);
|
|
LWSTDAPI StrRetToBSTR(STRRET *pstr,LPCITEMIDLIST pidl,BSTR *pbstr);
|
|
LWSTDAPI SHStrDupA(LPCSTR psz,WCHAR **ppwsz);
|
|
LWSTDAPI SHStrDupW(LPCWSTR psz,WCHAR **ppwsz);
|
|
LWSTDAPI_(int) StrCmpLogicalW(LPCWSTR psz1,LPCWSTR psz2);
|
|
LWSTDAPI_(DWORD) StrCatChainW(LPWSTR pszDst,DWORD cchDst,DWORD ichAt,LPCWSTR pszSrc);
|
|
LWSTDAPI SHLoadIndirectString(LPCWSTR pszSource,LPWSTR pszOutBuf,UINT cchOutBuf,void **ppvReserved);
|
|
#if (_WIN32_IE >= 0x0603)
|
|
LWSTDAPI_(WINBOOL) IsCharSpaceA(CHAR wch);
|
|
LWSTDAPI_(WINBOOL) IsCharSpaceW(WCHAR wch);
|
|
|
|
#define IsCharSpace __MINGW_NAME_AW(IsCharSpace)
|
|
|
|
LWSTDAPI_(int) StrCmpCA(LPCSTR pszStr1,LPCSTR pszStr2);
|
|
LWSTDAPI_(int) StrCmpCW(LPCWSTR pszStr1,LPCWSTR pszStr2);
|
|
|
|
#define StrCmpC __MINGW_NAME_AW(StrCmpC)
|
|
|
|
LWSTDAPI_(int) StrCmpICA(LPCSTR pszStr1,LPCSTR pszStr2);
|
|
LWSTDAPI_(int) StrCmpICW(LPCWSTR pszStr1,LPCWSTR pszStr2);
|
|
|
|
#define StrCmpIC __MINGW_NAME_AW(StrCmpIC)
|
|
#endif
|
|
|
|
#define StrChr __MINGW_NAME_AW(StrChr)
|
|
#define StrRChr __MINGW_NAME_AW(StrRChr)
|
|
#define StrChrI __MINGW_NAME_AW(StrChrI)
|
|
#define StrRChrI __MINGW_NAME_AW(StrRChrI)
|
|
#define StrCmpN __MINGW_NAME_AW(StrCmpN)
|
|
#define StrCmpNI __MINGW_NAME_AW(StrCmpNI)
|
|
#define StrStr __MINGW_NAME_AW(StrStr)
|
|
|
|
#define StrStrI __MINGW_NAME_AW(StrStrI)
|
|
#define StrDup __MINGW_NAME_AW(StrDup)
|
|
#define StrRStrI __MINGW_NAME_AW(StrRStrI)
|
|
#define StrCSpn __MINGW_NAME_AW(StrCSpn)
|
|
#define StrCSpnI __MINGW_NAME_AW(StrCSpnI)
|
|
#define StrSpn __MINGW_NAME_AW(StrSpn)
|
|
#define StrToInt __MINGW_NAME_AW(StrToInt)
|
|
#define StrPBrk __MINGW_NAME_AW(StrPBrk)
|
|
#define StrToIntEx __MINGW_NAME_AW(StrToIntEx)
|
|
|
|
#if (_WIN32_IE >= 0x0600)
|
|
#define StrToInt64Ex __MINGW_NAME_AW(StrToInt64Ex)
|
|
#endif
|
|
|
|
#define StrFromTimeInterval __MINGW_NAME_AW(StrFromTimeInterval)
|
|
#define StrIntlEqN __MINGW_NAME_AW(StrIntlEqN)
|
|
#define StrIntlEqNI __MINGW_NAME_AW(StrIntlEqNI)
|
|
#define StrFormatByteSize __MINGW_NAME_AW(StrFormatByteSize)
|
|
#define StrFormatKBSize __MINGW_NAME_AW(StrFormatKBSize)
|
|
|
|
#define StrNCat __MINGW_NAME_AW(StrNCat)
|
|
#define StrTrim __MINGW_NAME_AW(StrTrim)
|
|
#define StrCatBuff __MINGW_NAME_AW(StrCatBuff)
|
|
#define ChrCmpI __MINGW_NAME_AW(ChrCmpI)
|
|
#define wvnsprintf __MINGW_NAME_AW(wvnsprintf)
|
|
#define wnsprintf __MINGW_NAME_AW(wnsprintf)
|
|
#define StrIsIntlEqual __MINGW_NAME_AW(StrIsIntlEqual)
|
|
|
|
#if defined(UNICODE)
|
|
#define StrFormatByteSize64 StrFormatByteSizeW
|
|
#else
|
|
#define StrFormatByteSize64 StrFormatByteSize64A
|
|
#endif
|
|
|
|
LWSTDAPI_(WINBOOL) IntlStrEqWorkerA(WINBOOL fCaseSens,LPCSTR lpString1,LPCSTR lpString2,int nChar);
|
|
LWSTDAPI_(WINBOOL) IntlStrEqWorkerW(WINBOOL fCaseSens,LPCWSTR lpString1,LPCWSTR lpString2,int nChar);
|
|
|
|
#define IntlStrEqNA(s1,s2,nChar) IntlStrEqWorkerA(TRUE,s1,s2,nChar)
|
|
#define IntlStrEqNW(s1,s2,nChar) IntlStrEqWorkerW(TRUE,s1,s2,nChar)
|
|
#define IntlStrEqNIA(s1,s2,nChar) IntlStrEqWorkerA(FALSE,s1,s2,nChar)
|
|
#define IntlStrEqNIW(s1,s2,nChar) IntlStrEqWorkerW(FALSE,s1,s2,nChar)
|
|
|
|
#define IntlStrEqN __MINGW_NAME_AW(IntlStrEqN)
|
|
#define IntlStrEqNI __MINGW_NAME_AW(IntlStrEqNI)
|
|
|
|
#define SZ_CONTENTTYPE_HTMLA "text/html"
|
|
#define SZ_CONTENTTYPE_HTMLW L"text/html"
|
|
#define SZ_CONTENTTYPE_CDFA "application/x-cdf"
|
|
#define SZ_CONTENTTYPE_CDFW L"application/x-cdf"
|
|
|
|
#define SZ_CONTENTTYPE_HTML __MINGW_NAME_AW(SZ_CONTENTTYPE_HTML)
|
|
#define SZ_CONTENTTYPE_CDF __MINGW_NAME_AW(SZ_CONTENTTYPE_CDF)
|
|
|
|
#define PathIsHTMLFileA(pszPath) PathIsContentTypeA(pszPath,SZ_CONTENTTYPE_HTMLA)
|
|
#define PathIsHTMLFileW(pszPath) PathIsContentTypeW(pszPath,SZ_CONTENTTYPE_HTMLW)
|
|
|
|
#define STIF_DEFAULT __MSABI_LONG(0x00000000)
|
|
#define STIF_SUPPORT_HEX __MSABI_LONG(0x00000001)
|
|
|
|
#define StrCatA lstrcatA
|
|
#define StrCmpA lstrcmpA
|
|
#define StrCmpIA lstrcmpiA
|
|
#define StrCpyA lstrcpyA
|
|
#define StrCpyNA lstrcpynA
|
|
|
|
#define StrToLong StrToInt
|
|
#define StrNCmp StrCmpN
|
|
#define StrNCmpI StrCmpNI
|
|
#define StrNCpy StrCpyN
|
|
#define StrCatN StrNCat
|
|
|
|
#define StrCatBuff __MINGW_NAME_AW(StrCatBuff)
|
|
|
|
#if defined(UNICODE)
|
|
#define StrCat StrCatW
|
|
#define StrCmp StrCmpW
|
|
#define StrCmpI StrCmpIW
|
|
#define StrCpy StrCpyW
|
|
#define StrCpyN StrCpyNW
|
|
#else
|
|
#define StrCat lstrcatA
|
|
#define StrCmp lstrcmpA
|
|
#define StrCmpI lstrcmpiA
|
|
#define StrCpy lstrcpyA
|
|
#define StrCpyN lstrcpynA
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#ifndef NO_SHLWAPI_PATH
|
|
|
|
LWSTDAPI_(LPSTR) PathAddBackslashA(LPSTR pszPath);
|
|
LWSTDAPI_(LPWSTR) PathAddBackslashW(LPWSTR pszPath);
|
|
|
|
#define PathAddBackslash __MINGW_NAME_AW(PathAddBackslash)
|
|
|
|
LWSTDAPI_(WINBOOL) PathAddExtensionA(LPSTR pszPath,LPCSTR pszExt);
|
|
LWSTDAPI_(WINBOOL) PathAddExtensionW(LPWSTR pszPath,LPCWSTR pszExt);
|
|
|
|
#define PathAddExtension __MINGW_NAME_AW(PathAddExtension)
|
|
|
|
LWSTDAPI_(WINBOOL) PathAppendA(LPSTR pszPath,LPCSTR pMore);
|
|
LWSTDAPI_(WINBOOL) PathAppendW(LPWSTR pszPath,LPCWSTR pMore);
|
|
LWSTDAPI_(LPSTR) PathBuildRootA(LPSTR pszRoot,int iDrive);
|
|
LWSTDAPI_(LPWSTR) PathBuildRootW(LPWSTR pszRoot,int iDrive);
|
|
|
|
#define PathBuildRoot __MINGW_NAME_AW(PathBuildRoot)
|
|
|
|
LWSTDAPI_(WINBOOL) PathCanonicalizeA(LPSTR pszBuf,LPCSTR pszPath);
|
|
LWSTDAPI_(WINBOOL) PathCanonicalizeW(LPWSTR pszBuf,LPCWSTR pszPath);
|
|
LWSTDAPI_(LPSTR) PathCombineA(LPSTR pszDest,LPCSTR pszDir,LPCSTR pszFile);
|
|
LWSTDAPI_(LPWSTR) PathCombineW(LPWSTR pszDest,LPCWSTR pszDir,LPCWSTR pszFile);
|
|
|
|
#define PathCombine __MINGW_NAME_AW(PathCombine)
|
|
|
|
LWSTDAPI_(WINBOOL) PathCompactPathA(HDC hDC,LPSTR pszPath,UINT dx);
|
|
LWSTDAPI_(WINBOOL) PathCompactPathW(HDC hDC,LPWSTR pszPath,UINT dx);
|
|
LWSTDAPI_(WINBOOL) PathCompactPathExA(LPSTR pszOut,LPCSTR pszSrc,UINT cchMax,DWORD dwFlags);
|
|
LWSTDAPI_(WINBOOL) PathCompactPathExW(LPWSTR pszOut,LPCWSTR pszSrc,UINT cchMax,DWORD dwFlags);
|
|
LWSTDAPI_(int) PathCommonPrefixA(LPCSTR pszFile1,LPCSTR pszFile2,LPSTR achPath);
|
|
LWSTDAPI_(int) PathCommonPrefixW(LPCWSTR pszFile1,LPCWSTR pszFile2,LPWSTR achPath);
|
|
LWSTDAPI_(WINBOOL) PathFileExistsA(LPCSTR pszPath);
|
|
LWSTDAPI_(WINBOOL) PathFileExistsW(LPCWSTR pszPath);
|
|
|
|
#define PathFileExists __MINGW_NAME_AW(PathFileExists)
|
|
|
|
LWSTDAPI_(LPSTR) PathFindExtensionA(LPCSTR pszPath);
|
|
LWSTDAPI_(LPWSTR) PathFindExtensionW(LPCWSTR pszPath);
|
|
|
|
#define PathFindExtension __MINGW_NAME_AW(PathFindExtension)
|
|
|
|
LWSTDAPI_(LPSTR) PathFindFileNameA(LPCSTR pszPath);
|
|
LWSTDAPI_(LPWSTR) PathFindFileNameW(LPCWSTR pszPath);
|
|
|
|
#define PathFindFileName __MINGW_NAME_AW(PathFindFileName)
|
|
|
|
LWSTDAPI_(LPSTR) PathFindNextComponentA(LPCSTR pszPath);
|
|
LWSTDAPI_(LPWSTR) PathFindNextComponentW(LPCWSTR pszPath);
|
|
|
|
#define PathFindNextComponent __MINGW_NAME_AW(PathFindNextComponent)
|
|
|
|
LWSTDAPI_(WINBOOL) PathFindOnPathA(LPSTR pszPath,LPCSTR *ppszOtherDirs);
|
|
LWSTDAPI_(WINBOOL) PathFindOnPathW(LPWSTR pszPath,LPCWSTR *ppszOtherDirs);
|
|
LWSTDAPI_(LPSTR) PathGetArgsA(LPCSTR pszPath);
|
|
LWSTDAPI_(LPWSTR) PathGetArgsW(LPCWSTR pszPath);
|
|
|
|
#define PathGetArgs __MINGW_NAME_AW(PathGetArgs)
|
|
|
|
LWSTDAPI_(LPCSTR) PathFindSuffixArrayA(LPCSTR pszPath,const LPCSTR *apszSuffix,int iArraySize);
|
|
LWSTDAPI_(LPCWSTR) PathFindSuffixArrayW(LPCWSTR pszPath,const LPCWSTR *apszSuffix,int iArraySize);
|
|
|
|
#define PathFindSuffixArray __MINGW_NAME_AW(PathFindSuffixArray)
|
|
|
|
LWSTDAPI_(WINBOOL) PathIsLFNFileSpecA(LPCSTR lpName);
|
|
LWSTDAPI_(WINBOOL) PathIsLFNFileSpecW(LPCWSTR lpName);
|
|
|
|
#define PathIsLFNFileSpec __MINGW_NAME_AW(PathIsLFNFileSpec)
|
|
|
|
LWSTDAPI_(UINT) PathGetCharTypeA(UCHAR ch);
|
|
LWSTDAPI_(UINT) PathGetCharTypeW(WCHAR ch);
|
|
|
|
#define GCT_INVALID 0x0000
|
|
#define GCT_LFNCHAR 0x0001
|
|
#define GCT_SHORTCHAR 0x0002
|
|
#define GCT_WILD 0x0004
|
|
#define GCT_SEPARATOR 0x0008
|
|
|
|
LWSTDAPI_(int) PathGetDriveNumberA(LPCSTR pszPath);
|
|
LWSTDAPI_(int) PathGetDriveNumberW(LPCWSTR pszPath);
|
|
|
|
#define PathGetDriveNumber __MINGW_NAME_AW(PathGetDriveNumber)
|
|
|
|
LWSTDAPI_(WINBOOL) PathIsDirectoryA(LPCSTR pszPath);
|
|
LWSTDAPI_(WINBOOL) PathIsDirectoryW(LPCWSTR pszPath);
|
|
|
|
#define PathIsDirectory __MINGW_NAME_AW(PathIsDirectory)
|
|
|
|
LWSTDAPI_(WINBOOL) PathIsDirectoryEmptyA(LPCSTR pszPath);
|
|
LWSTDAPI_(WINBOOL) PathIsDirectoryEmptyW(LPCWSTR pszPath);
|
|
|
|
#define PathIsDirectoryEmpty __MINGW_NAME_AW(PathIsDirectoryEmpty)
|
|
|
|
LWSTDAPI_(WINBOOL) PathIsFileSpecA(LPCSTR pszPath);
|
|
LWSTDAPI_(WINBOOL) PathIsFileSpecW(LPCWSTR pszPath);
|
|
|
|
#define PathIsFileSpec __MINGW_NAME_AW(PathIsFileSpec)
|
|
|
|
LWSTDAPI_(WINBOOL) PathIsPrefixA(LPCSTR pszPrefix,LPCSTR pszPath);
|
|
LWSTDAPI_(WINBOOL) PathIsPrefixW(LPCWSTR pszPrefix,LPCWSTR pszPath);
|
|
|
|
#define PathIsPrefix __MINGW_NAME_AW(PathIsPrefix)
|
|
|
|
LWSTDAPI_(WINBOOL) PathIsRelativeA(LPCSTR pszPath);
|
|
LWSTDAPI_(WINBOOL) PathIsRelativeW(LPCWSTR pszPath);
|
|
|
|
#define PathIsRelative __MINGW_NAME_AW(PathIsRelative)
|
|
|
|
LWSTDAPI_(WINBOOL) PathIsRootA(LPCSTR pszPath);
|
|
LWSTDAPI_(WINBOOL) PathIsRootW(LPCWSTR pszPath);
|
|
|
|
#define PathIsRoot __MINGW_NAME_AW(PathIsRoot)
|
|
|
|
LWSTDAPI_(WINBOOL) PathIsSameRootA(LPCSTR pszPath1,LPCSTR pszPath2);
|
|
LWSTDAPI_(WINBOOL) PathIsSameRootW(LPCWSTR pszPath1,LPCWSTR pszPath2);
|
|
|
|
#define PathIsSameRoot __MINGW_NAME_AW(PathIsSameRoot)
|
|
|
|
LWSTDAPI_(WINBOOL) PathIsUNCA(LPCSTR pszPath);
|
|
LWSTDAPI_(WINBOOL) PathIsUNCW(LPCWSTR pszPath);
|
|
|
|
#define PathIsUNC __MINGW_NAME_AW(PathIsUNC)
|
|
|
|
LWSTDAPI_(WINBOOL) PathIsNetworkPathA(LPCSTR pszPath);
|
|
LWSTDAPI_(WINBOOL) PathIsNetworkPathW(LPCWSTR pszPath);
|
|
|
|
#define PathIsNetworkPath __MINGW_NAME_AW(PathIsNetworkPath)
|
|
|
|
LWSTDAPI_(WINBOOL) PathIsUNCServerA(LPCSTR pszPath);
|
|
LWSTDAPI_(WINBOOL) PathIsUNCServerW(LPCWSTR pszPath);
|
|
|
|
#define PathIsUNCServer __MINGW_NAME_AW(PathIsUNCServer)
|
|
|
|
LWSTDAPI_(WINBOOL) PathIsUNCServerShareA(LPCSTR pszPath);
|
|
LWSTDAPI_(WINBOOL) PathIsUNCServerShareW(LPCWSTR pszPath);
|
|
|
|
#define PathIsUNCServerShare __MINGW_NAME_AW(PathIsUNCServerShare)
|
|
|
|
LWSTDAPI_(WINBOOL) PathIsContentTypeA(LPCSTR pszPath,LPCSTR pszContentType);
|
|
LWSTDAPI_(WINBOOL) PathIsContentTypeW(LPCWSTR pszPath,LPCWSTR pszContentType);
|
|
LWSTDAPI_(WINBOOL) PathIsURLA(LPCSTR pszPath);
|
|
LWSTDAPI_(WINBOOL) PathIsURLW(LPCWSTR pszPath);
|
|
|
|
#define PathIsURL __MINGW_NAME_AW(PathIsURL)
|
|
|
|
LWSTDAPI_(WINBOOL) PathMakePrettyA(LPSTR pszPath);
|
|
LWSTDAPI_(WINBOOL) PathMakePrettyW(LPWSTR pszPath);
|
|
LWSTDAPI_(WINBOOL) PathMatchSpecA(LPCSTR pszFile,LPCSTR pszSpec);
|
|
LWSTDAPI_(WINBOOL) PathMatchSpecW(LPCWSTR pszFile,LPCWSTR pszSpec);
|
|
LWSTDAPI_(int) PathParseIconLocationA(LPSTR pszIconFile);
|
|
LWSTDAPI_(int) PathParseIconLocationW(LPWSTR pszIconFile);
|
|
LWSTDAPI_(void) PathQuoteSpacesA(LPSTR lpsz);
|
|
LWSTDAPI_(void) PathQuoteSpacesW(LPWSTR lpsz);
|
|
LWSTDAPI_(WINBOOL) PathRelativePathToA(LPSTR pszPath,LPCSTR pszFrom,DWORD dwAttrFrom,LPCSTR pszTo,DWORD dwAttrTo);
|
|
LWSTDAPI_(WINBOOL) PathRelativePathToW(LPWSTR pszPath,LPCWSTR pszFrom,DWORD dwAttrFrom,LPCWSTR pszTo,DWORD dwAttrTo);
|
|
LWSTDAPI_(void) PathRemoveArgsA(LPSTR pszPath);
|
|
LWSTDAPI_(void) PathRemoveArgsW(LPWSTR pszPath);
|
|
LWSTDAPI_(LPSTR) PathRemoveBackslashA(LPSTR pszPath);
|
|
LWSTDAPI_(LPWSTR) PathRemoveBackslashW(LPWSTR pszPath);
|
|
|
|
#define PathRemoveBackslash __MINGW_NAME_AW(PathRemoveBackslash)
|
|
|
|
LWSTDAPI_(void) PathRemoveBlanksA(LPSTR pszPath);
|
|
LWSTDAPI_(void) PathRemoveBlanksW(LPWSTR pszPath);
|
|
LWSTDAPI_(void) PathRemoveExtensionA(LPSTR pszPath);
|
|
LWSTDAPI_(void) PathRemoveExtensionW(LPWSTR pszPath);
|
|
LWSTDAPI_(WINBOOL) PathRemoveFileSpecA(LPSTR pszPath);
|
|
LWSTDAPI_(WINBOOL) PathRemoveFileSpecW(LPWSTR pszPath);
|
|
LWSTDAPI_(WINBOOL) PathRenameExtensionA(LPSTR pszPath,LPCSTR pszExt);
|
|
LWSTDAPI_(WINBOOL) PathRenameExtensionW(LPWSTR pszPath,LPCWSTR pszExt);
|
|
LWSTDAPI_(WINBOOL) PathSearchAndQualifyA(LPCSTR pszPath,LPSTR pszBuf,UINT cchBuf);
|
|
LWSTDAPI_(WINBOOL) PathSearchAndQualifyW(LPCWSTR pszPath,LPWSTR pszBuf,UINT cchBuf);
|
|
LWSTDAPI_(void) PathSetDlgItemPathA(HWND hDlg,int id,LPCSTR pszPath);
|
|
LWSTDAPI_(void) PathSetDlgItemPathW(HWND hDlg,int id,LPCWSTR pszPath);
|
|
LWSTDAPI_(LPSTR) PathSkipRootA(LPCSTR pszPath);
|
|
LWSTDAPI_(LPWSTR) PathSkipRootW(LPCWSTR pszPath);
|
|
|
|
#define PathSkipRoot __MINGW_NAME_AW(PathSkipRoot)
|
|
|
|
LWSTDAPI_(void) PathStripPathA(LPSTR pszPath);
|
|
LWSTDAPI_(void) PathStripPathW(LPWSTR pszPath);
|
|
|
|
#define PathStripPath __MINGW_NAME_AW(PathStripPath)
|
|
|
|
LWSTDAPI_(WINBOOL) PathStripToRootA(LPSTR pszPath);
|
|
LWSTDAPI_(WINBOOL) PathStripToRootW(LPWSTR pszPath);
|
|
|
|
#define PathStripToRoot __MINGW_NAME_AW(PathStripToRoot)
|
|
|
|
LWSTDAPI_(void) PathUnquoteSpacesA(LPSTR lpsz);
|
|
LWSTDAPI_(void) PathUnquoteSpacesW(LPWSTR lpsz);
|
|
LWSTDAPI_(WINBOOL) PathMakeSystemFolderA(LPCSTR pszPath);
|
|
LWSTDAPI_(WINBOOL) PathMakeSystemFolderW(LPCWSTR pszPath);
|
|
|
|
#define PathMakeSystemFolder __MINGW_NAME_AW(PathMakeSystemFolder)
|
|
|
|
LWSTDAPI_(WINBOOL) PathUnmakeSystemFolderA(LPCSTR pszPath);
|
|
LWSTDAPI_(WINBOOL) PathUnmakeSystemFolderW(LPCWSTR pszPath);
|
|
|
|
#define PathUnmakeSystemFolder __MINGW_NAME_AW(PathUnmakeSystemFolder)
|
|
|
|
LWSTDAPI_(WINBOOL) PathIsSystemFolderA(LPCSTR pszPath,DWORD dwAttrb);
|
|
LWSTDAPI_(WINBOOL) PathIsSystemFolderW(LPCWSTR pszPath,DWORD dwAttrb);
|
|
|
|
#define PathIsSystemFolder __MINGW_NAME_AW(PathIsSystemFolder)
|
|
|
|
LWSTDAPI_(void) PathUndecorateA(LPSTR pszPath);
|
|
LWSTDAPI_(void) PathUndecorateW(LPWSTR pszPath);
|
|
|
|
#define PathUndecorate __MINGW_NAME_AW(PathUndecorate)
|
|
|
|
LWSTDAPI_(WINBOOL) PathUnExpandEnvStringsA(LPCSTR pszPath,LPSTR pszBuf,UINT cchBuf);
|
|
LWSTDAPI_(WINBOOL) PathUnExpandEnvStringsW(LPCWSTR pszPath,LPWSTR pszBuf,UINT cchBuf);
|
|
|
|
#define PathUnExpandEnvStrings __MINGW_NAME_AW(PathUnExpandEnvStrings)
|
|
#define PathAppend __MINGW_NAME_AW(PathAppend)
|
|
#define PathCanonicalize __MINGW_NAME_AW(PathCanonicalize)
|
|
#define PathCompactPath __MINGW_NAME_AW(PathCompactPath)
|
|
#define PathCompactPathEx __MINGW_NAME_AW(PathCompactPathEx)
|
|
#define PathCommonPrefix __MINGW_NAME_AW(PathCommonPrefix)
|
|
#define PathFindOnPath __MINGW_NAME_AW(PathFindOnPath)
|
|
#define PathGetCharType __MINGW_NAME_AW(PathGetCharType)
|
|
#define PathIsContentType __MINGW_NAME_AW(PathIsContentType)
|
|
#define PathIsHTMLFile __MINGW_NAME_AW(PathIsHTMLFile)
|
|
#define PathMakePretty __MINGW_NAME_AW(PathMakePretty)
|
|
#define PathMatchSpec __MINGW_NAME_AW(PathMatchSpec)
|
|
#define PathParseIconLocation __MINGW_NAME_AW(PathParseIconLocation)
|
|
#define PathQuoteSpaces __MINGW_NAME_AW(PathQuoteSpaces)
|
|
#define PathRelativePathTo __MINGW_NAME_AW(PathRelativePathTo)
|
|
#define PathRemoveArgs __MINGW_NAME_AW(PathRemoveArgs)
|
|
#define PathRemoveBlanks __MINGW_NAME_AW(PathRemoveBlanks)
|
|
#define PathRemoveExtension __MINGW_NAME_AW(PathRemoveExtension)
|
|
#define PathRemoveFileSpec __MINGW_NAME_AW(PathRemoveFileSpec)
|
|
#define PathRenameExtension __MINGW_NAME_AW(PathRenameExtension)
|
|
#define PathSearchAndQualify __MINGW_NAME_AW(PathSearchAndQualify)
|
|
#define PathSetDlgItemPath __MINGW_NAME_AW(PathSetDlgItemPath)
|
|
#define PathUnquoteSpaces __MINGW_NAME_AW(PathUnquoteSpaces)
|
|
|
|
typedef enum {
|
|
URL_SCHEME_INVALID = -1,URL_SCHEME_UNKNOWN = 0,URL_SCHEME_FTP,URL_SCHEME_HTTP,URL_SCHEME_GOPHER,URL_SCHEME_MAILTO,URL_SCHEME_NEWS,URL_SCHEME_NNTP,URL_SCHEME_TELNET,URL_SCHEME_WAIS,URL_SCHEME_FILE,URL_SCHEME_MK,URL_SCHEME_HTTPS,URL_SCHEME_SHELL,URL_SCHEME_SNEWS,URL_SCHEME_LOCAL,URL_SCHEME_JAVASCRIPT,URL_SCHEME_VBSCRIPT,URL_SCHEME_ABOUT,URL_SCHEME_RES,URL_SCHEME_MSSHELLROOTED,URL_SCHEME_MSSHELLIDLIST,URL_SCHEME_MSHELP,URL_SCHEME_MAXVALUE
|
|
} URL_SCHEME;
|
|
|
|
typedef enum {
|
|
URL_PART_NONE = 0,URL_PART_SCHEME = 1,URL_PART_HOSTNAME,URL_PART_USERNAME,URL_PART_PASSWORD,URL_PART_PORT,URL_PART_QUERY
|
|
} URL_PART;
|
|
|
|
typedef enum {
|
|
URLIS_URL,URLIS_OPAQUE,URLIS_NOHISTORY,URLIS_FILEURL,URLIS_APPLIABLE,URLIS_DIRECTORY,URLIS_HASQUERY
|
|
} URLIS;
|
|
|
|
#define URL_UNESCAPE 0x10000000
|
|
#define URL_ESCAPE_UNSAFE 0x20000000
|
|
#define URL_PLUGGABLE_PROTOCOL 0x40000000
|
|
#define URL_WININET_COMPATIBILITY 0x80000000
|
|
#define URL_DONT_ESCAPE_EXTRA_INFO 0x02000000
|
|
#define URL_DONT_UNESCAPE_EXTRA_INFO URL_DONT_ESCAPE_EXTRA_INFO
|
|
#define URL_BROWSER_MODE URL_DONT_ESCAPE_EXTRA_INFO
|
|
#define URL_ESCAPE_SPACES_ONLY 0x04000000
|
|
#define URL_DONT_SIMPLIFY 0x08000000
|
|
#define URL_NO_META URL_DONT_SIMPLIFY
|
|
#define URL_UNESCAPE_INPLACE 0x00100000
|
|
#define URL_CONVERT_IF_DOSPATH 0x00200000
|
|
#define URL_UNESCAPE_HIGH_ANSI_ONLY 0x00400000
|
|
#define URL_INTERNAL_PATH 0x00800000
|
|
#define URL_FILE_USE_PATHURL 0x00010000
|
|
#define URL_DONT_UNESCAPE 0x00020000
|
|
#define URL_ESCAPE_PERCENT 0x00001000
|
|
#define URL_ESCAPE_SEGMENT_ONLY 0x00002000
|
|
|
|
#define URL_PARTFLAG_KEEPSCHEME 0x00000001
|
|
|
|
#define URL_APPLY_DEFAULT 0x00000001
|
|
#define URL_APPLY_GUESSSCHEME 0x00000002
|
|
#define URL_APPLY_GUESSFILE 0x00000004
|
|
#define URL_APPLY_FORCEAPPLY 0x00000008
|
|
|
|
LWSTDAPI_(int) UrlCompareA(LPCSTR psz1,LPCSTR psz2,WINBOOL fIgnoreSlash);
|
|
LWSTDAPI_(int) UrlCompareW(LPCWSTR psz1,LPCWSTR psz2,WINBOOL fIgnoreSlash);
|
|
LWSTDAPI UrlCombineA(LPCSTR pszBase,LPCSTR pszRelative,LPSTR pszCombined,LPDWORD pcchCombined,DWORD dwFlags);
|
|
LWSTDAPI UrlCombineW(LPCWSTR pszBase,LPCWSTR pszRelative,LPWSTR pszCombined,LPDWORD pcchCombined,DWORD dwFlags);
|
|
LWSTDAPI UrlCanonicalizeA(LPCSTR pszUrl,LPSTR pszCanonicalized,LPDWORD pcchCanonicalized,DWORD dwFlags);
|
|
LWSTDAPI UrlCanonicalizeW(LPCWSTR pszUrl,LPWSTR pszCanonicalized,LPDWORD pcchCanonicalized,DWORD dwFlags);
|
|
LWSTDAPI_(WINBOOL) UrlIsOpaqueA(LPCSTR pszURL);
|
|
LWSTDAPI_(WINBOOL) UrlIsOpaqueW(LPCWSTR pszURL);
|
|
LWSTDAPI_(WINBOOL) UrlIsNoHistoryA(LPCSTR pszURL);
|
|
LWSTDAPI_(WINBOOL) UrlIsNoHistoryW(LPCWSTR pszURL);
|
|
#define UrlIsFileUrlA(pszURL) UrlIsA(pszURL,URLIS_FILEURL)
|
|
#define UrlIsFileUrlW(pszURL) UrlIsW(pszURL,URLIS_FILEURL)
|
|
LWSTDAPI_(WINBOOL) UrlIsA(LPCSTR pszUrl,URLIS UrlIs);
|
|
LWSTDAPI_(WINBOOL) UrlIsW(LPCWSTR pszUrl,URLIS UrlIs);
|
|
LWSTDAPI_(LPCSTR) UrlGetLocationA(LPCSTR psz1);
|
|
LWSTDAPI_(LPCWSTR) UrlGetLocationW(LPCWSTR psz1);
|
|
LWSTDAPI UrlUnescapeA(LPSTR pszUrl,LPSTR pszUnescaped,LPDWORD pcchUnescaped,DWORD dwFlags);
|
|
LWSTDAPI UrlUnescapeW(LPWSTR pszUrl,LPWSTR pszUnescaped,LPDWORD pcchUnescaped,DWORD dwFlags);
|
|
LWSTDAPI UrlEscapeA(LPCSTR pszUrl,LPSTR pszEscaped,LPDWORD pcchEscaped,DWORD dwFlags);
|
|
LWSTDAPI UrlEscapeW(LPCWSTR pszUrl,LPWSTR pszEscaped,LPDWORD pcchEscaped,DWORD dwFlags);
|
|
LWSTDAPI UrlCreateFromPathA(LPCSTR pszPath,LPSTR pszUrl,LPDWORD pcchUrl,DWORD dwFlags);
|
|
LWSTDAPI UrlCreateFromPathW(LPCWSTR pszPath,LPWSTR pszUrl,LPDWORD pcchUrl,DWORD dwFlags);
|
|
LWSTDAPI PathCreateFromUrlA(LPCSTR pszUrl,LPSTR pszPath,LPDWORD pcchPath,DWORD dwFlags);
|
|
LWSTDAPI PathCreateFromUrlW(LPCWSTR pszUrl,LPWSTR pszPath,LPDWORD pcchPath,DWORD dwFlags);
|
|
LWSTDAPI UrlHashA(LPCSTR pszUrl,LPBYTE pbHash,DWORD cbHash);
|
|
LWSTDAPI UrlHashW(LPCWSTR pszUrl,LPBYTE pbHash,DWORD cbHash);
|
|
LWSTDAPI UrlGetPartW(LPCWSTR pszIn,LPWSTR pszOut,LPDWORD pcchOut,DWORD dwPart,DWORD dwFlags);
|
|
LWSTDAPI UrlGetPartA(LPCSTR pszIn,LPSTR pszOut,LPDWORD pcchOut,DWORD dwPart,DWORD dwFlags);
|
|
LWSTDAPI UrlApplySchemeA(LPCSTR pszIn,LPSTR pszOut,LPDWORD pcchOut,DWORD dwFlags);
|
|
LWSTDAPI UrlApplySchemeW(LPCWSTR pszIn,LPWSTR pszOut,LPDWORD pcchOut,DWORD dwFlags);
|
|
LWSTDAPI HashData(LPBYTE pbData,DWORD cbData,LPBYTE pbHash,DWORD cbHash);
|
|
|
|
#define UrlCompare __MINGW_NAME_AW(UrlCompare)
|
|
#define UrlCombine __MINGW_NAME_AW(UrlCombine)
|
|
#define UrlCanonicalize __MINGW_NAME_AW(UrlCanonicalize)
|
|
#define UrlIsOpaque __MINGW_NAME_AW(UrlIsOpaque)
|
|
#define UrlIsFileUrl __MINGW_NAME_AW(UrlIsFileUrl)
|
|
#define UrlGetLocation __MINGW_NAME_AW(UrlGetLocation)
|
|
#define UrlUnescape __MINGW_NAME_AW(UrlUnescape)
|
|
#define UrlEscape __MINGW_NAME_AW(UrlEscape)
|
|
#define UrlCreateFromPath __MINGW_NAME_AW(UrlCreateFromPath)
|
|
#define PathCreateFromUrl __MINGW_NAME_AW(PathCreateFromUrl)
|
|
#define UrlHash __MINGW_NAME_AW(UrlHash)
|
|
#define UrlGetPart __MINGW_NAME_AW(UrlGetPart)
|
|
#define UrlApplyScheme __MINGW_NAME_AW(UrlApplyScheme)
|
|
#define UrlIs __MINGW_NAME_AW(UrlIs)
|
|
|
|
#define UrlEscapeSpaces(pszUrl,pszEscaped,pcchEscaped) UrlCanonicalize(pszUrl,pszEscaped,pcchEscaped,URL_ESCAPE_SPACES_ONLY |URL_DONT_ESCAPE_EXTRA_INFO)
|
|
#define UrlUnescapeInPlace(pszUrl,dwFlags) UrlUnescape(pszUrl,NULL,NULL,dwFlags | URL_UNESCAPE_INPLACE)
|
|
#endif
|
|
|
|
#ifndef NO_SHLWAPI_REG
|
|
|
|
LWSTDAPI_(DWORD) SHDeleteEmptyKeyA(HKEY hkey,LPCSTR pszSubKey);
|
|
LWSTDAPI_(DWORD) SHDeleteEmptyKeyW(HKEY hkey,LPCWSTR pszSubKey);
|
|
|
|
#define SHDeleteEmptyKey __MINGW_NAME_AW(SHDeleteEmptyKey)
|
|
|
|
LWSTDAPI_(DWORD) SHDeleteKeyA(HKEY hkey,LPCSTR pszSubKey);
|
|
LWSTDAPI_(DWORD) SHDeleteKeyW(HKEY hkey,LPCWSTR pszSubKey);
|
|
|
|
#define SHDeleteKey __MINGW_NAME_AW(SHDeleteKey)
|
|
|
|
LWSTDAPI_(HKEY) SHRegDuplicateHKey(HKEY hkey);
|
|
|
|
LWSTDAPI_(DWORD) SHDeleteValueA(HKEY hkey,LPCSTR pszSubKey,LPCSTR pszValue);
|
|
LWSTDAPI_(DWORD) SHDeleteValueW(HKEY hkey,LPCWSTR pszSubKey,LPCWSTR pszValue);
|
|
|
|
#define SHDeleteValue __MINGW_NAME_AW(SHDeleteValue)
|
|
|
|
LWSTDAPI_(DWORD) SHGetValueA(HKEY hkey,LPCSTR pszSubKey,LPCSTR pszValue,DWORD *pdwType,void *pvData,DWORD *pcbData);
|
|
LWSTDAPI_(DWORD) SHGetValueW(HKEY hkey,LPCWSTR pszSubKey,LPCWSTR pszValue,DWORD *pdwType,void *pvData,DWORD *pcbData);
|
|
|
|
#define SHGetValue __MINGW_NAME_AW(SHGetValue)
|
|
|
|
LWSTDAPI_(DWORD) SHSetValueA(HKEY hkey,LPCSTR pszSubKey,LPCSTR pszValue,DWORD dwType,LPCVOID pvData,DWORD cbData);
|
|
LWSTDAPI_(DWORD) SHSetValueW(HKEY hkey,LPCWSTR pszSubKey,LPCWSTR pszValue,DWORD dwType,LPCVOID pvData,DWORD cbData);
|
|
|
|
#define SHSetValue __MINGW_NAME_AW(SHSetValue)
|
|
|
|
#if (_WIN32_IE >= 0x0602)
|
|
|
|
typedef DWORD SRRF;
|
|
|
|
#define SRRF_RT_REG_NONE 0x00000001
|
|
#define SRRF_RT_REG_SZ 0x00000002
|
|
#define SRRF_RT_REG_EXPAND_SZ 0x00000004
|
|
#define SRRF_RT_REG_BINARY 0x00000008
|
|
#define SRRF_RT_REG_DWORD 0x00000010
|
|
#define SRRF_RT_REG_MULTI_SZ 0x00000020
|
|
#define SRRF_RT_REG_QWORD 0x00000040
|
|
|
|
#define SRRF_RT_DWORD (SRRF_RT_REG_BINARY | SRRF_RT_REG_DWORD)
|
|
#define SRRF_RT_QWORD (SRRF_RT_REG_BINARY | SRRF_RT_REG_QWORD)
|
|
#define SRRF_RT_ANY 0x0000ffff
|
|
|
|
#define SRRF_RM_ANY 0x00000000
|
|
#define SRRF_RM_NORMAL 0x00010000
|
|
#define SRRF_RM_SAFE 0x00020000
|
|
#define SRRF_RM_SAFENETWORK 0x00040000
|
|
|
|
#define SRRF_NOEXPAND 0x10000000
|
|
#define SRRF_ZEROONFAILURE 0x20000000
|
|
|
|
LWSTDAPI_(LONG) SHRegGetValueA(HKEY hkey,LPCSTR pszSubKey,LPCSTR pszValue,SRRF dwFlags,DWORD *pdwType,void *pvData,DWORD *pcbData);
|
|
LWSTDAPI_(LONG) SHRegGetValueW(HKEY hkey,LPCWSTR pszSubKey,LPCWSTR pszValue,SRRF dwFlags,DWORD *pdwType,void *pvData,DWORD *pcbData);
|
|
|
|
#define SHRegGetValue __MINGW_NAME_AW(SHRegGetValue)
|
|
#endif
|
|
|
|
#define SHQueryValueEx __MINGW_NAME_AW(SHQueryValueEx)
|
|
#define SHEnumKeyEx __MINGW_NAME_AW(SHEnumKeyEx)
|
|
#define SHEnumValue __MINGW_NAME_AW(SHEnumValue)
|
|
#define SHQueryInfoKey __MINGW_NAME_AW(SHQueryInfoKey)
|
|
#define SHCopyKey __MINGW_NAME_AW(SHCopyKey)
|
|
#define SHRegGetPath __MINGW_NAME_AW(SHRegGetPath)
|
|
#define SHRegSetPath __MINGW_NAME_AW(SHRegSetPath)
|
|
|
|
LWSTDAPI_(DWORD) SHQueryValueExA(HKEY hkey,LPCSTR pszValue,DWORD *pdwReserved,DWORD *pdwType,void *pvData,DWORD *pcbData);
|
|
LWSTDAPI_(DWORD) SHQueryValueExW(HKEY hkey,LPCWSTR pszValue,DWORD *pdwReserved,DWORD *pdwType,void *pvData,DWORD *pcbData);
|
|
LWSTDAPI_(LONG) SHEnumKeyExA(HKEY hkey,DWORD dwIndex,LPSTR pszName,LPDWORD pcchName);
|
|
LWSTDAPI_(LONG) SHEnumKeyExW(HKEY hkey,DWORD dwIndex,LPWSTR pszName,LPDWORD pcchName);
|
|
LWSTDAPI_(LONG) SHEnumValueA(HKEY hkey,DWORD dwIndex,LPSTR pszValueName,LPDWORD pcchValueName,LPDWORD pdwType,void *pvData,LPDWORD pcbData);
|
|
LWSTDAPI_(LONG) SHEnumValueW(HKEY hkey,DWORD dwIndex,LPWSTR pszValueName,LPDWORD pcchValueName,LPDWORD pdwType,void *pvData,LPDWORD pcbData);
|
|
LWSTDAPI_(LONG) SHQueryInfoKeyA(HKEY hkey,LPDWORD pcSubKeys,LPDWORD pcchMaxSubKeyLen,LPDWORD pcValues,LPDWORD pcchMaxValueNameLen);
|
|
LWSTDAPI_(LONG) SHQueryInfoKeyW(HKEY hkey,LPDWORD pcSubKeys,LPDWORD pcchMaxSubKeyLen,LPDWORD pcValues,LPDWORD pcchMaxValueNameLen);
|
|
LWSTDAPI_(DWORD) SHCopyKeyA(HKEY hkeySrc,LPCSTR szSrcSubKey,HKEY hkeyDest,DWORD fReserved);
|
|
LWSTDAPI_(DWORD) SHCopyKeyW(HKEY hkeySrc,LPCWSTR wszSrcSubKey,HKEY hkeyDest,DWORD fReserved);
|
|
LWSTDAPI_(DWORD) SHRegGetPathA(HKEY hKey,LPCSTR pcszSubKey,LPCSTR pcszValue,LPSTR pszPath,DWORD dwFlags);
|
|
LWSTDAPI_(DWORD) SHRegGetPathW(HKEY hKey,LPCWSTR pcszSubKey,LPCWSTR pcszValue,LPWSTR pszPath,DWORD dwFlags);
|
|
LWSTDAPI_(DWORD) SHRegSetPathA(HKEY hKey,LPCSTR pcszSubKey,LPCSTR pcszValue,LPCSTR pcszPath,DWORD dwFlags);
|
|
LWSTDAPI_(DWORD) SHRegSetPathW(HKEY hKey,LPCWSTR pcszSubKey,LPCWSTR pcszValue,LPCWSTR pcszPath,DWORD dwFlags);
|
|
|
|
typedef enum {
|
|
SHREGDEL_DEFAULT = 0x00000000,SHREGDEL_HKCU = 0x00000001,SHREGDEL_HKLM = 0x00000010,SHREGDEL_BOTH = 0x00000011
|
|
} SHREGDEL_FLAGS;
|
|
|
|
typedef enum {
|
|
SHREGENUM_DEFAULT = 0x00000000,SHREGENUM_HKCU = 0x00000001,SHREGENUM_HKLM = 0x00000010,SHREGENUM_BOTH = 0x00000011
|
|
} SHREGENUM_FLAGS;
|
|
|
|
#define SHREGSET_HKCU 0x00000001
|
|
#define SHREGSET_FORCE_HKCU 0x00000002
|
|
#define SHREGSET_HKLM 0x00000004
|
|
#define SHREGSET_FORCE_HKLM 0x00000008
|
|
#define SHREGSET_DEFAULT (SHREGSET_FORCE_HKCU | SHREGSET_HKLM)
|
|
|
|
typedef HANDLE HUSKEY;
|
|
typedef HUSKEY *PHUSKEY;
|
|
|
|
LWSTDAPI_(LONG) SHRegCreateUSKeyA(LPCSTR pszPath,REGSAM samDesired,HUSKEY hRelativeUSKey,PHUSKEY phNewUSKey,DWORD dwFlags);
|
|
LWSTDAPI_(LONG) SHRegCreateUSKeyW(LPCWSTR pwzPath,REGSAM samDesired,HUSKEY hRelativeUSKey,PHUSKEY phNewUSKey,DWORD dwFlags);
|
|
LWSTDAPI_(LONG) SHRegOpenUSKeyA(LPCSTR pszPath,REGSAM samDesired,HUSKEY hRelativeUSKey,PHUSKEY phNewUSKey,WINBOOL fIgnoreHKCU);
|
|
LWSTDAPI_(LONG) SHRegOpenUSKeyW(LPCWSTR pwzPath,REGSAM samDesired,HUSKEY hRelativeUSKey,PHUSKEY phNewUSKey,WINBOOL fIgnoreHKCU);
|
|
LWSTDAPI_(LONG) SHRegQueryUSValueA(HUSKEY hUSKey,LPCSTR pszValue,LPDWORD pdwType,void *pvData,LPDWORD pcbData,WINBOOL fIgnoreHKCU,void *pvDefaultData,DWORD dwDefaultDataSize);
|
|
LWSTDAPI_(LONG) SHRegQueryUSValueW(HUSKEY hUSKey,LPCWSTR pwzValue,LPDWORD pdwType,void *pvData,LPDWORD pcbData,WINBOOL fIgnoreHKCU,void *pvDefaultData,DWORD dwDefaultDataSize);
|
|
LWSTDAPI_(LONG) SHRegWriteUSValueA(HUSKEY hUSKey,LPCSTR pszValue,DWORD dwType,const void *pvData,DWORD cbData,DWORD dwFlags);
|
|
LWSTDAPI_(LONG) SHRegWriteUSValueW(HUSKEY hUSKey,LPCWSTR pwzValue,DWORD dwType,const void *pvData,DWORD cbData,DWORD dwFlags);
|
|
LWSTDAPI_(LONG) SHRegDeleteUSValueA(HUSKEY hUSKey,LPCSTR pszValue,SHREGDEL_FLAGS delRegFlags);
|
|
LWSTDAPI_(LONG) SHRegDeleteEmptyUSKeyW(HUSKEY hUSKey,LPCWSTR pwzSubKey,SHREGDEL_FLAGS delRegFlags);
|
|
LWSTDAPI_(LONG) SHRegDeleteEmptyUSKeyA(HUSKEY hUSKey,LPCSTR pszSubKey,SHREGDEL_FLAGS delRegFlags);
|
|
LWSTDAPI_(LONG) SHRegDeleteUSValueW(HUSKEY hUSKey,LPCWSTR pwzValue,SHREGDEL_FLAGS delRegFlags);
|
|
LWSTDAPI_(LONG) SHRegEnumUSKeyA(HUSKEY hUSKey,DWORD dwIndex,LPSTR pszName,LPDWORD pcchName,SHREGENUM_FLAGS enumRegFlags);
|
|
LWSTDAPI_(LONG) SHRegEnumUSKeyW(HUSKEY hUSKey,DWORD dwIndex,LPWSTR pwzName,LPDWORD pcchName,SHREGENUM_FLAGS enumRegFlags);
|
|
LWSTDAPI_(LONG) SHRegEnumUSValueA(HUSKEY hUSkey,DWORD dwIndex,LPSTR pszValueName,LPDWORD pcchValueName,LPDWORD pdwType,void *pvData,LPDWORD pcbData,SHREGENUM_FLAGS enumRegFlags);
|
|
LWSTDAPI_(LONG) SHRegEnumUSValueW(HUSKEY hUSkey,DWORD dwIndex,LPWSTR pszValueName,LPDWORD pcchValueName,LPDWORD pdwType,void *pvData,LPDWORD pcbData,SHREGENUM_FLAGS enumRegFlags);
|
|
LWSTDAPI_(LONG) SHRegQueryInfoUSKeyA(HUSKEY hUSKey,LPDWORD pcSubKeys,LPDWORD pcchMaxSubKeyLen,LPDWORD pcValues,LPDWORD pcchMaxValueNameLen,SHREGENUM_FLAGS enumRegFlags);
|
|
LWSTDAPI_(LONG) SHRegQueryInfoUSKeyW(HUSKEY hUSKey,LPDWORD pcSubKeys,LPDWORD pcchMaxSubKeyLen,LPDWORD pcValues,LPDWORD pcchMaxValueNameLen,SHREGENUM_FLAGS enumRegFlags);
|
|
LWSTDAPI_(LONG) SHRegCloseUSKey(HUSKEY hUSKey);
|
|
LWSTDAPI_(LONG) SHRegGetUSValueA(LPCSTR pszSubKey,LPCSTR pszValue,LPDWORD pdwType,void *pvData,LPDWORD pcbData,WINBOOL fIgnoreHKCU,void *pvDefaultData,DWORD dwDefaultDataSize);
|
|
LWSTDAPI_(LONG) SHRegGetUSValueW(LPCWSTR pwzSubKey,LPCWSTR pwzValue,LPDWORD pdwType,void *pvData,LPDWORD pcbData,WINBOOL fIgnoreHKCU,void *pvDefaultData,DWORD dwDefaultDataSize);
|
|
LWSTDAPI_(LONG) SHRegSetUSValueA(LPCSTR pszSubKey,LPCSTR pszValue,DWORD dwType,const void *pvData,DWORD cbData,DWORD dwFlags);
|
|
LWSTDAPI_(LONG) SHRegSetUSValueW(LPCWSTR pwzSubKey,LPCWSTR pwzValue,DWORD dwType,const void *pvData,DWORD cbData,DWORD dwFlags);
|
|
LWSTDAPI_(int) SHRegGetIntW(HKEY hk,LPCWSTR pwzKey,int iDefault);
|
|
|
|
#define SHRegCreateUSKey __MINGW_NAME_AW(SHRegCreateUSKey)
|
|
#define SHRegOpenUSKey __MINGW_NAME_AW(SHRegOpenUSKey)
|
|
#define SHRegQueryUSValue __MINGW_NAME_AW(SHRegQueryUSValue)
|
|
#define SHRegWriteUSValue __MINGW_NAME_AW(SHRegWriteUSValue)
|
|
#define SHRegDeleteUSValue __MINGW_NAME_AW(SHRegDeleteUSValue)
|
|
#define SHRegDeleteEmptyUSKey __MINGW_NAME_AW(SHRegDeleteEmptyUSKey)
|
|
#define SHRegEnumUSKey __MINGW_NAME_AW(SHRegEnumUSKey)
|
|
#define SHRegEnumUSValue __MINGW_NAME_AW(SHRegEnumUSValue)
|
|
#define SHRegQueryInfoUSKey __MINGW_NAME_AW(SHRegQueryInfoUSKey)
|
|
#define SHRegGetUSValue __MINGW_NAME_AW(SHRegGetUSValue)
|
|
#define SHRegSetUSValue __MINGW_NAME_AW(SHRegSetUSValue)
|
|
#define SHRegGetInt __MINGW_NAME_AW(SHRegGetInt)
|
|
#define SHRegGetBoolUSValue __MINGW_NAME_AW(SHRegGetBoolUSValue)
|
|
|
|
LWSTDAPI_(WINBOOL) SHRegGetBoolUSValueA(LPCSTR pszSubKey,LPCSTR pszValue,WINBOOL fIgnoreHKCU,WINBOOL fDefault);
|
|
LWSTDAPI_(WINBOOL) SHRegGetBoolUSValueW(LPCWSTR pszSubKey,LPCWSTR pszValue,WINBOOL fIgnoreHKCU,WINBOOL fDefault);
|
|
|
|
enum {
|
|
ASSOCF_INIT_NOREMAPCLSID = 0x00000001,
|
|
ASSOCF_INIT_BYEXENAME = 0x00000002,
|
|
ASSOCF_OPEN_BYEXENAME = 0x00000002,
|
|
ASSOCF_INIT_DEFAULTTOSTAR = 0x00000004,
|
|
ASSOCF_INIT_DEFAULTTOFOLDER = 0x00000008,
|
|
ASSOCF_NOUSERSETTINGS = 0x00000010,
|
|
ASSOCF_NOTRUNCATE = 0x00000020,
|
|
ASSOCF_VERIFY = 0x00000040,
|
|
ASSOCF_REMAPRUNDLL = 0x00000080,
|
|
ASSOCF_NOFIXUPS = 0x00000100,
|
|
ASSOCF_IGNOREBASECLASS = 0x00000200,
|
|
ASSOCF_INIT_IGNOREUNKNOWN = 0x00000400
|
|
};
|
|
|
|
typedef DWORD ASSOCF;
|
|
|
|
typedef enum {
|
|
ASSOCSTR_COMMAND = 1,
|
|
ASSOCSTR_EXECUTABLE,
|
|
ASSOCSTR_FRIENDLYDOCNAME,
|
|
ASSOCSTR_FRIENDLYAPPNAME,
|
|
ASSOCSTR_NOOPEN,
|
|
ASSOCSTR_SHELLNEWVALUE,
|
|
ASSOCSTR_DDECOMMAND,
|
|
ASSOCSTR_DDEIFEXEC,
|
|
ASSOCSTR_DDEAPPLICATION,
|
|
ASSOCSTR_DDETOPIC,
|
|
ASSOCSTR_INFOTIP,
|
|
ASSOCSTR_QUICKTIP,
|
|
ASSOCSTR_TILEINFO,
|
|
ASSOCSTR_CONTENTTYPE,
|
|
ASSOCSTR_DEFAULTICON,
|
|
ASSOCSTR_SHELLEXTENSION,
|
|
#if _WIN32_WINNT >= 0x601
|
|
ASSOCSTR_DROPTARGET,
|
|
ASSOCSTR_DELEGATEEXECUTE,
|
|
#endif
|
|
ASSOCSTR_MAX
|
|
} ASSOCSTR;
|
|
|
|
typedef enum {
|
|
ASSOCKEY_SHELLEXECCLASS = 1,
|
|
ASSOCKEY_APP,
|
|
ASSOCKEY_CLASS,
|
|
ASSOCKEY_BASECLASS,
|
|
ASSOCKEY_MAX
|
|
} ASSOCKEY;
|
|
|
|
typedef enum {
|
|
ASSOCDATA_MSIDESCRIPTOR = 1,
|
|
ASSOCDATA_NOACTIVATEHANDLER,
|
|
ASSOCDATA_QUERYCLASSSTORE,
|
|
ASSOCDATA_HASPERUSERASSOC,
|
|
ASSOCDATA_EDITFLAGS,
|
|
ASSOCDATA_VALUE,
|
|
ASSOCDATA_MAX
|
|
} ASSOCDATA;
|
|
|
|
typedef enum {
|
|
ASSOCENUM_NONE
|
|
} ASSOCENUM;
|
|
|
|
#undef INTERFACE
|
|
#define INTERFACE IQueryAssociations
|
|
DECLARE_INTERFACE_(IQueryAssociations,IUnknown) {
|
|
STDMETHOD (QueryInterface)(THIS_ REFIID riid,void **ppv) PURE;
|
|
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
|
|
STDMETHOD_(ULONG,Release) (THIS) PURE;
|
|
STDMETHOD (Init)(THIS_ ASSOCF flags,LPCWSTR pszAssoc,HKEY hkProgid,HWND hwnd) PURE;
|
|
STDMETHOD (GetString)(THIS_ ASSOCF flags,ASSOCSTR str,LPCWSTR pszExtra,LPWSTR pszOut,DWORD *pcchOut) PURE;
|
|
STDMETHOD (GetKey)(THIS_ ASSOCF flags,ASSOCKEY key,LPCWSTR pszExtra,HKEY *phkeyOut) PURE;
|
|
STDMETHOD (GetData)(THIS_ ASSOCF flags,ASSOCDATA data,LPCWSTR pszExtra,LPVOID pvOut,DWORD *pcbOut) PURE;
|
|
STDMETHOD (GetEnum)(THIS_ ASSOCF flags,ASSOCENUM assocenum,LPCWSTR pszExtra,REFIID riid,LPVOID *ppvOut) PURE;
|
|
};
|
|
|
|
#define AssocQueryString __MINGW_NAME_AW(AssocQueryString)
|
|
#define AssocQueryStringByKey __MINGW_NAME_AW(AssocQueryStringByKey)
|
|
#define AssocQueryKey __MINGW_NAME_AW(AssocQueryKey)
|
|
|
|
LWSTDAPI AssocCreate(CLSID clsid,REFIID riid,LPVOID *ppv);
|
|
LWSTDAPI AssocQueryStringA(ASSOCF flags,ASSOCSTR str,LPCSTR pszAssoc,LPCSTR pszExtra,LPSTR pszOut,DWORD *pcchOut);
|
|
LWSTDAPI AssocQueryStringW(ASSOCF flags,ASSOCSTR str,LPCWSTR pszAssoc,LPCWSTR pszExtra,LPWSTR pszOut,DWORD *pcchOut);
|
|
LWSTDAPI AssocQueryStringByKeyA(ASSOCF flags,ASSOCSTR str,HKEY hkAssoc,LPCSTR pszExtra,LPSTR pszOut,DWORD *pcchOut);
|
|
LWSTDAPI AssocQueryStringByKeyW(ASSOCF flags,ASSOCSTR str,HKEY hkAssoc,LPCWSTR pszExtra,LPWSTR pszOut,DWORD *pcchOut);
|
|
LWSTDAPI AssocQueryKeyA(ASSOCF flags,ASSOCKEY key,LPCSTR pszAssoc,LPCSTR pszExtra,HKEY *phkeyOut);
|
|
LWSTDAPI AssocQueryKeyW(ASSOCF flags,ASSOCKEY key,LPCWSTR pszAssoc,LPCWSTR pszExtra,HKEY *phkeyOut);
|
|
|
|
#if (_WIN32_IE >= 0x0601)
|
|
LWSTDAPI_(WINBOOL) AssocIsDangerous(LPCWSTR pszAssoc);
|
|
#endif
|
|
|
|
#if (_WIN32_IE >= 0x0603)
|
|
LWSTDAPI AssocGetPerceivedType(LPCWSTR pszExt,PERCEIVED *ptype,PERCEIVEDFLAG *pflag,LPWSTR *ppszType);
|
|
#endif
|
|
#endif
|
|
|
|
#ifndef NO_SHLWAPI_STREAM
|
|
#define SHOpenRegStream __MINGW_NAME_AW(SHOpenRegStream)
|
|
#define SHOpenRegStream2 __MINGW_NAME_AW(SHOpenRegStream2)
|
|
#define SHCreateStreamOnFile __MINGW_NAME_AW(SHCreateStreamOnFile)
|
|
|
|
LWSTDAPI_(struct IStream *) SHOpenRegStreamA(HKEY hkey,LPCSTR pszSubkey,LPCSTR pszValue,DWORD grfMode);
|
|
LWSTDAPI_(struct IStream *) SHOpenRegStreamW(HKEY hkey,LPCWSTR pszSubkey,LPCWSTR pszValue,DWORD grfMode);
|
|
LWSTDAPI_(struct IStream *) SHOpenRegStream2A(HKEY hkey,LPCSTR pszSubkey,LPCSTR pszValue,DWORD grfMode);
|
|
LWSTDAPI_(struct IStream *) SHOpenRegStream2W(HKEY hkey,LPCWSTR pszSubkey,LPCWSTR pszValue,DWORD grfMode);
|
|
|
|
#undef SHOpenRegStream
|
|
#define SHOpenRegStream SHOpenRegStream2
|
|
LWSTDAPI SHCreateStreamOnFileA(LPCSTR pszFile,DWORD grfMode,struct IStream **ppstm);
|
|
LWSTDAPI SHCreateStreamOnFileW(LPCWSTR pszFile,DWORD grfMode,struct IStream **ppstm);
|
|
|
|
#if (_WIN32_IE >= 0x0600)
|
|
LWSTDAPI SHCreateStreamOnFileEx(LPCWSTR pszFile,DWORD grfMode,DWORD dwAttributes,WINBOOL fCreate,struct IStream *pstmTemplate,struct IStream **ppstm);
|
|
#endif
|
|
#endif
|
|
|
|
#ifndef NO_SHLWAPI_HTTP
|
|
#if (_WIN32_IE >= 0x0603)
|
|
|
|
#define GetAcceptLanguages __MINGW_NAME_AW(GetAcceptLanguages)
|
|
|
|
LWSTDAPI GetAcceptLanguagesA(LPSTR psz,DWORD *pcch);
|
|
LWSTDAPI GetAcceptLanguagesW(LPWSTR psz,DWORD *pcch);
|
|
#endif
|
|
#endif
|
|
|
|
#if (_WIN32_IE >= 0x0601)
|
|
#define SHGVSPB_PERUSER 0x00000001
|
|
#define SHGVSPB_ALLUSERS 0x00000002
|
|
#define SHGVSPB_PERFOLDER 0x00000004
|
|
#define SHGVSPB_ALLFOLDERS 0x00000008
|
|
#define SHGVSPB_INHERIT 0x00000010
|
|
#define SHGVSPB_ROAM 0x00000020
|
|
#define SHGVSPB_NOAUTODEFAULTS 0x80000000
|
|
|
|
#define SHGVSPB_FOLDER (SHGVSPB_PERUSER | SHGVSPB_PERFOLDER)
|
|
#define SHGVSPB_FOLDERNODEFAULTS (SHGVSPB_PERUSER | SHGVSPB_PERFOLDER | SHGVSPB_NOAUTODEFAULTS)
|
|
#define SHGVSPB_USERDEFAULTS (SHGVSPB_PERUSER | SHGVSPB_ALLFOLDERS)
|
|
#define SHGVSPB_GLOBALDEAFAULTS (SHGVSPB_ALLUSERS | SHGVSPB_ALLFOLDERS)
|
|
|
|
LWSTDAPI SHGetViewStatePropertyBag(LPCITEMIDLIST pidl,LPCWSTR pszBagName,DWORD dwFlags,REFIID riid,void **ppv);
|
|
#endif
|
|
|
|
#if (_WIN32_IE >= 0x0603)
|
|
LWSTDAPI_(HANDLE) SHAllocShared(const void *pvData,DWORD dwSize,DWORD dwProcessId);
|
|
LWSTDAPI_(WINBOOL) SHFreeShared(HANDLE hData,DWORD dwProcessId);
|
|
LWSTDAPI_(void *) SHLockShared(HANDLE hData,DWORD dwProcessId);
|
|
LWSTDAPI_(WINBOOL) SHUnlockShared(void *pvData);
|
|
#endif
|
|
|
|
#define SHACF_DEFAULT 0x00000000
|
|
#define SHACF_FILESYSTEM 0x00000001
|
|
#define SHACF_URLALL (SHACF_URLHISTORY | SHACF_URLMRU)
|
|
#define SHACF_URLHISTORY 0x00000002
|
|
#define SHACF_URLMRU 0x00000004
|
|
#define SHACF_USETAB 0x00000008
|
|
#define SHACF_FILESYS_ONLY 0x00000010
|
|
|
|
#if (_WIN32_IE >= 0x0600)
|
|
#define SHACF_FILESYS_DIRS 0x00000020
|
|
#endif
|
|
|
|
#define SHACF_AUTOSUGGEST_FORCE_ON 0x10000000
|
|
#define SHACF_AUTOSUGGEST_FORCE_OFF 0x20000000
|
|
#define SHACF_AUTOAPPEND_FORCE_ON 0x40000000
|
|
#define SHACF_AUTOAPPEND_FORCE_OFF 0x80000000
|
|
|
|
LWSTDAPI SHAutoComplete(HWND hwndEdit,DWORD dwFlags);
|
|
LWSTDAPI SHSetThreadRef(IUnknown *punk);
|
|
LWSTDAPI SHGetThreadRef(IUnknown **ppunk);
|
|
LWSTDAPI_(WINBOOL) SHSkipJunction(struct IBindCtx *pbc,const CLSID *pclsid);
|
|
|
|
#if (_WIN32_IE >= 0x0603)
|
|
LWSTDAPI SHCreateThreadRef(LONG *pcRef,IUnknown **ppunk);
|
|
#endif
|
|
|
|
#define CTF_INSIST 0x00000001
|
|
#define CTF_THREAD_REF 0x00000002
|
|
#define CTF_PROCESS_REF 0x00000004
|
|
#define CTF_COINIT 0x00000008
|
|
#define CTF_FREELIBANDEXIT 0x00000010
|
|
#define CTF_REF_COUNTED 0x00000020
|
|
#define CTF_WAIT_ALLOWCOM 0x00000040
|
|
|
|
LWSTDAPI_(WINBOOL) SHCreateThread(LPTHREAD_START_ROUTINE pfnThreadProc,void *pData,DWORD dwFlags,LPTHREAD_START_ROUTINE pfnCallback);
|
|
LWSTDAPI SHReleaseThreadRef();
|
|
|
|
#ifndef NO_SHLWAPI_GDI
|
|
LWSTDAPI_(HPALETTE) SHCreateShellPalette(HDC hdc);
|
|
LWSTDAPI_(void) ColorRGBToHLS(COLORREF clrRGB,WORD *pwHue,WORD *pwLuminance,WORD *pwSaturation);
|
|
LWSTDAPI_(COLORREF) ColorHLSToRGB(WORD wHue,WORD wLuminance,WORD wSaturation);
|
|
LWSTDAPI_(COLORREF) ColorAdjustLuma(COLORREF clrRGB,int n,WINBOOL fScale);
|
|
#endif
|
|
|
|
typedef struct _DLLVERSIONINFO {
|
|
DWORD cbSize;
|
|
DWORD dwMajorVersion;
|
|
DWORD dwMinorVersion;
|
|
DWORD dwBuildNumber;
|
|
DWORD dwPlatformID;
|
|
} DLLVERSIONINFO;
|
|
|
|
#define DLLVER_PLATFORM_WINDOWS 0x00000001
|
|
#define DLLVER_PLATFORM_NT 0x00000002
|
|
|
|
typedef struct _DLLVERSIONINFO2 {
|
|
DLLVERSIONINFO info1;
|
|
DWORD dwFlags;
|
|
ULONGLONG ullVersion;
|
|
|
|
} DLLVERSIONINFO2;
|
|
|
|
#define DLLVER_MAJOR_MASK 0xFFFF000000000000
|
|
#define DLLVER_MINOR_MASK 0x0000FFFF00000000
|
|
#define DLLVER_BUILD_MASK 0x00000000FFFF0000
|
|
#define DLLVER_QFE_MASK 0x000000000000FFFF
|
|
|
|
#define MAKEDLLVERULL(major,minor,build,qfe) (((ULONGLONG)(major) << 48) | ((ULONGLONG)(minor) << 32) | ((ULONGLONG)(build) << 16) | ((ULONGLONG)(qfe) << 0))
|
|
|
|
typedef HRESULT (CALLBACK *DLLGETVERSIONPROC)(DLLVERSIONINFO *);
|
|
|
|
STDAPI DllInstall(WINBOOL bInstall,LPCWSTR pszCmdLine);
|
|
|
|
#if (_WIN32_IE >= 0x0602)
|
|
LWSTDAPI_(WINBOOL) IsInternetESCEnabled();
|
|
#endif
|
|
|
|
LWSTDAPI_(IStream *) SHCreateMemStream(const BYTE *pInit, _In_ UINT cbInit);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#include <poppack.h>
|
|
#endif
|
|
#endif
|