Partager via


IShellExtInit::Initialize

4/8/2010

The Initialize method is called when File Explorer is initializing a context menu extension, a property sheet extension, or a non-default drag-and-drop extension.

Syntax

HRESULT Initialize (
  LPCITEMIDLLIST pidlFolder,
  LPDATAOBJECT lpdobj,
  HKEY hkeyProgID
);

Parameters

  • pidlFolder
    [in] In the case of context menu extension or property sheet extension, this specifies the parent folder. In the case of non-default drag-and-drop extension, this specifies the target folder.
  • lpdobj
    [in] In the case of context menu extension or property sheet extension, this specifies the set of items selected in that folder. In the case of non-default drag-and-drop extension, this specifies the items that are dropped.
  • hkeyProgID
    [in] In the case of context menu extension or property sheet extension, this specifies the type of the focused item in the selection. In the case of non-default drag-and-drop extension, this specifies the folder type.

Return Value

This method should return S_OK if it was successful or appropriate errors if not.

Requirements

Header shlobj.h
Windows Embedded CE Windows CE .NET 4.2 and later
Windows Mobile Pocket PC for Windows Mobile 2003 and later

See Also

Reference

IShellExtInit