¿Le resultó útil esta página?
Sus comentarios sobre este contenido son muy importantes. Háganos saber su opinión.
¿Tiene comentarios adicionales?
Caracteres restantes: 1500
DECLARE_REGISTRY
Collapse the table of content
Expand the table of content

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  
)

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.

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.

Adiciones de comunidad

AGREGAR
Mostrar:
© 2015 Microsoft