mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-10-01 01:27:33 +13:00
17 lines
518 B
C#
17 lines
518 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace SystemTrayMenu.DllImports
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
}
|