How do I display Explorer with a file selected?

后端 未结 4 538
生来不讨喜
生来不讨喜 2021-02-08 17:23

What\'s the API call to display an Explorer window with a specified file selected? Exactly as happens when you click the \"Find Target...\" button in the Properties dialog of a

4条回答
  •  深忆病人
    2021-02-08 18:03

    You need SHOpenFolderAndSelectItems. This question was early discussed here - Programmatically selecting file in explorer
    Dont forget to call CoInitialize before first use of SHOpenFolderAndSelectItems

提交回复
热议问题