[PSDK][SHELL32][SHELLEXT] Add SHCreateFileExtractIconW() to the PSDK and SAL-annotate it. (#4223)

Note that even if the MS PSDK and MSDN documents an hypothetical
ANSI version SHCreateFileExtractIconA(), this one never existed
exported in any Windows version!
This commit is contained in:
Hermès Bélusca-Maïto 2021-12-30 17:32:35 +01:00
parent 14dbd66d88
commit d7722f39fb
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
4 changed files with 30 additions and 16 deletions

View file

@ -2091,6 +2091,28 @@ SHBindToParent(
_Outptr_ LPVOID *ppv,
_Outptr_opt_ PCUITEMID_CHILD *ppidlLast);
/****************************************************************************
* SHCreateFileExtractIcon API
*/
#if (NTDDI_VERSION >= NTDDI_WINXP)
// NOTE: Even if documented on MSDN, the SHCreateFileExtractIconA()
// ANSI function never existed on Windows!
HRESULT
WINAPI
SHCreateFileExtractIconW(
_In_ LPCWSTR pszFile,
_In_ DWORD dwFileAttributes,
_In_ REFIID riid,
_Outptr_ void **ppv);
#ifdef UNICODE
#define SHCreateFileExtractIcon SHCreateFileExtractIconW
#endif
#endif /* (NTDDI_VERSION >= NTDDI_WINXP) */
/****************************************************************************
* SHDefExtractIcon API
*/