This topic has not yet been rated - Rate this topic

CoSuspendClassObjects function

Applies to: desktop apps | Metro style apps

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

Syntax

HRESULT CoSuspendClassObjects(void);

Parameters

This function has no parameters.

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

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Objbase.h

Library

Ole32.lib

DLL

Ole32.dll

See also

CoReleaseServerProcess
CoRevokeClassObject
Out-of-Process Server Implementation Helpers

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ