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. |
The Initializemethod 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_OKif 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 |