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 ) ;

Subscribe / Share

It's very calm over here, why not leave a comment?

Leave a Reply




Categories

Powered by Yahoo! Answers