Displaying standard Properties dialog box

If we right click on a file in Windows Explorer and select Properties from the popup menu it displays a dialog box showing all the properties of that file. We can display the Properties dialog box programmatically. Following code snippet will show Properties dialog box of abc.doc file which is in C drive.

SHELLEXECUTEINFO sh = { 0 } ;

sh.cbSize = sizeof ( sh ) ;

sh.fMask = SEE_MASK_INVOKEIDLIST ;

sh.lpVerb = “properties” ;

sh.lpFile = “C:\\abc.doc” ;

ShellExecuteEx ( &sh ) ;

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>