Enters the standard class registration into the system registry or removes it from the system registry.
[in] Included for backward compatibility.
[in] An LPCTSTR that is a version-specific program identifier.
[in] An LPCTSTR that is a version-independent program identifier.
[in] A UINT that is an index of the resource string in the registry to use as the description of the program.
[in] A DWORD containing the program's threading model in the registry. Must be one of the following values: THREADFLAGS_APARTMENT, THREADFLAGS_BOTH, or AUTPRXFLAG.
The standard registration consists of the CLSID, program ID, version-independent program ID, description string, and thread model.
When you create an object or control using the ATL Add Class Wizard, the wizard automatically implements script-based registry support and adds the DECLARE_REGISTRY_RESOURCEID macro to your files. If you do not want script-based registry support, you need to replace this macro with DECLARE_REGISTRY. DECLARE_REGISTRY only inserts the five basic keys described above into the registry. You must manually write code to insert other keys into the registry.