Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

DECLARE_REGISTRY

Enters the standard class registration into the system registry or removes it from the system registry.

DECLARE_REGISTRY( 
   class, 
   pid, 
   vpid, 
   nid, 
   flags  
)
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.

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.

Header: atlcom.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.