Export (0) Print
Expand All
COM
Expand Minimize
This topic has not yet been rated - Rate this topic

CoRevokeInitializeSpy function

Revokes a registered implementation of the IInitializeSpy interface.

Syntax


HRESULT CoRevokeInitializeSpy(
  _In_  ULARGE_INTEGER uliCookie
);

Parameters

uliCookie [in]

A ULARGE_INTEGER cookie identifying the registration.

Return value

This function can return the standard return value E_INVALIDARG, as well as S_OK to indicate success.

Remarks

CoRevokeInitializeSpy can only revoke cookies issued by previous calls to CoRegisterInitializeSpy that were executed on the current thread. Using a cookie from another thread, or one that corresponds to an already revoked registration, will return E_INVALIDARG.

It is unpredictable whether a call to CoRevokeInitializeSpy from within an IInitializeSpy method call will have an effect during the current top-level (non-nested) call to CoInitializeEx or CoUninitialize. The revocation will always have an effect after the current top-level call to CoInitializeEx or CoUninitialize returns.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Objbase.h

Library

Ole32.lib

DLL

Ole32.dll

See also

CoRegisterInitializeSpy
IInitializeSpy

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.