次の方法で共有


IShellExtInit::Initialize

Send Feedback

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 Values

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

Requirements

Pocket PC: Windows Mobile 2003 and later.
Smartphone: none
OS Versions: Windows CE .NET 4.2 and later.
Header: Declared in shlobj.h.

See Also

IShellExtInit

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.