Windows Toolkit - actxGetRunningServer


: h = actxGetRunningServer (progid)

Get a running COM server using the progid identifier.

Returns h, a handle to the default interface of the COM server.

If the server is not already running the function will return an error.

Example:

 
 # Get the COM server running Microsoft Excel (If running)
 app = actxGetRunningServer ('Excel.Application');
 # list the fields
 f = fieldnames(app)
 
 

See also: actxserver.