ReactOS  0.4.15-dev-341-g17c5fb8
CZipFolder.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  FolderViewColumns
 
class  CZipFolder
 

Functions

EXTERN_C HRESULT WINAPI SHCreateFileExtractIconW (LPCWSTR pszPath, DWORD dwFileAttributes, REFIID riid, void **ppv)
 

Variables

static FolderViewColumns g_ColumnDefs []
 

Function Documentation

◆ SHCreateFileExtractIconW()

EXTERN_C HRESULT WINAPI SHCreateFileExtractIconW ( LPCWSTR  pszPath,
DWORD  dwFileAttributes,
REFIID  riid,
void **  ppv 
)

Definition at line 350 of file CExtractIcon.cpp.

354 {
355  SHFILEINFOW shfi;
356  ULONG_PTR firet = SHGetFileInfoW(pszPath, dwFileAttributes, &shfi, sizeof(shfi), SHGFI_USEFILEATTRIBUTES | SHGFI_ICONLOCATION);
357  HRESULT hr = E_FAIL;
358  if (firet)
359  {
362  if (FAILED_UNEXPECTEDLY(hr))
363  return hr;
364 
365  hr = iconInit->SetNormalIcon(shfi.szDisplayName, shfi.iIcon);
366  if (FAILED_UNEXPECTEDLY(hr))
367  return hr;
368 
369  return iconInit->QueryInterface(riid, ppv);
370  }
371  if (FAILED_UNEXPECTEDLY(hr))
372  return hr;
373 
374  return hr;
375 }
HRESULT hr
Definition: shlfolder.c:183
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define IID_PPV_ARG(Itype, ppType)
#define E_FAIL
Definition: ddrawi.h:102
uint32_t ULONG_PTR
Definition: typedefs.h:64
DWORD_PTR WINAPI SHGetFileInfoW(LPCWSTR path, DWORD dwFileAttributes, SHFILEINFOW *psfi, UINT sizeofpsfi, UINT flags)
Definition: shell32_main.c:413
LONG HRESULT
Definition: typedefs.h:78
#define FAILED_UNEXPECTEDLY(hr)
Definition: shellutils.h:71
#define SHGFI_USEFILEATTRIBUTES
Definition: shellapi.h:179
WCHAR szDisplayName[MAX_PATH]
Definition: shellapi.h:373
HRESULT WINAPI SHCreateDefaultExtractIcon(REFIID riid, void **ppv)
#define SHGFI_ICONLOCATION
Definition: shellapi.h:167
DWORD dwFileAttributes

Referenced by CZipFolder::GetUIObjectOf().

Variable Documentation

◆ g_ColumnDefs