actxGetRunningServer - Get 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, where progid is the programmatic identifier of the Automation server object and h is the handle to the server object's default interface.

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

Remarks

COM functions are available on Microsoft Windows systems only.

Example

h = actxGetRunningServer('matlab.application')

See Also

actxcontrol, actxserver

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS