Developer

API Reference

IHTMLViewModel_GetAttrValue()

Brew Release
Brew MP 1.0.2
See Also
- IHTMLViewModel_FindElem
Description
This function obtains the value of an attribute of an element.
Parameters
  • pif
    []:
    Pointer to the IHTMLViewModel interface object.
  • nElem
    []:
    Location of the element in the document
  • pszAttr
    []:
    Name of attribute, zero-terminated ASCII string (case insensitive)
  • pchBuf
    []:
    Pointer to the start of a buffer to hold the result (which is a zero-terminated string)
  • cbBuf
    []:
    Size of the buffer, in bytes
Prototype
   int32 IHTMLViewModel_GetAttrValue(IHTMLViewModel *pif, int32 nElem, const char *pszAttr, char *pchBuf, int32 cbBuf);
Return
   HVM_NOTFOUND, attribute is not found
   
   HVM_BADELEMENT, nElemPos was invalid.
   
   HVM_BADATTR, pszAttr is not a recognized attribute name. Only recognized
   attributes are available for query.
   
   HVM_NOVALUE, attribute was specified, but no value was assigned. 
   
   Non-negative number corresponding to the length of the string copied into pchBuf.
   
   A value larger than cbBuf may be returned, but only cbBuf bytes are written to the
   buffer in that case.
Side Effect
None
Comment
None
  • Follow