RemoteServerName

A server may install the RemoteServerName named-value on client machines to configure the client to request the object be run at a particular machine whenever an activation function is called for which a COSERVERINFO structure is not specified.

Registry Entry

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\APPID\
                                    AppID_value}\RemoteServerName = server_name

Remarks

As described in the documentation for the CLSCTXV8M0PK enumeration and the COSERVERINFOXK3RZ2 structure, one of the parameters of the distributed COM activation is a pointer to a COSERVERINFO structure. When this value is not NULL, the information in the COSERVERINFO structure  overrides the setting of the RemoteServerName key for the function call.

RemoteServerName allows simple configuration management of client applications - they may be written without hard-coded server names, and can be configured by modifying the RemoteServerName registry values of the classes of objects they use.

See Also

CLSCTX, COSERVERINFO, CoCreateInstanceEx, CoGetInstanceFromFile, CoGetInstanceFromIStorage, Registering COM Servers