v1.2
This commit is contained in:
25
FSI.BT.Tools/Global/DllImport/SHGetDesktopFolder.cs
Normal file
25
FSI.BT.Tools/Global/DllImport/SHGetDesktopFolder.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
// <copyright file="SHGetDesktopFolder.cs" company="PlaceholderCompany">
|
||||
// Copyright (c) PlaceholderCompany. All rights reserved.
|
||||
// </copyright>
|
||||
|
||||
namespace FSI.BT.Tools.Global.DllImports
|
||||
{
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
/// <summary>
|
||||
/// wraps the methodcalls to native windows dll's.
|
||||
/// </summary>
|
||||
public static partial class NativeMethods
|
||||
{
|
||||
public static int Shell32SHGetDesktopFolder(out IntPtr ppshf)
|
||||
{
|
||||
return SHGetDesktopFolder(out ppshf);
|
||||
}
|
||||
|
||||
// Retrieves the IShellFolder interface for the desktop folder, which is the root of the Shell's namespace.
|
||||
[DllImport("shell32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
|
||||
[DefaultDllImportSearchPaths(DllImportSearchPath.UserDirectories)]
|
||||
private static extern int SHGetDesktopFolder(out IntPtr ppshf);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user