Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
4/8/2010

The Initializemethod initializes the specified plug-in by using the parameters and default information specified in an XML file.

Syntax

HRESULT Initialize (
  HPLUGIN 
hPlugin,
  IXMLDOMNode * 
pnodeParams,
  IXMLDOMNode * 
pnodeDefault
);

Parameters

hPlugin

[in] Handle to the plug-in to be initialized.

pnodeParams

[in] Parameters that specify the form and function of the plug-in; these parameters are defined in an XML file.

pnodeDefault

[in] Default values common to all plug-ins on the device; these values are defined in a block at the top of an XML file.

Return Value

This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:

S_OK

Indicates success.

Remarks

Before Initializeis called, the IObjectWithSite::SetSitemethod must be used to instantiate the site within which the plug-in is to be contained.

Requirements

Header home.h
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Smartphone 2002 and later

See Also

Reference

IHomePlugin