C# Класс Andwho.Windows.Win32.NativeMethods

Win32 API 方法
Показать файл Открыть проект

Открытые методы

Метод Описание
GetLastErrorString ( int code ) : string

获取GetLastError函数返回值对应的字符串

HIWORD ( int value ) : int

LOWORD ( int value ) : int

MakeLParam ( int LoWord, int HiWord ) : int

创建一个无符号的32位值作为lParam参数中使用一个消息

Приватные методы

Метод Описание
CallNextHookEx ( int idHook, int nCode, int wParam, IntPtr lParam ) : int
CloseHandle ( int hObject ) : bool
CreateCompatibleDC ( IntPtr hDC ) : IntPtr
CreateRoundRectRgn ( int nLeftRect, int nTopRect, int nRightRect, int nBottomRect, int nWidthEllipse, int nHeightEllipse ) : int
DeleteDC ( IntPtr hdc ) : bool
DeleteObject ( IntPtr hObject ) : bool
FindWindow ( string lpClassName, string lpWindowName ) : IntPtr
FindWindowEx ( IntPtr hwndParent, IntPtr hwndChildAfter, string lpClassName, string lpWindowName ) : IntPtr
GetClientRect ( int hWnd, RECT &lpRect ) : bool
GetCurrentThreadId ( ) : int
GetCursorPos ( POINT &lpPoint ) : bool
GetDC ( IntPtr hWnd ) : IntPtr
GetDoubleClickTime ( ) : int
GetLastError ( ) : int
GetModuleHandle ( string name ) : IntPtr
GetSystem ( SYSTEMTIME_INFO &stinfo ) : void
GetSystemDirectory ( StringBuilder lpBuffer, int nSize ) : long
GetSystemInfo ( CPU_INFO &cpuinfo ) : void
GetWindowDC ( IntPtr hWnd ) : IntPtr
GetWindowRect ( int hWnd, RECT &lpRect ) : bool
GetWindowThreadProcessId ( IntPtr hwnd, int &ID ) : int
GetWindowsDirectory ( StringBuilder lpBuffer, int nSize ) : long
GlobalMemory ( MEMORY_INFO &meminfo ) : void
OpenProcess ( int dwDesiredAccess, bool hInheritHandle, int dwProcessId ) : IntPtr
PostMessage ( int hWnd, int Msg, int wParam, int lParam ) : bool
ReadProcessMemory ( IntPtr hProcess, IntPtr lpBaseAddress, [ lpBuffer, UInt32 nSize, UInt32 lpNumberOfBytesRead ) : Int32
RegisterHotKey ( IntPtr hWnd, int id, KeyModifiers fsModifiers, Keys vk ) : bool
ReleaseCapture ( ) : int
ReleaseDC ( IntPtr hWnd, IntPtr hDC ) : int
SHGetFileInfo ( string pszPath, uint dwFileAttributes, SHFILEINFO &psfi, int cbfileInfo, uint uFlags ) : IntPtr
SelectObject ( IntPtr hDC, IntPtr hObject ) : IntPtr
SendMessage ( IntPtr hWnd, int msg, int wParam, RECT &lParam ) : IntPtr
SendMessage ( IntPtr hWnd, int Msg, int wParam, int lParam ) : IntPtr
SendMessage ( IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam ) : IntPtr
SetCursorPos ( POINT lpPoint ) : bool
SetCursorPos ( int x, int y ) : bool
SetWindowPos ( IntPtr hWnd, int hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags ) : bool
SetWindowRgn ( IntPtr hwnd, int hRgn, System.Boolean bRedraw ) : int
SetWindowsHookEx ( HookType idHook, HookProc lpfn, IntPtr hInstance, int threadId ) : int
UnhookWindowsHookEx ( int idHook ) : int
UnregisterHotKey ( IntPtr hWnd, int id ) : bool
UpdateLayeredWindow ( IntPtr hWnd, IntPtr hdcDst, POINT &pptDst, SIZE &psize, IntPtr hdcSrc, POINT &ppSrc, Int32 crKey, BLENDFUNCTION &pblend, Int32 dwFlags ) : bool
WindowFromPoint ( POINT Point ) : IntPtr
WriteProcessMemory ( IntPtr hProcess, IntPtr lpBaseAddress, int &lpBuffer, int nSize, int &lpNumberOfByteRead ) : Int32
keybd_event ( byte bVk, byte bScan, int dwFlags, int dwExtraInfo ) : void
mouse_event ( int dwFlags, int dx, int dy, int dwData, int dwExtraInfo ) : void

Описание методов

GetLastErrorString() публичный статический Метод

获取GetLastError函数返回值对应的字符串
public static GetLastErrorString ( int code ) : string
code int GetLastError函数的返回值
Результат string

HIWORD() публичный статический Метод

public static HIWORD ( int value ) : int
value int
Результат int

LOWORD() публичный статический Метод

public static LOWORD ( int value ) : int
value int
Результат int

MakeLParam() публичный статический Метод

创建一个无符号的32位值作为lParam参数中使用一个消息
public static MakeLParam ( int LoWord, int HiWord ) : int
LoWord int
HiWord int
Результат int