HOWTO: Invoke the Shell's File Properties Dialog Box

Last reviewed: January 15, 1998
Article ID: Q179377
The information in this article applies to:
  • Microsoft Win32 Application Programming Interface (API) included with: - Microsoft Windows NT 4.0 - Microsoft Windows 95

SUMMARY

You can invoke the shell's file Properties dialog box for a file with the ShellExecuteEx API. In the SHELLEXECUTEINFO structure, set the SEE_MASK_INVOKEIDLIST flag and the "properties" verb as follows:

   SHELLEXECUTEINFO sei;

   ZeroMemory(&sei,sizeof(sei));
   sei.cbSize = sizeof(sei);
   sei.lpFile = szPathOfFileToLaunchPropertiesOf;
   sei.lpVerb = "properties";
   sei.fMask  = SEE_MASK_INVOKEIDLIST;
   ShellExecuteEx(&sei);

MORE INFORMATION

The SEE_MASK_INVOKEIDLIST mask enables ShellExecuteEx to invoke dynamic verbs added by context menu extensions, as well as verbs statically added in the registry under the file class' shell key.

Keywords          : UsrShell
Version           : WINNT:4.0
Platform          : Win95 winnt
Issue type        : kbhowto


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 15, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.