ITypeLib::IsName method (oaidl.h)

Indicates whether a passed-in string contains the name of a type or member described in the library.

Syntax

HRESULT IsName(
  [in, out] LPOLESTR szNameBuf,
  [in]      ULONG    lHashVal,
  [out]     BOOL     *pfName
);

Parameters

[in, out] szNameBuf

The string to test. If this method is successful, szNameBuf is modified to match the case (capitalization) found in the type library.

[in] lHashVal

The hash value of szNameBuf.

[out] pfName

True if szNameBuf was found in the type library; otherwise false.

Return value

This method can return one of these values.

Return code Description
S_OK
Success.
E_INVALIDARG
One or more of the arguments is not valid.
E_OUTOFMEMORY
Insufficient memory to complete the operation.

Requirements

Requirement Value
Target Platform Windows
Header oaidl.h

See also

ITypeLib