PrivateExtractIcons function user32

int PrivateExtractIcons(
  1. Pointer<Utf16> szFileName,
  2. int nIconIndex,
  3. int cxIcon,
  4. int cyIcon,
  5. Pointer<IntPtr> phicon,
  6. Pointer<Uint32> piconid,
  7. int nIcons,
  8. int flags,
)

Creates an array of handles to icons that are extracted from a specified file.

UINT PrivateExtractIconsW(
  [in]            LPCWSTR szFileName,
  [in]            int     nIconIndex,
  [in]            int     cxIcon,
  [in]            int     cyIcon,
  [out, optional] HICON   *phicon,
  [out, optional] UINT    *piconid,
  [in]            UINT    nIcons,
  [in]            UINT    flags
);

Implementation

int PrivateExtractIcons(
        Pointer<Utf16> szFileName,
        int nIconIndex,
        int cxIcon,
        int cyIcon,
        Pointer<IntPtr> phicon,
        Pointer<Uint32> piconid,
        int nIcons,
        int flags) =>
    _PrivateExtractIcons(
        szFileName, nIconIndex, cxIcon, cyIcon, phicon, piconid, nIcons, flags);