Shell32SHGetDesktopFolder Method

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

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Shell32.dll", CharSet = CharSet.Unicode, ExactSpelling = true)]
[SecurityCriticalAttribute]
public static HResult SHGetDesktopFolder(
	out IShellFolder refShellFolder
)

Parameters

refShellFolder  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

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

Remarks

See Also