25-01-2018, Saat: 22:14
(Son Düzenleme: 25-01-2018, Saat: 22:28, Düzenleyen: TescilsizUzman.)
Merhaba; firemonkey tarafında "MAX_PATH" nette bu konuyla ilgili bir şey bulamadım, firemonkey masaüstünü nasıl bulabilirim?
function GetSystemPath(Folder: Integer): string; // Masa Üstü Yolu var PIDL: PItemIDList; // uses ShlObj, ActiveX Path: PChar; AMalloc: IMalloc; begin Path := StrAlloc(MAX_PATH); SHGetSpecialFolderLocation(Application.Handle, Folder, PIDL); if SHGetPathFromIDList(PIDL, Path) then Result := Path; SHGetMalloc(AMalloc); AMalloc.Free(PIDL); StrDispose(Path); end;