2

I am implementing a windows file explorer, which is used to replace the system explorer. At present, I have found a way to replace double-clicking the folder to start my own process, but I don’t know how SHOpenFolderAndSelectItems is implemented when selecting files after opening the folder.

Same other explorer soft can do this funtion,like "Directory Opus" and "xplorer2",how did they do?

SHOpenFolderAndSelectItems for explorer replacement program

Zenk
  • 21
  • 2
  • 1
    As explained in the link, you must call IShellWindows::Register (see also https://jira.reactos.org/browse/CORE-9367) – Simon Mourier Oct 13 '21 at 18:14
  • I used the method in the link and use IShellWindows registered an shellwindow, and it basically works now. But when the opened folder is in the system folder directory such as the desktop or download directory, it cannot be located. Is it because my RegisterPending is used incorrectly? – Zenk Oct 14 '21 at 06:43
  • Other folders can be opened normally and successfully located. – Zenk Oct 14 '21 at 06:45
  • Devil hides in details. Difficult to say w/o a reproducing project. – Simon Mourier Oct 14 '21 at 06:46
  • 1
    I found the problem. it can open the desktop folder, but cannot locate the items on the desktop folder. In fact, as long as the files in the user directory such as "C:\Users\zengqu" or the files under the subfolders cannot be located . – Zenk Oct 14 '21 at 07:44
  • XD,HAHAHA,I found the answer to this question. – Zenk Oct 14 '21 at 08:05
  • answer yourself then, and close this. – Simon Mourier Oct 14 '21 at 16:11

0 Answers0