Send Feedback

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


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


  • 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 Values

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

  • S_OK
    Indicates success.


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


Pocket PC: None
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: home.h

See Also


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.