Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

228 lines
6.4 KiB

  1. // shlwapi wrappers
  2. extern DWORD g_dwShlwapiVersion;
  3. DWORD GetShlwapiVersion(void);
  4. //
  5. // Static shlwapi functions.
  6. //
  7. // IsOS isn't implemented in W98 shlwapi, so use the static version instead.
  8. #define IsOS staticIsOS
  9. //////////////////////
  10. #ifdef SHChangeNotify
  11. #undef SHChangeNotify
  12. #endif
  13. #define SHChangeNotify SHChangeNotify_HNWWrap
  14. void SHChangeNotify_HNWWrap(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID dwItem2);
  15. EXTERN_C void _SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID dwItem2);
  16. //////////////////
  17. #ifdef wnsprintfW
  18. #undef wnsprintfW
  19. #endif
  20. #define wnsprintfW wnsprintfW_HNWWrap
  21. int wnsprintfW_HNWWrap(LPWSTR lpOut, int cchLimitIn, LPCWSTR lpFmt, ...);
  22. ///////////////////
  23. #ifdef wvnsprintfW
  24. #undef wvnsprintfW
  25. #endif
  26. #define wvnsprintfW wvnsprintfW_HNWWrap
  27. int wvnsprintfW_HNWWrap(LPWSTR lpOut, int cchLimitIn, LPCWSTR lpFmt, va_list va_args);
  28. EXTERN_C int _wvnsprintfW(LPWSTR lpOut, int cchLimitIn, LPCWSTR lpFmt, va_list arglist);
  29. ///////////////////////
  30. #ifdef SHSetWindowBits
  31. #undef SHSetWindowBits
  32. #endif
  33. #define SHSetWindowBits SHSetWindowBits_HNWWrap
  34. void SHSetWindowBits_HNWWrap(HWND hWnd, int iWhich, DWORD dwBits, DWORD dwValue);
  35. EXTERN_C void _SHSetWindowBits(HWND hWnd, int iWhich, DWORD dwBits, DWORD dwValue);
  36. ///////////////////////
  37. #ifdef SHAnsiToUnicode
  38. #undef SHAnsiToUnicode
  39. #endif
  40. #define SHAnsiToUnicode SHAnsiToUnicode_HNWWrap
  41. int SHAnsiToUnicode_HNWWrap(LPCSTR pszSrc, LPWSTR pwszDst, int cwchBuf);
  42. EXTERN_C int _SHAnsiToUnicode(LPCSTR pszSrc, LPWSTR pwszDst, int cwchBuf);
  43. ///////////////////////
  44. #ifdef SHUnicodeToAnsi
  45. #undef SHUnicodeToAnsi
  46. #endif
  47. #define SHUnicodeToAnsi SHUnicodeToAnsi_HNWWrap
  48. int SHUnicodeToAnsi_HNWWrap(LPCWSTR pwszSrc, LPSTR pszDst, int cchBuf);
  49. EXTERN_C int _SHUnicodeToAnsi(LPCWSTR pwszSrc, LPSTR pszDst, int cchBuf);
  50. ///////////////////////
  51. #ifdef GUIDFromStringA
  52. #undef GUIDFromStringA
  53. #endif
  54. #define GUIDFromStringA GUIDFromStringA_HNWWrap
  55. BOOL GUIDFromStringA_HNWWrap(LPCSTR psz, GUID* pguid);
  56. EXTERN_C BOOL _GUIDFromStringA(LPCSTR psz, GUID* pguid);
  57. //////////////////////////////////
  58. #ifdef WritePrivateProfileStringW
  59. #undef WritePrivateProfileStringW
  60. #endif
  61. #define WritePrivateProfileStringW WritePrivateProfileStringW_HNWWrap
  62. BOOL WINAPI WritePrivateProfileStringW_HNWWrap(LPCWSTR pwzAppName, LPCWSTR pwzKeyName, LPCWSTR pwzString, LPCWSTR pwzFileName);
  63. EXTERN_C BOOL WINAPI _WritePrivateProfileStringWrapW(LPCWSTR pwzAppName, LPCWSTR pwzKeyName, LPCWSTR pwzString, LPCWSTR pwzFileName);
  64. ///////////////////////
  65. #ifdef ExtTextOutWrapW
  66. #undef ExtTextOutWrapW
  67. #endif
  68. #define ExtTextOutWrapW ExtTextOutWrapW_HNWWrap
  69. BOOL ExtTextOutWrapW_HNWWrap(HDC hdc, int x, int y, UINT fuOptions, CONST RECT *lprc, LPCWSTR lpStr, UINT cch, CONST INT *lpDx);
  70. EXTERN_C BOOL _ExtTextOutWrapW(HDC hdc, int x, int y, UINT fuOptions, CONST RECT *lprc, LPCWSTR lpStr, UINT cch, CONST INT *lpDx);
  71. ////////////////////
  72. #ifdef LoadLibraryW
  73. #undef LoadLibraryW
  74. #endif
  75. #define LoadLibraryW LoadLibraryW_HNWWrap
  76. HINSTANCE LoadLibraryW_HNWWrap(LPCWSTR pwzLibFileName);
  77. EXTERN_C HINSTANCE _LoadLibraryWrapW(LPCWSTR pwzLibFileName);
  78. ////////////////////////////
  79. #ifdef SHGetPathFromIDListW
  80. #undef SHGetPathFromIDListW
  81. #endif
  82. #define SHGetPathFromIDListW SHGetPathFromIDListW_HNWWrap
  83. BOOL SHGetPathFromIDListW_HNWWrap(LPCITEMIDLIST pidl, LPWSTR pwzPath);
  84. EXTERN_C BOOL _SHGetPathFromIDListWrapW(LPCITEMIDLIST pidl, LPWSTR pwzPath);
  85. //////////////////////////
  86. #ifdef SetFileAttributesW
  87. #undef SetFileAttributesW
  88. #endif
  89. #define SetFileAttributesW SetFileAttributesW_HNWWrap
  90. BOOL SetFileAttributesW_HNWWrap(LPCWSTR pwzFile, DWORD dwFileAttributes);
  91. EXTERN_C BOOL _SetFileAttributesWrapW(LPCWSTR pwzFile, DWORD dwFileAttributes);
  92. ///////////////////
  93. #ifdef MessageBoxW
  94. #undef MessageBoxW
  95. #endif
  96. #define MessageBoxW MessageBoxW_HNWWrap
  97. int MessageBoxW_HNWWrap(HWND hwnd, LPCWSTR pwzText, LPCWSTR pwzCaption, UINT uType);
  98. EXTERN_C int _MessageBoxWrapW(HWND hwnd, LPCWSTR pwzText, LPCWSTR pwzCaption, UINT uType);
  99. //////////////////////////
  100. #ifdef CreateProcessW
  101. #undef CreateProcessW
  102. #endif
  103. #define CreateProcessW CreateProcessW_HNWWrap
  104. BOOL CreateProcessW_HNWWrap(LPCWSTR lpApplicationName, LPWSTR lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes,
  105. LPSECURITY_ATTRIBUTES lpThreadAttributes, BOOL bInheritHandles, DWORD dwCreationFlags,
  106. LPVOID lpEnvironment, LPCWSTR lpCurrentDirectory, LPSTARTUPINFOW lpStartupInfo,
  107. LPPROCESS_INFORMATION lpProcessInformation);
  108. EXTERN_C BOOL _CreateProcessWrapW(LPCWSTR lpApplicationName, LPWSTR lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes,
  109. LPSECURITY_ATTRIBUTES lpThreadAttributes, BOOL bInheritHandles, DWORD dwCreationFlags,
  110. LPVOID lpEnvironment, LPCWSTR lpCurrentDirectory, LPSTARTUPINFOW lpStartupInfo,
  111. LPPROCESS_INFORMATION lpProcessInformation);
  112. //////////////////////
  113. #ifdef FormatMessageW
  114. #undef FormatMessageW
  115. #endif
  116. #define FormatMessageW FormatMessageW_HNWWrap
  117. DWORD FormatMessageW_HNWWrap(DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, DWORD dwLanguageId,
  118. LPWSTR lpBuffer, DWORD nSize, va_list* Arguments);
  119. EXTERN_C DWORD _FormatMessageWrapW(DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, DWORD dwLanguageId,
  120. LPWSTR lpBuffer, DWORD nSize, va_list* Arguments);
  121. /////////////////////////
  122. #ifdef SHAnsiToUnicodeCP
  123. #undef SHAnsiToUnicodeCP
  124. #endif
  125. #define SHAnsiToUnicodeCP SHAnsiToUnicodeCP_HNWWrap
  126. int SHAnsiToUnicodeCP_HNWWrap(UINT uiCP, LPCSTR pszSrc, LPWSTR pwszDst, int cwchBuf);
  127. EXTERN_C int _SHAnsiToUnicodeCP(UINT uiCP, LPCSTR pszSrc, LPWSTR pwszDst, int cwchBuf);
  128. ////////////////////
  129. #ifdef StrRetToBufW
  130. #undef StrRetToBufW
  131. #endif
  132. #define StrRetToBufW StrRetToBufW_HNWWrap
  133. HRESULT StrRetToBufW_HNWWrap(STRRET* psr, LPCITEMIDLIST pidl, LPWSTR pszBuf, UINT cchBuf);
  134. EXTERN_C HRESULT _StrRetToBufW(STRRET* psr, LPCITEMIDLIST pidl, LPWSTR pszBuf, UINT cchBuf);
  135. //////////////////
  136. #ifdef WhichPlatform
  137. #undef WhichPlatform
  138. #endif
  139. #define WhichPlatform WhichPlatform_HNWWrap
  140. UINT WhichPlatform_HNWWrap(void);
  141. EXTERN_C UINT _WhichPlatform(void);