IStringTable::GetStringLength method (mmc.h)

The IStringTable::GetStringLength method enables a snap-in to determine the length of a string in the snap-in's string table.

Syntax

HRESULT GetStringLength(
  [in]  MMC_STRING_ID StringID,
  [out] ULONG         *pcchString
);

Parameters

[in] StringID

The identifier for the string whose length is being retrieved.

[out] pcchString

The number of characters in the specified string in the snap-in's string table, not including the terminator.

Return value

This method can return one of these values.

Remarks

Use this method to determine the size of the buffer required for IStringTable::GetString.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header mmc.h
DLL Mmcndmgr.dll

See also

IStringTable

IStringTable::GetString