Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IStringTable::GetStringLength method

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

StringID [in]

The identifier for the string whose length is being retrieved.

pcchString [out]

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.

S_OK

The specified string length was successfully determined.

E_INVALIDARG

pcchString points to an invalid memory location.

E_FAIL

The string ID is invalid

Remarks

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

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Mmc.h

DLL

Mmcndmgr.dll

See also

IStringTable
IStringTable::GetString

 

 

Show: