Freigeben über


CAtlExeModuleT::RegisterClassObjects

Registers the class object with OLE so other applications can connect to it.

HRESULT RegisterClassObjects(
   DWORD dwClsContext,
   DWORD dwFlags 
) throw( );

Parameters

  • dwClsContext
    Specifies the context in which the class object is to be run. Possible values are CLSCTX_INPROC_SERVER, CLSCTX_INPROC_HANDLER, or CLSCTX_LOCAL_SERVER.

  • dwFlags
    Determines the connection types to the class object. Possible values are REGCLS_SINGLEUSE, REGCLS_MULTIPLEUSE, or REGCLS_MULTI_SEPARATE.

Return Value

Returns S_OK on success, S_FALSE if there were no classes to register, or an error HRESULT on failure.

Requirements

Header: atlbase.h

See Also

Reference

CAtlExeModuleT Class

CLSCTX

REGCLS

CAtlExeModuleT::RevokeClassObjects

Other Resources

CAtlExeModuleT Members