ITypeLib::IsName

HRESULT IsName( 
  OLECHAR FAR*  szNameBuf,  
  unsigned long  lHashVal,  
  BOOL  pfName              
);
 

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

Parameter

szNameBuf
The string to test. If IsName() is successful, szNameBuf is modified to match the case (capitalization) found in the type library.
lHashVal
The hash value of szNameBuf.
pfName
On return, set to True if szNameBuf was found in the type library; otherwise False.

Return Value

The return value obtained from the returned HRESULT is one of the following:

Return value Meaning
S_OK Success.
E_OUTOFMEMORY Out of memory.
E_INVALIDARG One or more of the arguments is invalid.
TYPE_E_IOERROR The function could not read from the file.
TYPE_E_INVDATAREAD Invalid data.
TYPE_E_UNSUPFORMAT The type library has an older format.
TYPE_E_INVALIDSTATE The type library could not be opened.