Get Start Menu Directory
This function used to get start menu directory.
uses shlobj;
function GetStartMenu: String;
var
dir: PItemIDList;
startmenu : array[0..MAX_PATH] of Char;
begin
SHGetSpecialFolderLocation(Application.handle, CSIDL_STARTMENU, dir);
SHGetPathFromIDList(dir, startmenu);
result := strpas(startmenu);
end;
procedure TForm1.BitBtn1Click(Sender: TObject);
begin
Edit1.Text := GetStartMenu;
end;
Download: Source Code
Partners: AAA Directory Abacus Directory A2Zdir.org A ...
Get program directory. procedure TForm1.Button1Cli...
Get the current directory. procedure TForm1.Button...
How to check if a directory exists? procedure TForm1.Bu...
With the following function we can use the GetAliasParams me...
Thursday 22 Feb 2007 | Delphi Tutorial | System