Display Explorer's Right-Click Menu For a Given File

Category:
Files and Directories
Type:
Snippets
Difficulty:
Intermediate
Author:
Anonymous

Version Compatibility: Visual Basic 6

More information:
If you've ever wanted to display the Explorer right-click context menu in your VB app, then this is the code for you. You make one dll call and pass it the full path to a file and the context menu for that file type will be displayed.

The .dll was written in Visual C++ and the C code is included in the package. Also included is a VB project that demonstates how to call the .dll.


Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download expmnu.zip