Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CoSuspendClassObjects function

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 [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8

Header

Objbase.h

Library

Ole32.lib

DLL

Ole32.dll

See also

CoReleaseServerProcess
CoRevokeClassObject
Out-of-Process Server Implementation Helpers

 

 

Show:
© 2016 Microsoft