Export (0) Print
Expand All

ParseGlobalEx method

Parses an HTML string and inserts the results in a markup container.

Syntax


HRESULT retVal = object.ParseGlobalEx(hglobalHTML, dwFlags, pContext, ppContainerResult, pPointerStart, pPointerFinish);

Parameters

hglobalHTML [in]

Type: HGLOBAL

Handle to a NULL-terminated string to parse.

dwFlags [in]

Type: DWORD

Unsigned integer value that specifies the following flag, or zero.

PARSE_ABSOLUTIFYIE40URLS (0x1)

Combines relative URLs with the base URL of the markup container.

pContext [in]

Type: IMarkupContainer

Pointer to an IMarkupContainer interface that provides a context for the parser to look up names if the markup to be inserted contains an element behavior.

ppContainerResult [out]

Type: IMarkupContainer

Address of a pointer to a variable that receives an IMarkupContainer interface pointer for the markup container that receives the result of parsing hglobalHTML.

pPointerStart [in, optional]

Type: IMarkupPointer

Pointer to an IMarkupPointer interface used to indicate the start point of the selection in the source.

pPointerFinish [in, optional]

Type: IMarkupPointer

Pointer to an IMarkupPointer interface used to indicate the end point of the selection in the source.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

A string in CF_HTML format will include two comments in the form <!--StartFragment--> and <!--EndFragment--> that delimit the actual copied selection in the Clipboard string.

See also

Conceptual
HTML Clipboard Format
Other Resources
Memory Management

 

 

Community Additions

ADD
Show:
© 2014 Microsoft