SHGetThreadRef function
Retrieves the per-thread object reference set by SHSetThreadRef.
Syntax
HRESULT SHGetThreadRef( _In_ IUnknown **ppunk );
Parameters
- ppunk [in]
-
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
|
Minimum supported client |
Windows 2000 Professional, Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also