Skip to Main Content Skip to Search
Product Documentation

actxGetRunningServer - Handle to running instance of Automation server

Syntax

h = actxGetRunningServer('progid')

Description

h = actxGetRunningServer('progid') gets a reference to a running instance of the OLE Automation server. progid is the programmatic identifier of the Automation server object and h is the handle to the default interface of the server object.

The function returns an error if the server specified by progid is not currently running or if the server object is not registered. When multiple instances of the Automation server are running, the operating system controls the behavior of this function.

COM functions are available on Microsoft Windows systems only.

Examples

Get a handle to the MATLAB application:

h = actxGetRunningServer('matlab.application')

See Also

actxcontrol | actxserver

How To

  


Free MATLAB Interactive Kit

Explore how to use MATLAB to make advancements in engineering and science.


Download free kit

Trials Available

Try the latest version of MATLAB and other MathWorks products.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS