System.Win.ComServ.TComServer.StartMode

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property StartMode: TStartMode read FStartMode;

C++

__property TStartMode StartMode = {read=FStartMode, nodefault};

Properties

Type Visibility Source Unit Parent
property public
System.Win.ComServ.pas
System.Win.ComServ.hpp
System.Win.ComServ TComServer

Description

Indicates why the COM server was started.

StartMode indicates the reason a COM server was started. It can be started as a stand-alone application, as an interactive application, as an embedded object, or for registration or unregistration with the system Registry.

TStartMode is the type of the StartMode property, indicating the different reasons why an OLE automation server can be started.

The following table explains each of the possible start-mode values and the command-line switch that corresponds to each.



Start mode Switch Meaning

smAutomation

embedding

The application was started by Windows in response to a request from an automation controller.

smRegServer

regserver

The application was started only to add the server to the system registry.

smStandalone

---

The user started the application as a stand-alone, interactive application.

smUnregServer

unregserver

The application was started only to remove the server from the system registry.



See Also