InstrSession.AttachLongPtr

Syntax

InstrSession.AttachLongPtr( uniqueId, value)

Purpose

Attaches a user-defined pointer-sized integer value to the session. Call the InstrSession.GetLongPtr method to retrieve the value.

Parameters

uniqueId As String

[In] Pass a unique string to use when you retrieve the value. Call the InstrSession.GenerateUniqueID method to obtain a unique string.

value As Variant

[In] Pass the integer value to attach to the session. The type of the variant must match the architecture of the session instance. For 32-bit applications, the variant type must be a 32-bit integer ( VT_I4 or VT_UI4 ). For 64-bit applications, the variant type must be a 64-bit integer ( VT_I8 or VT_UI8 ).

See Also

InstrSession.GenerateUniqueID

InstrSession.GetLongPtr