Scalabium Software |
|
| Knowledge for your independence. | |
|
Just now in delphi-programming I posted a code which allows to recieve a path to some system folder (StartUp, Recent Files etc). As you know, the path can be different on other computers (depends from operationg system, localization, user profile and user settings). This code allows to read a current value: uses ShlObj, ActiveX;
function GetSystemPath(Folder: Integer): string;
var
PIDL: PItemIDList;
Path: LPSTR;
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;
Now you can call this function with different parameters. For
example: |
|
||||||||||||||||||||||||||||||||||||
| Are you crazy about technology? Are you interested in obtaining a career in web programming? There are many online college degrees in Information Technology, so you can live your desires. Locate an online degree as well as education grants to assist you. |
![]() |
Copyrightc 1998-2008, Scalabium
Software. All rights reserved. |
December 5, 2000 |