Export (0) Print
Expand All

IInitializeSpy interface

Performs initialization or cleanup when entering or exiting a COM apartment.

When to implement

Implement this interface when you want to define code to be called whenever CoInitializeEx (or CoInitialize) or CoUninitialize is called.

When to use

Use this interface when you need to do initialization or cleanup when entering or exiting a COM apartment.

Use CoRegisterInitializeSpy to register the particular implementation of the IInitializeSpy interface to be used.

Members

The IInitializeSpy interface inherits from the IUnknown interface. IInitializeSpy also has these types of members:

Methods

The IInitializeSpy interface has these methods.

MethodDescription
PostInitialize

Performs initialization steps required after calling the CoInitializeEx function.

PostUninitialize

Performs cleanup steps required after calling the CoUninitialize function.

PreInitialize

Performs initialization steps required before calling the CoInitializeEx function.

PreUninitialize

Performs cleanup steps required before calling the CoUninitialize function.

 

Requirements

Minimum supported client

Windows XP with SP1 [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

ObjIdl.h

IDL

ObjIdl.idl

IID

IID_IInitializeSpy is defined as 00000034-0000-0000-C000-000000000046

See also

CoRegisterInitializeSpy

 

 

Community Additions

ADD
Show:
© 2014 Microsoft