Recent

Author Topic: shlobj.pp SHCreateFileExtractIconA problem  (Read 330 times)

440bx

  • Hero Member
  • *****
  • Posts: 6119
shlobj.pp SHCreateFileExtractIconA problem
« on: September 15, 2025, 04:57:08 pm »
Hello,

shlobj.pp declares the following:
Code: Pascal  [Select][+][-]
  1.   function SHCreateFileExtractIconA(pszFile:lpcstr; dwFileAttributes:DWord; constref riid:TREFIID; ppv:Ppointer):HRESULT;StdCall;external External_library name 'SHCreateFileExtractIconA';
  2.   function SHCreateFileExtractIconW(pszFile:lpcwstr; dwFileAttributes:DWord; constref riid:TREFIID; ppv:Ppointer):HRESULT;StdCall;external External_library name 'SHCreateFileExtractIconW';
  3.  
The problem is the "A" version of this function does _not_ exist in Win XP onwards.

A note indicating that condition might be appropriate (or possibly a "deprecated" message)

HTH.
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

AlexTP

  • Hero Member
  • *****
  • Posts: 2676
    • UVviewsoft
Re: shlobj.pp SHCreateFileExtractIconA problem
« Reply #1 on: September 15, 2025, 05:59:34 pm »
FPC supports now Win7 or later, so if WinXP misses it, it must be deleted.

 

TinyPortal © 2005-2018