initial checkin of yaulw (locally)
This commit is contained in:
29
Win32/Shell32.cs
Normal file
29
Win32/Shell32.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Yaulw.Win32
|
||||
{
|
||||
/// <summary>
|
||||
/// Shell32.dll Entry Points * http://pinvoke.net/ *
|
||||
/// </summary>
|
||||
public static class Shell32
|
||||
{
|
||||
[DllImport("Shlwapi.dll")]
|
||||
extern public static uint AssocQueryString(Definitions.AssocF flags, Definitions.AssocStr str, string pszAssoc, string pszExtra, [Out] StringBuilder pszOut, [In][Out] ref uint pcchOut);
|
||||
|
||||
[DllImport("shell32.dll")]
|
||||
extern public static IntPtr FindExecutable(string lfFile, string lpDirectory, [Out] StringBuilder lpResult);
|
||||
|
||||
[DllImport("shell32.dll")]
|
||||
extern public static IntPtr ShellExecute(IntPtr hwnd, string lpOperation, string lpFile, string lpParameters, string lpDirectory, int nShowCmd);
|
||||
|
||||
[DllImport("shell32.dll")]
|
||||
extern public static bool ShellExecuteEx(ref Structures.ShellExecuteInfo lpExecInfo);
|
||||
|
||||
[DllImport("shell32.dll")]
|
||||
extern public static long SHGetFolderPath(IntPtr hwndOwner, int nFolder, IntPtr hToken, int dwFlags, [Out] StringBuilder pszPath);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user