mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-06-28 19:10:26 +12:00
18 lines
523 B
C#
18 lines
523 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace SystemTrayMenu.NativeDllImport
|
|
{
|
|
public static partial class NativeMethods
|
|
{
|
|
// Retrieves the IShellFolder interface for the desktop folder, which is the root of the Shell's namespace.
|
|
[DllImport("shell32.dll")]
|
|
private static extern int SHGetDesktopFolder(out IntPtr ppshf);
|
|
|
|
public static int Shell32SHGetDesktopFolder(out IntPtr ppshf)
|
|
{
|
|
return SHGetDesktopFolder(out ppshf);
|
|
}
|
|
}
|
|
}
|