Export (0) Print
Expand All
COM
Expand Minimize
0 out of 1 rated this helpful - Rate this topic

CoGetCurrentLogicalThreadId function

Returns the logical thread identifier of the current physical thread.

Syntax


HRESULT CoGetCurrentLogicalThreadId(
  _Out_  GUID *pguid
);

Parameters

pguid [out]

A pointer to a GUID that contains the logical thread ID on return.

Return value

This function can return the following values.

Return codeDescription
S_OK

The logical thread ID was retrieved successfully.

E_INVALIDARG

An invalid pointer was passed in for the pguid parameter.

E_OUTOFMEMORY

A memory allocation failed during the operation of the function.

 

Remarks

This function retrieves the identifier of the current logical thread under which this physical thread is operating. The current physical thread takes on the logical thread identifier of any client thread that makes a COM call into this application. Similarly, the logical thread identifier of the current physical thread is used to denote the causality for outgoing COM calls from this physical thread.

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

 

 

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

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.