folgendes Problem:
Code: Alles auswählen
Procedure.s GetSpecialFolder(Folder.l)
Protected *itemid.ITEMIDLIST = #Null
Protected location.s = Space(#MAX_PATH)
If SHGetSpecialFolderLocation_(0, Folder, @*itemid) = #NOERROR
If SHGetPathFromIDList_(*itemid, @location)
If Right(location, 1) <> "\": location + "\": EndIf
CoTaskMemFree_(*itemid)
ProcedureReturn location
EndIf
EndIf
EndProcedure
Debug GetSpecialFolder(#CSIDL_PROGRAM_FILES)
; liefert "C:\Program Files (x86)\
Debug GetSpecialFolder(#CSIDL_PROGRAM_FILESX86)
; liefert "C:\Program Files (x86)\
Mfg Sicro