GetIcon method of the Win32_TSGetIcon class

Returns the contents of the specified icon.

Syntax

uint32 GetIcon(
  [in]  string FilePath,
  [in]  sint32 Index,
  [out] uint8  IconContents[]
);

Parameters

FilePath [in]

Specifies the path to the file that contains the icon

Index [in]

Specifies the index of the icon in the file.

IconContents [out]

On successful completion contains the contents of the icon.

Requirements

Requirement Value
Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\CIMv2\TerminalServices
MOF
TsAllow.mof
DLL
TsPubWmi.dll

See also

Win32_TSGetIcon