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 |
|
|
IDL |
|
|
DLL |
|
Show: