LHashValOfName macro (oleauto.h)

Computes a hash value for a name.

Syntax

void LHashValOfName(
   lcid,
   szName
);

Parameters

lcid

The LCID for the string.

szName

The string whose hash value is to be computed.

Return value

None

Remarks

This function is equivalent to LHashValOfNameSys. The header file OleAuto.h contains macros that define LHashValOfName as LHashValOfNameSys, with the target operating system (syskind) based on the build preprocessor flags.

LHashValOfName computes a 32-bit hash value for a name that can be passed to ITypeComp::Bind, ITypeComp::BindType, ITypeLib::FindName, or ITypeLib::IsName. The returned hash value is independent of the case of the characters in szName, as long as the language of the name is one of the languages supported by the OLE National Language Specification API. Any two strings that match when a case-insensitive comparison is done using any language produce the same hash value.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header oleauto.h
Library OleAut32.lib
DLL OleAut32.dll