Author: William Gerbert
Problem/Question/Abstract:
How can I add a document that my application processed to the folder of recent
documents?
Answer:
Use the procedure SHAddToRecentDocs as shown in the code below.
1 2 // use these pascal procedures or call SHAddToRecentDocs directly3 4 procedure Win95AddToRecentDocs(const Filename: string);
5 begin6 SHAddToRecentDocs(SHARD_PATH, @Filename[1]);
7 end;
8 9 procedure Win95ClearRecentDocs;
10 begin11 SHAddToRecentDocs(SHARD_PATH, nil);
12 end;