Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
WinAPI.cs
Go to the documentation of this file.
1using System;
2using System.Runtime.InteropServices;
3using System.Text;
4
5namespace B83.Win32;
6
7public static class WinAPI
8{
9 [DllImport("kernel32.dll", CharSet = CharSet.Auto)]
10 public static extern IntPtr GetModuleHandle(string lpModuleName);
11
12 [DllImport("kernel32.dll")]
13 public static extern uint GetCurrentThreadId();
14
15 [DllImport("user32.dll", SetLastError = true)]
16 public static extern IntPtr SetWindowsHookEx(HookType hookType, HookProc lpfn, IntPtr hMod, uint dwThreadId);
17
18 [DllImport("user32.dll", SetLastError = true)]
19 public static extern bool UnhookWindowsHookEx(IntPtr hhk);
20
21 [DllImport("user32.dll")]
22 public static extern IntPtr CallNextHookEx(IntPtr hhk, int nCode, IntPtr wParam, ref MSG lParam);
23
24 [DllImport("shell32.dll")]
25 public static extern void DragAcceptFiles(IntPtr hwnd, bool fAccept);
26
27 [DllImport("shell32.dll", CharSet = CharSet.Unicode)]
28 public static extern uint DragQueryFile(IntPtr hDrop, uint iFile, StringBuilder lpszFile, uint cch);
29
30 [DllImport("shell32.dll")]
31 public static extern void DragFinish(IntPtr hDrop);
32
33 [DllImport("shell32.dll")]
34 public static extern void DragQueryPoint(IntPtr hDrop, out POINT pos);
35}
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)