Skip to content

Latest commit

 

History

History
114 lines (79 loc) · 3.12 KB

nf-uxtheme-getthemestream.md

File metadata and controls

114 lines (79 loc) · 3.12 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:uxtheme.GetThemeStream
GetThemeStream function (uxtheme.h)
Retrieves a data stream corresponding to a specified theme, starting from a specified part, state, and property.
GetThemeStream
GetThemeStream function [Windows Controls]
controls.GetThemeStream
controls.inet_GetThemeStream
inet_GetThemeStream
inet_GetThemeStream_cpp
uxtheme/GetThemeStream
controls\GetThemeStream.htm
Controls
VS|Controls|~\controls\userex\functions\getthemestream.htm
12/05/2018
GetThemeStream, GetThemeStream function [Windows Controls], controls.GetThemeStream, controls.inet_GetThemeStream, inet_GetThemeStream, inet_GetThemeStream_cpp, uxtheme/GetThemeStream
uxtheme.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
UxTheme.lib
UxTheme.dll
Windows
19H1
GetThemeStream
uxtheme/GetThemeStream
c++
APIRef
kbSyntax
DllExport
UxTheme.dll
GetThemeStream

GetThemeStream function

-description

Retrieves a data stream corresponding to a specified theme, starting from a specified part, state, and property.

-parameters

-param hTheme [in]

Type: HTHEME

Handle to the theme from which the stream will be retrieved.

-param iPartId [in]

Type: int

Specifies the part to retrieve a stream from. See Parts and States.

-param iStateId [in]

Type: int

Specifies the state of the part.

-param iPropId [in]

Type: int

Specifies the property to retrieve.

-param ppvStream [out]

Type: VOID**

Address of a pointer that receives the stream.

-param pcbStream [out]

Type: DWORD*

Pointer that receives the length, in bytes, of the stream received by ppvStream.

-param hInst [in]

Type: HINSTANCE

If iPropId is TMT_STREAM, this value is NULL. If iPropId is TMT_DISKSTREAM, this value is the HINSTANCE of a loaded styles file.

-returns

Type: HRESULT

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

-remarks

Windows 8: In high contrast mode, the data stream retrieved by this function is not valid after the hTheme theme handle is closed.

The data stream retrieved by this function is not a copy; do not delete or close the data stream after using it.

-see-also

Parts and States