Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static class: RT.Util.WinAPI

Summary

WinAPI function wrappers

Static methods

int
ActivateKeyboardLayout(IntPtr nkl, uint Flags)
These members are not documented.
bool
AttachThreadInput(IntPtr idAttach, IntPtr idAttachTo, bool fAttach)
int
CallNextHookEx(IntPtr idHook, int nCode, int wParam, ref WinAPI.KeyboardHookStruct lParam)
Calls the next hook.
bool
CloseHandle(IntPtr hObject)
These members are not documented.
IntPtr
CreateToolhelp32Snapshot(uint dwFlags, uint th32ProcessID)
IntPtr
CreateToolhelp32Snapshot(WinAPI.SnapshotFlags dwFlags, uint th32ProcessID)
void Normally an unhandled exception will result in Windows showing a generic error dialog, while keeping the process alive and stopped. This method will disable that: an unhandled exception will result in the process terminating quietly.
bool
FreeLibrary(IntPtr hModule)
These members are not documented.
short
IntPtr Returns the window handle of the console window associated with the current process, or IntPtr.Zero if there is no console window.
IntPtrThese members are not documented.
bool
GetCursorPos(out Point lpPoint)
uint
GetFileType(IntPtr hFile)
IntPtr
IntPtr Retrieves the window handle of the focused control in the currently active window.
IntPtrThese members are not documented.
IntPtr
GetKeyboardLayout(uint idThread)
uint
GetKeyboardLayoutList(int nBuff, IntPtr[] lpList)
bool
GetKeyboardLayoutName(StringBuilder pwszKLID)
bool
GetKeyboardState(byte[] lpKeyState)
short
GetKeyState(int vKey)
IntPtr
GetStdHandle(int nStdHandle)
int
GetWindowLong(IntPtr hWnd, int nIndex)
bool
GetWindowRect(IntPtr hWnd, ref WinAPI.RECT lpRect)
IntPtr
GetWindowThreadProcessId(IntPtr hWnd, IntPtr ProcessId)
void
void
keybd_event(byte bVk, byte bScan, uint dwFlags, int dwExtraInfo)
IntPtr
LoadCursor(IntPtr hInstance, int lpCursorName)
IntPtr
LoadKeyboardLayout(string pwszKLID, uint flags)
IntPtr
LoadLibrary(string lpFileName)
Loads the library.
IntPtr
LoadLibraryEx(string lpFileName, IntPtr hFile, uint dwFlags)
These members are not documented.
int
LoadString(IntPtr hInstance, uint uID, StringBuilder lpBuffer, int nBufferMax)
uint
MapVirtualKey(uint uCode, uint uMapType)
bool
void
mouse_event(int dwFlags, int dx, int dy, int dwData, int dwExtraInfo)
IntPtr
OpenThread(WinAPI.ThreadAccess dwDesiredAccess, bool bInheritHandle, uint dwThreadId)
bool
PostMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam)
bool
Process32First(IntPtr hSnapshot, ref WinAPI.PROCESSENTRY32 lppe)
bool
Process32Next(IntPtr hSnapshot, ref WinAPI.PROCESSENTRY32 lppe)
long
bool
QueryPerformanceCounter(out long lpPerformanceCount)
double
bool
QueryThreadCycleTime(IntPtr threadHandle, out ulong cycleTime)
uint
RegisterWindowMessage(string lpString)
int
ResumeThread(IntPtr hThread)
uint
SendInput(uint nInputs, WinAPI.INPUT[] pInputs, int cbSize)
uint
SendMessage(IntPtr hWnd, uint msg, uint wParam, uint lParam)
uint
SendMessage2(IntPtr hWnd, int msg, IntPtr wParam, IntPtr lParam)
bool
bool
SetConsoleOutputCP(uint wCodePageID)
bool
SetCursorPos(int x, int y)
bool
SetForegroundWindow(IntPtr hWnd)
int
SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong)
bool
SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags)
IntPtr
SetWindowsHookEx(int idHook, WinAPI.KeyboardHookProc callback, IntPtr hInstance, uint threadId)
Sets the windows hook, do the desired event, one of hInstance or threadId must be non-null
bool
ShowWindow(IntPtr hWnd, int nCmdShow)
Shows or hides the window identified by hWnd. For nCmdShow, use WinAPI.SW_SHOW et al.
uint
SuspendThread(IntPtr hThread)
These members are not documented.
int
ToUnicode(uint virtualKeyCode, uint scanCode, byte[] keyboardState, StringBuilder receivingBuffer, int bufferSize, uint flags)
int
ToUnicodeEx(uint virtualKeyCode, uint scanCode, byte[] keyboardState, StringBuilder receivingBuffer, int bufferSize, uint flags, IntPtr inputLocaleIdentifier)
bool
UnhookWindowsHookEx(IntPtr hInstance)
Unhooks the windows hook.
intThis member is not documented.

Static fields

uintThese members are not documented.
int
int
int
int
int
IntPtr
int
int
int
int
int
IntPtr
int
int
uint
uint
int
int
int
int
uint
uint
uint
uint
int
uint
uint
uint
uint
uint
int
int
int
int
int
long This field is statically initialised by calling QueryPerformanceFrequency. It contains the frequency of the performance counter for the current system.
intThese members are not documented.
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int

Nested types

These members are not documented.
Defines the callback type for a keyboard hook procedure.
These members are not documented.
Specifies a sound to be played back when displaying a message dialog.
These members are not documented.