2010. augusztus 11., szerda

Access the recent documents


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.

// use these pascal procedures or call SHAddToRecentDocs directly

procedure Win95AddToRecentDocs(const Filename: string);
begin
  SHAddToRecentDocs(SHARD_PATH, @Filename[1]);
end;

procedure Win95ClearRecentDocs;
begin
  SHAddToRecentDocs(SHARD_PATH, nil);
end;

Nincsenek megjegyzések:

Megjegyzés küldése