CoSuspendClassObjects function (combaseapi.h)

Prevents any new activation requests from the SCM on all class objects registered within the process.

Syntax

HRESULT CoSuspendClassObjects();

Return value

This function returns S_OK to indicate that the activation of class objects was successfully suspended.

Remarks

CoSuspendClassObjects prevents any new activation requests from the SCM on all class objects registered within the process. Even though a process may call this function, the process still must call the CoRevokeClassObject function for each CLSID it has registered, in the apartment it registered in. Applications typically do not need to call this function, which is generally only called internally by OLE when used in conjunction with the CoReleaseServerProcess function.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header combaseapi.h (include Objbase.h)
Library Ole32.lib
DLL Ole32.dll

See also

CoReleaseServerProcess

CoRevokeClassObject

Out-of-Process Server Implementation Helpers