SHGetThreadRef function (shlwapi.h)
Retrieves the per-thread object reference set by SHSetThreadRef.
Syntax
LWSTDAPI SHGetThreadRef(
[in] IUnknown **ppunk
);
Parameters
[in] ppunk
Type: IUnknown**
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
Type: HRESULT
Returns S_OK if the object reference exists, or E_NOINTERFACE otherwise.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional, Windows XP [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | shlwapi.h |
Library | Shlwapi.lib |
DLL | Shlwapi.dll (version 5.0 or later); ShCore.dll |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for