How the .RGS file works

There is registry information in the .rgs file, and I want to know how the information in the .rgs file is added to the registry?

I have an AAA project and it will generate an AAA.DLL file , and there is an xxx.rgs file that contains registry information and an AAA.DLL file, then it will be deployed to another computer B, so I don’t know how the information about Registy can be added on machine B, do I need the AAA.dll register with regsvr32?

+5
source share
1 answer

Usually, your code calls CComModule::UpdateRegistryFromResource(), which, in turn, transfers control to a special mechanism implemented in ATL that performs the task - analyzes the resource that was created by inserting the .rgs file into the module and editing the registry. ATL comes with sources, so you can just read how it is done.

+6
source

All Articles