Freigeben über


OBJECT_ENTRY_NON_CREATEABLE_EX_AUTO

Allows you to specify that the object should be registered and initialized, but it should not be externally creatable via CoCreateInstance.

OBJECT_ENTRY_NON_CREATEABLE_EX_AUTO( 
   clsid, 
   class  
)

Parameters

  • clsid
    [in] The CLSID of a COM class implemented by the C++ class named class.

  • class
    [in] The name of the C++ class implementing the COM class represented by clsid.

Remarks

Object entry macros are placed at global scope in the project to provide support for the registration, initialization, and creation of a class.

OBJECT_ENTRY_NON_CREATEABLE_EX_AUTO allows you to specify that an object should be registered and initialized (see OBJECT_ENTRY_AUTO for more information), but it should not be creatable via CoCreateInstance.

Requirements

Header: atlcom.h

See Also

Reference

OBJECT_ENTRY_AUTO

Other Resources

Object Map Macros

ATL Macros

OBJECT_ENTRY

OBJECT_ENTRY_NON_CREATEABLE