SHGetFileInfo function shell32

int SHGetFileInfo(
  1. Pointer<Utf16> pszPath,
  2. int dwFileAttributes,
  3. Pointer<SHFILEINFO> psfi,
  4. int cbFileInfo,
  5. int uFlags,
)

Retrieves information about an object in the file system, such as a file, folder, directory, or drive root.

DWORD_PTR SHGetFileInfoW(
  LPCWSTR     pszPath,
  DWORD       dwFileAttributes,
  SHFILEINFOW *psfi,
  UINT        cbFileInfo,
  UINT        uFlags
);

Implementation

int SHGetFileInfo(Pointer<Utf16> pszPath, int dwFileAttributes,
        Pointer<SHFILEINFO> psfi, int cbFileInfo, int uFlags) =>
    _SHGetFileInfo(pszPath, dwFileAttributes, psfi, cbFileInfo, uFlags);