2using System.Runtime.InteropServices;
9 [DllImport(
"kernel32.dll", CharSet = CharSet.Auto)]
12 [DllImport(
"kernel32.dll")]
15 [DllImport(
"user32.dll", SetLastError =
true)]
18 [DllImport(
"user32.dll", SetLastError =
true)]
21 [DllImport(
"user32.dll")]
22 public static extern IntPtr
CallNextHookEx(IntPtr hhk,
int nCode, IntPtr wParam, ref
MSG lParam);
24 [DllImport(
"shell32.dll")]
27 [DllImport(
"shell32.dll", CharSet = CharSet.Unicode)]
28 public static extern uint
DragQueryFile(IntPtr hDrop, uint iFile, StringBuilder lpszFile, uint cch);
30 [DllImport(
"shell32.dll")]
33 [DllImport(
"shell32.dll")]
static IntPtr SetWindowsHookEx(HookType hookType, HookProc lpfn, IntPtr hMod, uint dwThreadId)
static uint DragQueryFile(IntPtr hDrop, uint iFile, StringBuilder lpszFile, uint cch)
static void DragQueryPoint(IntPtr hDrop, out POINT pos)
static uint GetCurrentThreadId()
static void DragAcceptFiles(IntPtr hwnd, bool fAccept)
static IntPtr GetModuleHandle(string lpModuleName)
static bool UnhookWindowsHookEx(IntPtr hhk)
static void DragFinish(IntPtr hDrop)
static IntPtr CallNextHookEx(IntPtr hhk, int nCode, IntPtr wParam, ref MSG lParam)
delegate IntPtr HookProc(int code, IntPtr wParam, ref MSG lParam)