AllAPI Network - The KPD-Team

Allapi Network

 API List

API Resources
 Tips & Tricks
 VB Tutorials
 Error Lookup
Misc Stuff
 VB examples
 VB Tools
 VB Links
 Top Downloads
This Site
 Search Engine
 Contact Form

Donate to

Editing the Windows 95 documents list

Windows 95 maintains a list of the most recently used files that can be accessed quickly using the Start Menu.   Files can be added to the list easily form Visual Basic using the API function SHAddToRecentDocs function.  To add a file to the file list, you must first declare the function in the declarations section of your project.

Declare Sub SHAddToRecentDocs Lib "shell32.dll" _
(ByVal uFlags As Long, ByVal pv As String)                

Now that the function has been declared, the following code can be used to add a file to the list.

Dim NewFile as String
Call SHAddToRecentDocs(2,NewFile)                

It is also possible to clear the list of files by using the following code.

Call SHAddToRecentDocs(2,vbNullString)



Copyright © 1998-2007, The Team - Privacy statement
Did you find a bug on this page? Tell us!
This site is located at