API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IHTMLVIEWER_GETATTRVALUE()

Brew Release
Brew MP 1.0.2
See Also
Description
This function obtains the value of an attribute of an HTML element.
Params
pIHTMLViewer
[]:
Pointer to the IHtmlViewer interface object.
nElemPos
[]:
Location of the element in the document.
pszAttr
[]:
Name of the attribute. A 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.
Interface
  • IHTMLVIEWER
Prototype
  • int32 IHTMLVIEWER_GetAttrValue(
       IHtmlViewer *  pIHTMLViewer,
       int32          nElemPos,
       const char *   pszAttr,
       char *         pchBuf,
       int32          cbBuf
    );
    
Return
  • IHTMLVIEWER_NOTFOUND: The attribute was not found.
    IHTMLVIEWER_BADELEMENT: The nElemPos parameter is invalid.
    IHTMLVIEWER_BADATTR: The pszAttr parameter is not a recognized attribute name. Only recognized attributes are available for query.
    IHTMLVIEWER_NOVALUE: The attribute was specified, but no value was assigned.
    Non-negative number: Corresponds 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
Comments
None