2020-03-28 08:43:16 +13:00
|
|
|
|
using System;
|
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
2020-03-30 06:26:45 +13:00
|
|
|
|
namespace SystemTrayMenu.DllImports
|
2020-03-28 08:43:16 +13:00
|
|
|
|
{
|
|
|
|
|
public static partial class NativeMethods
|
|
|
|
|
{
|
|
|
|
|
[DllImport("shfolder.dll", CharSet = CharSet.Unicode)]
|
|
|
|
|
private static extern int SHGetFolderPath(IntPtr hwndOwner, int nFolder, IntPtr hToken, int dwFlags, StringBuilder lpszPath);
|
|
|
|
|
public static int ShfolderSHGetFolderPath(IntPtr hwndOwner, int nFolder, IntPtr hToken, int dwFlags, StringBuilder lpszPath)
|
|
|
|
|
{
|
|
|
|
|
return SHGetFolderPath(hwndOwner, nFolder, hToken, dwFlags, lpszPath);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|