http://msdn.microsoft.com/en-gb/library ... 85%29.aspx
I think it's going to work something like this:
Code: Select all
FOLDERID_ProgramFilesX86 = "7C5A40EF-A0FB-4BFC-874A-C0F2E0B9FA8E"
Procedure.s GetKnownFolderPath(sFolderID.s)
;-----------------------------------------
Protected *sPath
SHGetKnownFolderPath_(sFolderID,#KF_FLAG_NO_ALIAS,#Null,*sPath)
ProcedureReturn (sPath)
EndProcedure
GetKnownFolderPath(#FOLDERID_ProgramFilesX86)Ah, Rescator has it in Tips N Tricks: http://www.purebasic.fr/english/viewtop ... 12&t=40492
