Recent

Author Topic: shlobj.pp SHOpenPropSheetA potential problem  (Read 354 times)

440bx

  • Hero Member
  • *****
  • Posts: 5820
shlobj.pp SHOpenPropSheetA potential problem
« on: September 12, 2025, 05:25:16 am »
Hello,

shlobj.pp defines SHOpenPropSheetA but, that function no longer exists in Win 7 through Win 11.

In does exist in Win XP.  I do not know if it exists in Vista.

Anyway, it might be worth adding a comment to SHOpenPropSheetA in shlobj.pp noting that the function is only guaranteed to be available in Win XP (it might be available in the Win9x series but, I have not checked, therefore I don't know.)

HTH.


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

Zvoni

  • Hero Member
  • *****
  • Posts: 3140
Re: shlobj.pp SHOpenPropSheetA potential problem
« Reply #1 on: September 12, 2025, 08:25:24 am »
Hello,

shlobj.pp defines SHOpenPropSheetA but, that function no longer exists in Win 7 through Win 11.

In does exist in Win XP.  I do not know if it exists in Vista.

Anyway, it might be worth adding a comment to SHOpenPropSheetA in shlobj.pp noting that the function is only guaranteed to be available in Win XP (it might be available in the Win9x series but, I have not checked, therefore I don't know.)

HTH.
Don't agree!
https://www.geoffchappell.com/studies/windows/shell/shell32/api/index.htm
https://learn.microsoft.com/en-us/windows/win32/api/shlobj/nf-shlobj-shopenpropsheeta

Apparently still available
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

440bx

  • Hero Member
  • *****
  • Posts: 5820
Re: shlobj.pp SHOpenPropSheetA potential problem
« Reply #2 on: September 12, 2025, 08:48:09 am »
see the other post.
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

Zvoni

  • Hero Member
  • *****
  • Posts: 3140
Re: shlobj.pp SHOpenPropSheetA potential problem
« Reply #3 on: September 12, 2025, 10:40:24 am »
AHA!
Found something:
https://www.geoffchappell.com/studies/windows/shell/shell32/history/ords471.htm?tx=49,50
(scroll down to end).
You seem to be partially right:
Quote
retired in 6.0 from Windows Vista, and higher

Seems Export is only by ordinal 707
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

 

TinyPortal © 2005-2018