Share via


ITypeLib::IsName

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

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

Parameters

  • szNameBuf
    [in, out] Null-terminated string to test. If IsName is successful, szNameBuf is modified to match the case (capitalization) found in the type library.
  • lHashVal
    [in] Hash value of szNameBuf.
  • pfName
    [out] On return, pointer to a Boolean value that is set to TRUE if szNameBuf was found in the type library, or set to FALSE otherwise.

Return Values

The following table shows the return values for this function.

Value Description
S_OK Success.
E_OUTOFMEMORY Out of memory.
E_INVALIDARG One or more of the parameters 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.

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Oaidl.h, Oaidl.idl.
Link Library: Oleaut32.lib, Uuid.lib.

See Also

ITypeLib

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.