Expand Minimize

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.

Windows Phone 8: This API is supported.

Windows Phone 8.1: This API is supported.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Header

Objbase.h

Library

Ole32.lib

DLL

Ole32.dll

See also

CoReleaseServerProcess
CoRevokeClassObject
Out-of-Process Server Implementation Helpers

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.