![]() |
SHGetSpecialFolderLocation unter Vista
Ich benutze folgende Funktion, um Systemordner zu ermitteln:
Delphi-Quellcode:
Unter XP liefert mir CSIDL_APPDATA das Appdata Verzeichnis den Benutzers. Unter Vista aber C:\Users\Michael\AppData\Roaming\. Wie bekomme ich das AppData Verzeichnis ohne Roaming?
function GetShellFolder(CSIDL: integer): string;
var pidl : PItemIdList; FolderPath : string; SystemFolder : Integer; begin FolderPath := ''; SystemFolder := CSIDL; if SUCCEEDED(SHGetSpecialFolderLocation(0, SystemFolder, pidl)) then begin SetLength(FolderPath, MAX_PATH); SHGetPathFromIDList(pidl, PChar(FolderPath)); SetLength(FolderPath, lstrlen(PChar(FolderPath))); end; Result := FolderPath; end; Es handelt sich um 32-Bit Vista. Es scheint eine neue CSIDL zu geben: CSIDL_LOCAL_APPDATA: Zitat:
|
Re: SHGetSpecialFolderLocation unter Vista
Das ist doch der entsprechende Pfad
|
Re: SHGetSpecialFolderLocation unter Vista
Da steht am Anfang auch
Zitat:
![]() |
Re: SHGetSpecialFolderLocation unter Vista
Zitat:
@quendolineDD: Danke für den Hinweis. Werde ich mir mal angucken. |
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:16 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz