Macro
In-process Automation servers must call this macro at top-level in order to set up some static initializations needed for DLL initialization and registration.
in-process-automation-server #key typeinfo title
class-ID prog-ID class
args versioned-prog-ID
versioned-title
<disp-type-info> or <coclass-type-info>. Required.
<string>. Default value: see Description.
<REFGUID> or <string>. Default value: see Description.
<string>. Default value: see Description.
<sequence>. Default value: see Description.
An instance of <string>. Default value: see Description.
<string>. Default value: see Description.
Note: Not applicable to local servers.
In-process Automation servers must call this macro at top-level in order to set up some static initializations needed for DLL initialization and registration. (It is not an executable expression.)
The macro expansion provides definitions for the Windows functions DllRegisterServer, DllUnregisterServer, DllGetClassObject, and DllCanUnloadNow. Without this, the container application will be unable to connect to the server.
This macro cannot be used more than once in a DLL library. The arguments are:
typeinfo: <disp-type-info> or <coclass-type-info>. Required.
title:
typeinfo: parameter contains a documentation string, probably provided by a keyword when creating the typeinfo. The value of title: defaults to that string.
prog-id:register-automation-server. Required.
class-id:
class:<simple-dispatch>.
args:<sequence> of arguments to be passed to make when instantiating the class. Defaults from the typeinfo if it is a coclass, otherwise, defaults to an empty sequence.
versioned-prog-id: Optional string that is recommended to be the same as the Prog ID with a version identification appended.
versioned-title: Optional title string that includes the program's version number.