Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (36 sloc) 1.27 KB
using System;
using System.Runtime.InteropServices;
using System.Text;
namespace wit
public class Helpers
#region Win32 Imports
internal static extern Boolean SetCurrentDirectory([MarshalAs(UnmanagedType.LPTStr)]string lpPathName);
internal static extern uint GetFileAttributes([MarshalAs(UnmanagedType.LPTStr)]string lpPathName);
internal const uint FILE_ATTRIBUTE_DIRECTORY = 0x00000010;
internal static extern Boolean CreateProcess(
string lpApplicationName,
string lpCommandLine,
uint lpProcessAttributes,
uint lpThreadAttributes,
Boolean bInheritHandles,
uint dwCreationFlags,
uint lpEnvironment,
string lpCurrentDirectory,
StartupInfo lpStartupInfo,
ProcessInformation lpProcessInformation);
internal static extern uint DragQueryFile(uint hDrop,uint iFile, StringBuilder buffer, int cch);
internal static extern uint CreatePopupMenu();
internal static extern int MessageBox(int hWnd, string text, string caption, int type);
internal static extern int InsertMenuItem(uint hmenu, uint uposition, uint uflags, ref MENUITEMINFO mii);
Jump to Line
Something went wrong with that request. Please try again.