다음을 통해 공유


CComModule::RegisterClassObjects

As of ATL 7.0, CComModule is obsolete: see ATL Module Classes for more details.

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

Parameters

  • dwClsContext
    [in] 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. For a description of these values, see CLSCTX in the Windows SDK.

  • dwFlags
    [in] Determines the connection types to the class object. Possible values are REGCLS_SINGLEUSE, REGCLS_MULTIPLEUSE, or REGCLS_MULTI_SEPARATE. For a description of these values, see REGCLS in the Windows SDK.

Return Value

A standard HRESULT value.

Remarks

Registers an EXE class object with OLE so other applications can connect to it. This methodis only available to EXEs.

Requirements

Header: atlbase.h

See Also

Reference

CComModule Class

CComModule::RevokeClassObjects

Other Resources

CComModule Members