LHashValOfName function
Computes a hash value for a name.
Syntax
ULONG LHashValOfName(
LCID lcid,
const OLECHAR *szName
);
Parameters
- lcid
-
The LCID for the string.
- szName
-
The string whose hash value is to be computed.
Return value
A hash value that represents the passed-in name.
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
|
Minimum supported client |
Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|