GetSpecialFolderLocation
Posted: Thu May 05, 2005 1:34 pm
For my lib i need the result of this code ( launched with Windows 98 and Windows XP ( English Version ) )
Someone could post the result of the debug windows ?
Thanks
Someone could post the result of the debug windows ?
Thanks
Code: Select all
; Code from Soldat Inconnu tweaked by droopy
; PureBasic 3.93
; Get Name / Folder of Windows Special Folders
ProcedureDLL.s GetSpecialFolderLocation(Valeur.l)
If SHGetSpecialFolderLocation_(0, Valeur, @Dossier_ID) = 0
SpecialFolderLocation.s = Space(#MAX_PATH)
SHGetPathFromIDList_(Dossier_ID, @SpecialFolderLocation)
If SpecialFolderLocation
If Right(SpecialFolderLocation, 1) <> "\"
SpecialFolderLocation + "\"
EndIf
EndIf
EndIf
ProcedureReturn SpecialFolderLocation.s
EndProcedure
For n=0 To 64
If GetSpecialFolderLocation(n) ="" : Continue : EndIf
Debug Str(n) + " "+GetSpecialFolderLocation(n)
Next