Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Free Pascal
»
Windows
(Moderators:
FPK
,
Tomas Hajny
) »
shlobj.pp SHCreateFileExtractIconA problem
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
« previous
next »
Print
Pages: [
1
]
Author
Topic: shlobj.pp SHCreateFileExtractIconA problem (Read 461 times)
440bx
Hero Member
Posts: 6579
shlobj.pp SHCreateFileExtractIconA problem
«
on:
September 15, 2025, 04:57:08 pm »
Hello,
shlobj.pp declares the following:
Code: Pascal
[Select]
[+]
[-]
function
SHCreateFileExtractIconA
(
pszFile
:
lpcstr
;
dwFileAttributes
:
DWord
;
constref riid
:
TREFIID
;
ppv
:
Ppointer
)
:
HRESULT
;
StdCall
;
external
External_library
name
'SHCreateFileExtractIconA'
;
function
SHCreateFileExtractIconW
(
pszFile
:
lpcwstr
;
dwFileAttributes
:
DWord
;
constref riid
:
TREFIID
;
ppv
:
Ppointer
)
:
HRESULT
;
StdCall
;
external
External_library
name
'SHCreateFileExtractIconW'
;
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.
Logged
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.
AlexTP
Hero Member
Posts: 2732
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.
Logged
CudaText editor
-
ATSynEdit
-
More from me
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Free Pascal
»
Windows
(Moderators:
FPK
,
Tomas Hajny
) »
shlobj.pp SHCreateFileExtractIconA problem
TinyPortal
© 2005-2018