ShlwApiSHGetThreadRef Method

Retrieves the per-thread object reference set by SHSetThreadRef(Object).

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("ShlwApi.dll", ExactSpelling = true)]
public static HResult SHGetThreadRef(
	out Object refPunk
)

Parameters

refPunk  Object
The address of a pointer that, when this function returns successfully, points to the object whose reference is stored.

Your application is responsible for freeing this resource when it is no longer needed..

Return Value

HResult
Returns S_OK if the object reference exists, or E_NOINTERFACE otherwise.

Remarks

See Also