Remote Objects: AtBits Key
As described in the last section, a prerequisite to server implementation is generating a CLSID for that server. This CLSID is registered in the system registry and referenced in the server code. The full path name of the server .DLL or .EXE is registered in association with the CLSID.
The remote server can actually run either on the computer where the server code is stored or on the same computer as its connected client (assuming the class is registered on the remote computer and there is a compatible binary image available). Servers that use the default security provided with the system must run where its client is running. To indicate the mode of operation, the Microsoft Windows implementation of COM includes the subkey AtBits that is registered along with the server's CLSID. To register a server to run where the persistent state of the object is stored, set AtBits to Y. To register the server to run where the client is running, either set it to N or leave the attribute out altogether. The default is to run the server where the client is running. The registration example below shows how the TextRender object would allow itself to be activated remotely.
CLSID
{12345678-ABCD-1234-5678-9ABCDEF00000} = TextRender Example
LocalServer = c:\objects\textrend.exe
AtBits = Y