Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

US Job listings




   Misc

   Amazon

   Links

    


Clear recently viewed documents
 

 

 

Description

This example clears the recently viewed documents that appear in the start menu.

Code

#include <windows.h>
#include <shlobj.h>
#define WIN32_LEAN_AND_MEAN


int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR szCmdLine, int iCmdShow)
{

if(MessageBox(NULL, "Press ok to empty the Recent documents folder.", "recycler", MB_YESNO | MB_ICONINFORMATION) != IDYES)
return FALSE;

SHAddToRecentDocs(SHARD_PATH, NULL);

return FALSE ;
}

Information

tested using Visual C++ 6

 

 

 

 

 

Download

emptyrecent.txt


 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
display start menu programs(VBScript)
Do While loop(PHP)
Add to favorites(Javascript)
scrolling message in a text box(Javascript)
See What URL is being displayed(VB)
Get stock quotes(PHP)
Enum example(C++)
GIF creation with PHP(php)

    




Copyright © 2003 by programmershelp.co.uk