Windows Dev Center

IDefaultFolderMenuInitialize::Initialize method

Syntax


HRESULT Initialize(
  [in]                 HWND                  hwnd,
  [in, optional]       IContextMenuCB        *pcmcb,
  [in, optional]       PCIDLIST_ABSOLUTE     pidlFolder,
  [in, optional]       IShellFolder          *psf,
  [in]                 UINT                  cidl,
  [in]                 PCUITEMID_CHILD_ARRAY apidl,
  [in, optional]       IUnknown              *punkAssociation,
  [in]                 UINT                  cKeys,
  [in, optional] const HKEY                  *aKeys
);

Parameters

hwnd [in]
pcmcb [in, optional]
pidlFolder [in, optional]
psf [in, optional]
cidl [in]
apidl [in]
punkAssociation [in, optional]
cKeys [in]
aKeys [in, optional]

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

See also

IDefaultFolderMenuInitialize

 

 

Community Additions

ADD
Show:
© 2015 Microsoft