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

 

 

Send comments about this topic to Microsoft

Build date: 10/27/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.