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 |
|
|
Library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 3/7/2012