Share via


ClassFactory::AddRef Method

Increments the reference count for the current ClassFactory object.

STDMETHOD_(
   ULONG,
   AddRef
)();

Return Value

S_OK if successful; otherwise, an HRESULT that describes the failure.

Requirements

Header: module.h

Namespace: Microsoft::WRL

See Also

Reference

ClassFactory Class