This method is called from the generic server at startup for normal operation or for registration. It provides server registry information for this application required for DCOM registration.
Each server needs to have unique registration definions. Unique CLSIDs can be generated with the Visual Studio GuidGen utility.
The sample implementation initializes default values and tries to read the configuration definitions from the file HDANSrv.exe.config. The config file reads can be deleted to prevent the definition from being changed without a recompilation.
Visual Basic (Declaration) | |
---|---|
Public Function GetServerRegistryDef() As SrvRegDef |
C# | |
---|---|
public SrvRegDef GetServerRegistryDef() |
Return Value
Definition structureTarget Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows 7, Windows Server 2008 family