IShellDispatch2 object

January 7, 2021 · View on GitHub

Extends the IShellDispatch object with a variety of new functionality.

Note


IShellDispatch2 is implemented and accessed through the Shell object.

 

Members

The IShellDispatch2 object has these types of members:

Methods

The IShellDispatch2 object has these methods.

MethodDescription
CanStartStopServiceDetermines if the current user can start and stop the named service.
FindPrinterDisplays the Find Printer dialog box.
GetSystemInformationRetrieves system information.
IsRestrictedRetrieves a group's restriction setting from the registry.
IsServiceRunningReturns a value that indicates whether a particular service is running.
ServiceStartStarts a named service.
ServiceStopStops a named service.
ShellExecutePerforms a specified operation on a specified file.
ShowBrowserBarDisplays a browser bar.

 

Remarks

For a discussion of Windows services, see the Services documentation.

Requirements

RequirementValue
Minimum supported client
Windows 2000 Professional, Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Shldisp.h
IDL
Shldisp.idl
DLL
Shell32.dll (version 5.0 or later)

See also

IDispatch

Shell Object

IShellDispatch