IMarkupServices::ParseGlobal Method

Creates an instance of the element object for the specified tag.

Syntax

HRESULT ParseGlobal(
    HGLOBAL hglobalHTML,
    DWORD dwFlags,
    IMarkupContainer **ppContainerResult,
    IMarkupPointer *pPointerStart,
    IMarkupPointer *pPointerFinish
);

Parameters

  • hglobalHTML
    [in] Value of type HGLOBAL that specifies the NULL-terminated string to parse.
  • dwFlags
    [in] Unsigned integer value that specifies the following flag, or zero.
    • PARSE_ABSOLUTIFYIE40URLS
      Combines relative URLs with the base URL of the markup container.
  • ppContainerResult
    [out] Address of a pointer to an IMarkupContainer interface that returns the results of parsing the contents of a string.
  • pPointerStart
    [in] Pointer to an IMarkupPointer interface used to indicate the start point of the selection in the source.
  • pPointerFinish
    [in] Pointer to an IMarkupPointer interface used to indicate the end point of the selection in the source.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

Only new img and option objects can be created. Before they can be used, new objects must be explicitly added to their respective collections.

The pPointerStart and pPointerFinish parameters are used with CF_HTML to indicate where the selection part of the CF_HTML was in the source.

See Also

IMarkupServices::ParseString, Memory Management