|
Opening a Rooted Explorer
To open a rooted Explorer for the namespace you have created, you must provide
a way to start the new instance of EXPLORER.EXE, using the /root switch on the
command line. There are several ways to accomplish this. For example, you can
either call ShellExecute directly, or you can create a shortcut file that contains one of the
following as a command line:
- If the junction point is an item under the desktop:
explorer.exe /e,/root,::{CLSID of item}
- If the junction point is an item under My Computer:
explorer.exe /e,/root,,::{20D04FE0 - 3AEA - 1069 - A2D8 - 08002B30309D}
\::{CLSID of item}}
- If the junction point is a file system folder:
explorer.exe /e,/root, [path to a junction point]
When the Explorer is opened using the /root::{CLSID} option, it sets the junction point object as the root of hierarchy and calls
its IShellFolder.
When the user opens a junction point object or one of its subfolders, the
Explorer lets it create a view object by calling IShellFolder::CreateViewObject and requesting an IShellView interface. The Explorer then calls IShellView::CreateViewWindow to allow it to create the view window of its folder. One of the parameters
passed is a pointer to the IShellBrowser interface which allows the extension to communicate with the Explorer. The
view object is able to add menu items to the menu bar, add toolbar buttons,
display status information on the status bar, and/or process shortcut keys.
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|