Skip to content

Latest commit

 

History

History
85 lines (64 loc) · 3.83 KB

nf-objidl-iinitializespy-postinitialize.md

File metadata and controls

85 lines (64 loc) · 3.83 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:objidl.IInitializeSpy.PostInitialize
IInitializeSpy::PostInitialize (objidl.h)
Performs initialization steps required after calling the CoInitializeEx function.
IInitializeSpy interface [COM]
PostInitialize method
IInitializeSpy.PostInitialize
IInitializeSpy::PostInitialize
PostInitialize
PostInitialize method [COM]
PostInitialize method [COM]
IInitializeSpy interface
_com_iinitializespy_postinitialize
com.iinitializespy_postinitialize
objidl/IInitializeSpy::PostInitialize
com\iinitializespy_postinitialize.htm
com
bdef4089-93e6-4845-8dcc-1150d7a0d033
12/05/2018
IInitializeSpy interface [COM],PostInitialize method, IInitializeSpy.PostInitialize, IInitializeSpy::PostInitialize, PostInitialize, PostInitialize method [COM], PostInitialize method [COM],IInitializeSpy interface, _com_iinitializespy_postinitialize, com.iinitializespy_postinitialize, objidl/IInitializeSpy::PostInitialize
objidl.h
Windows
Windows XP with SP1 [desktop apps only]
Windows Server 2003 [desktop apps only]
ObjIdl.idl
Windows
19H1
IInitializeSpy::PostInitialize
objidl/IInitializeSpy::PostInitialize
c++
APIRef
kbSyntax
COM
ObjIdl.h
IInitializeSpy.PostInitialize

IInitializeSpy::PostInitialize

-description

Performs initialization steps required after calling the CoInitializeEx function.

-parameters

-param hrCoInit [in]

The value returned by CoInitializeEx.

-param dwCoInit [in]

The apartment type passed to CoInitializeEx, specified as a member of the COINIT enumeration.

-param dwNewThreadAptRefs [in]

The number of times CoInitializeEx has been called on this thread.

-returns

This method returns the value that it intends the CoInitializeEx call to return to its caller. For more information, see the Remarks section.

-remarks

The return value from PostInitialize is intended to be the returned HRESULT from the call to CoInitializeEx. This is always the case for a single active registration on this thread.

For cases where there are multiple registrations active on this thread, the returned HRESULT is arrived at by chaining of the various PostInitialize methods as follows: The COM determined HRESULT will be passed as the hrCoInit parameter to the first PostInitialize method called. The HRESULT from that PostInitialize call will be passed as the hrCoInit parameter to the next PostInitialize call. This chaining continues leading to the HRESULT from the last PostInitialize call being returned as the HRESULT from the call to CoInitializeEx.

-see-also

CoInitializeEx

IInitializeSpy