Partilhar via


DOCHOSTUIINFO structure

Used by the IDocHostUIHandler::GetHostInfo method to allow MSHTML to retrieve information about the host's UI requirements.

Syntax

typedef struct _DOCHOSTUIINFO {
  unsigned long cbSize;
  DWORD         dwFlags;
  DWORD         dwDoubleClick;
  OLECHAR       *pchHostCss;
  OLECHAR       *pchHostNS;
} DOCHOSTUIINFO;

Members

  • cbSize
    unsigned long containing the size of this structure, in bytes.

  • dwFlags
    One or more of the DOCHOSTUIFLAG values that specify the UI capabilities of the host.

  • dwDoubleClick
    One of the DOCHOSTUIDBLCLK values that specify the operation that should take place in response to a double-click.

  • pchHostCss
    A pointer to a set of CSS rules sent down by the host. These CSS rules affect the page that contains them.

  • pchHostNS
    A pointer to a semicolon-delimited namespace list. This list allows the host to supply a namespace declaration for custom tags on the page.

Remarks

The IDocHostUIHandler::GetHostInfo method allocates memory for pchHostCss and pchHostNS with CoTaskMemAlloc. You must free this memory with CoTaskMemFree when it is no longer needed. These pointers must be NULL before calling IDocHostUIHandler::GetHostInfo.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mshtmhst.h

IDL

Mshtmhst.idl