shlwapi.pp definition problems lazarus / 67-Windows ---------------------------------------------------------------------- 440bx · 2025-09-16 16:03 Hello, shlwapi.pp defines:Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i  procedure SetProcessReference( punk:IUnknown);stdcall;external SHLWAPIDLL name 'SetProcessReference'; function GetProcessReference(punk:IUnknown):HRESULT;stdcall;external SHLWAPIDLL name 'GetProcessReference'; Neither of those 2 functions exists in shlwapi.dll In Win 10 and 11, they are located in shcore.dll, in versions of Windows where there is no shcore.dll, I do not know where and if those functions are implemented but, they are _not_ in shlwapi (as declared in shlwapi.pp) Just FYI, in the C headers the function is declared in shlwapi.h but, in C that does not mean anything since it does not specify the dll where it is implemented. If a Pascal program uses those definitions in shlwapi.pp, it would fail to load.  (Disclaimer: I didn't take the time to test this but, that's what should happen.) HTH.