DECLARE_REGISTRY( class, pid, vpid, nid, flags )
Parameters
class
[in] Included for backward compatibility.
pid
[in] An LPCTSTR that is a version-specific program identifier.
vpid
[in] An LPCTSTR that is a version-independent program identifier.
nid
[in] A UINT that is an index of the resource string in the registry to use as the description of the program.
flags
[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.
Remarks
Enters the standard class registration into the system registry or removes it from the system registry. The standard registration consists of the CLSID, the program ID, the version-independent program ID, description string, and the thread model.
When you create an object or control using the ATL Object 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.
ATL Macros and Global Functions
See Also