|
|
|
Shell Object |
|
PROGID |
"Shell.Application.1" |
|
CLSID_Shell |
{13709620-C279-11CE-A49E-444553540000} |
|
CLSID_ShellDispatchInProc |
{0A89A860-D7B1-11CE-8350-444553540000} |
|
IID_IShellDispatch |
{D8F015C0-C278-11CE-A49E-444553540000} |
|
IID_IShellDispatch2 |
{A4C6892C-3BA9-11D2-9DEA-00C04FB16162} |
|
IID_IShellDIspatch3 |
{177160CA-BB5A-411C-841D-BD38FACDEAA0} |
|
IID_IShellDispatch4 |
{EFD84B2D-4BCF-4298-BE25-EB542A59FBDA} |
|
The Shell object represents the objects in the Shell. Methods are provided to control the Shell and to execute commands within the Shell. There are also methods to obtain other Shell-related objects.
|
|
Methods in VTable order |
|
|
IUnknown Methods |
Description |
|
QueryInterface |
Returns pointers to supported interfaces. |
|
AddRef |
Increments reference count. |
|
Release |
Decrements reference count. |
|
IDispatch Methods |
Description |
|
GetTypeInfoCount |
Retrieves the number of type information interfaces that an object provides (either 0 or 1). |
|
GetTypeInfo |
Gets the type information for an object. |
|
GetIDsOfNames |
Maps a single member and an optional set of argument names to a corresponding set of integer DISPIDs. |
|
Invoke |
Provides access to properties and methods exposed by an object. |
|
IShellDispatch Methods and Properties |
Description |
|
Application |
Contains the object's Application object. |
|
Parent |
Contains the object's parent object. |
|
NameSpace |
Creates and returns a Folder object for the specified folder. |
|
BrowseForFolder |
Creates a dialog box that enables the user to select a folder and then returns the selected folder's Folder object. |
|
Windows |
Creates and returns a ShellWindows object. This object represents a collection of all of the open windows that belong to the Shell. |
|
Open |
Opens the specified folder. |
|
Explore |
Opens a specified folder in a Microsoft Windows Explorer window. |
|
MinimizeAll |
Minimizes all of the windows on the desktop. This method has the same effect as right-clicking the taskbar and selecting Minimize All Windows on older systems or clicking the Show Desktop icon in the Quick Launch area of the taskbar in Windows 2000 or Windows XP. |
|
UndoMinimizeAll |
Restores all of the windows on the desktop to the same state they were in before the last MinimizeAll command. This method has the same effect as right-clicking the taskbar and selecting Undo Minimize All Windows on older systems or a second clicking of the Show Desktop icon in the Quick Launch area of the taskbar in Windows 2000 or Windows XP. |
|
FileRun |
Displays the Run dialog to the user. This method has the same effect as clicking the Start menu and selecting Run. |
|
CascadeWindows |
Cascades all of the windows on the desktop. This method has the same effect as right-clicking the taskbar and selecting Cascade Windows. |
|
TileVertically |
Tiles all of the windows on the desktop vertically. This method has the same effect as right-clicking the taskbar and selecting Tile Windows Vertically. |
|
TileHorizontally |
Tiles all of the windows on the desktop horizontally. This method has the same effect as right-clicking the taskbar and selecting Tile Windows Horizontally. |
|
ShutdownWindows |
Displays the Shut Down Windows dialog box. This is the same as clicking the Start menu and selecting Shut Down. |
|
Suspend |
Not currently implemented. |
|
EjectPC |
Ejects the computer from its docking station. This is the same as clicking the Start menu and selecting Eject PC, if your computer supports this command. |
|
SetTime |
Displays the Date and Time Properties dialog box. This method has the same effect as right-clicking the clock in the taskbar status area and selecting Adjust Date/Time. |
|
TrayProperties |
Displays the Taskbar and Start Menu Properties dialog box. This method has the same effect as right-clicking the taskbar and selecting Properties. |
|
Help |
Displays the Windows Help and Support Center. This method has same effect as clicking the Start menu and selecting Help and Support. |
|
FindFiles |
Displays the Find: All Files dialog box. This is the same as clicking the Start menu, selecting Find, and then selecting Files or Folders. |
|
FindComputer |
Displays the Search Results - Computers dialog box. The dialog box shows the result of the search for a specified computer. |
|
RefreshMenu |
Refreshes the contents of the Start menu. Used only with systems preceeding Windows XP. |
|
ControlPanelItem |
Runs the specified Control Panel application. If the application is already open, it will activate the running instance. |
|
IShellDispatch2 Methods and Properties |
Description |
|
IsRestricted |
Retrieves the registry's data value for a given group's restriction value. |
|
ShellExecute |
Performs a specified operation on a specified file. |
|
FindPrinter |
Displays the Find Printer dialog box to allow the user to find a printer. |
|
GetSystemInformation |
Retrieves system information. |
|
ServiceStart |
Starts a named service. |
|
ServiceStop |
Stops a named service. |
|
IsServiceRunning |
Returns a value that indicates whether a named service is running. |
|
CanStartStopService |
Determines if the current user can start and stop the named service. |
|
ShowBrowserBar |
Displays a browser bar. |
|
IShellDispatch3 Methods and Properties |
Description |
|
AddToRecent |
Adds an object to the list of recently used documents. |
|
IShellDispatch4 Methods and Properties |
Description |
|
WindowsSecurity |
Displays the Windows Security dialog box. |
|
ToggleDesktop |
Raises and lowers the desktop. |
|
ExplorerPolicy |
Retrieves the value of a Microsoft Internet Explorer policy. |
|
GetSetting |
Retrieves a Shell global setting. |
|
Application |
|
FUNCTION
IShellDispatch_get_Application ( _
|
|
Parent |
|
FUNCTION
IShellDispatch_get_Parent ( _
|
|
NameSpace |
|
FUNCTION
IShellDispatch_NameSpace ( _
|
|
BrowseForFolder |
|
FUNCTION
IShellDispatch_BrowseForFolder ( _
|
|
Windows |
|
FUNCTION
IShellDispatch_Windows ( _
|
|
Open |
|
FUNCTION
IShellDispatch_Open ( _
|
|
Explore |
|
FUNCTION
IShellDispatch_Explore ( _
|
|
MinimizeAll |
|
FUNCTION
IShellDispatch_MinimizeAll ( _
|
|
UndoMinimizeAll |
|
FUNCTION
IShellDispatch_UndoMinimizeAll ( _
|
|
FileRun |
|
FUNCTION
IShellDispatch_FileRun ( _
|
|
CascadeWindows |
|
FUNCTION
IShellDispatch_CascadeWindows ( _
|
|
TileVertically |
|
FUNCTION
IShellDispatch_TileVertically ( _
|
|
TileHorizontally |
|
FUNCTION
IShellDispatch_TileHorizontally ( _
|
|
ShutdownWindows |
|
FUNCTION
IShellDispatch_ShutdownWindows ( _
|
|
Suspend |
|
FUNCTION
IShellDispatch_Suspend ( _
|
|
EjectPC |
|
FUNCTION
IShellDispatch_EjectPC ( _
|
|
SetTime |
|
FUNCTION
IShellDispatch_SetTime ( _
|
|
TrayProperties |
|
FUNCTION
IShellDispatch_TrayProperties ( _
|
|
Help |
|
FUNCTION
IShellDispatch_Help ( _
|
|
FindFiles |
|
FUNCTION
IShellDispatch_FindFiles ( _
|
|
FindComputer |
|
FUNCTION
IShellDispatch_FindComputer ( _
|
|
RefreshMenu |
|
FUNCTION
IShellDispatch_RefreshMenu ( _
|
|
ControlPanelItem |
|
FUNCTION
IShellDispatch_ControlPanelItem ( _
|
|
IsRestricted |
|
FUNCTION
IShellDispatch2_IsRestricted ( _
|
|
ShellExecute |
|
FUNCTION
IShellDispatch2_ShellExecute ( _
|
|
FindPrinter |
|
FUNCTION
IShellDispatch2_FindPrinter ( _
|
|
GetSystemInformation |
|
FUNCTION
IShellDispatch2_GetSystemInformation ( _
|
|
ServiceStart |
|
FUNCTION
IShellDispatch2_ServiceStart ( _
|
|
ServiceStop |
|
FUNCTION
IShellDispatch2_ServiceStop ( _
|
|
IsServiceRunning |
|
FUNCTION
IShellDispatch2_IsServiceRunning ( _
|
|
CanStartStopService |
|
FUNCTION
IShellDispatch2_CanStartStopService ( _
|
|
ShowBrowseBar |
|
FUNCTION
IShellDispatch2_ShowBrowserBar ( _
|
|
AddToRecent |
|
FUNCTION
IShellDispatch3_AddToRecent ( _
|
|
WindowsSecurity |
|
FUNCTION
IShellDispatch4_WindowsSecurity ( _
|
|
ToggleDesktop |
|
FUNCTION
IShellDispatch4_ToggleDesktop ( _
|
|
ExplorerPolicy |
|
FUNCTION
IShellDispatch4_ExplorerPolicy ( _
|
|
GetSetting |
|
FUNCTION
IShellDispatch4_GetSetting ( _
|
Page last updated on Tuesday, 04 April 2006 11:30:12 +0200