mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
7bd28e4357
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2304 21ef857c-d57f-4fe0-8362-d861dc6d29cd
30 lines
801 B
C#
30 lines
801 B
C#
using System;
|
|
using System.Drawing;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Be.Windows.Forms
|
|
{
|
|
internal sealed class NativeMethods
|
|
{
|
|
static NativeMethods() {}
|
|
|
|
// Caret definitions
|
|
[DllImport("user32.dll", SetLastError=true)]
|
|
public static extern bool CreateCaret(IntPtr hWnd, IntPtr hBitmap, int nWidth, int nHeight);
|
|
|
|
[DllImport("user32.dll", SetLastError=true)]
|
|
public static extern bool ShowCaret(IntPtr hWnd);
|
|
|
|
[DllImport("user32.dll", SetLastError=true)]
|
|
public static extern bool DestroyCaret();
|
|
|
|
[DllImport("user32.dll", SetLastError=true)]
|
|
public static extern bool SetCaretPos(int X, int Y);
|
|
|
|
// Key definitions
|
|
public const int WM_KEYDOWN = 0x100;
|
|
public const int WM_KEYUP = 0x101;
|
|
public const int WM_CHAR = 0x102;
|
|
}
|
|
}
|