Export (0) Print
Expand All

IPersistFolder2::GetCurFolder method

Gets the ITEMIDLIST for the folder object.

Syntax


HRESULT GetCurFolder(
   LPITEMIDLIST *ppidl
);

Parameters

ppidl

Type: LPITEMIDLIST*

The address of an ITEMIDLIST pointer. This PIDL represents the absolute location of the folder and must be relative to the desktop. This is typically a copy of the PIDL passed to Initialize.

Return value

Type: HRESULT

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

Remarks

If the folder object has not been initialized, this method returns S_FALSE and ppidl is set to NULL.

Requirements

Minimum supported client

Windows 2000 Professional, Windows XP [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

DLL

Shell32.dll (version 4.71 or later)

 

 

Community Additions

ADD
Show:
© 2015 Microsoft