Expand Minimize
1 out of 3 rated this helpful - Rate this topic

SHGetDesktopFolder function

Retrieves the IShellFolder interface for the desktop folder, which is the root of the Shell's namespace.

Syntax


HRESULT SHGetDesktopFolder(
  _Out_  IShellFolder **ppshf
);

Parameters

ppshf [out]

Type: IShellFolder**

When this method returns, receives an IShellFolder interface pointer for the desktop folder. The calling application is responsible for eventually freeing the interface by calling its IUnknown::Release method.

Return value

Type: HRESULT

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

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Shlobj.h

Library

Shell32.lib

DLL

Shell32.dll (version 4.0 or later)

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

Community Additions

ADD
© 2013 Microsoft. All rights reserved.