Mega Code Archive

 
Categories / Delphi / API
 

Adding a document to the windows 95 start buttons documents

Question: How can I add a document to the Windows 95 Start Button's documents menu? Answer: Use the Shell function SHAddToRecentDocs. Example: uses ShlOBJ; procedure TForm1.Button1Click(Sender: TObject); var s : string; begin s := 'C:\DownLoad\ntkfaq.html'; SHAddToRecentDocs(SHARD_PATH, pChar(s)); end;