C# Class AcTools.Windows.User32

显示文件 Open project: gro-ove/actools

Public Properties

Property Type Description
HWND_BROADCAST System.IntPtr

Public Methods

Method Description
BringProcessWindowToFront ( Process process ) : void
CopyDataFromString ( string str ) : COPYDATASTRUCT
GetAsyncKeyState ( int keyCode ) : short
GetText ( IntPtr handle ) : string
IsKeyPressed ( Keys vKey ) : bool
IsKeyPressed ( int keyCode ) : bool
IsWindowInForeground ( IntPtr hWnd ) : bool
MouseClick ( int x, int y ) : void
MouseEvent ( int dwFlags, int dx, int dy, int dwData, int dwExtraInfo ) : void
PressKey ( IntPtr h, Keys key ) : void

Private Methods

Method Description
AttachThreadInput ( IntPtr idAttach, IntPtr idAttachTo, int fAttach ) : IntPtr
CallNextHookEx ( int idHook, int nCode, int wParam, IntPtr lParam ) : int
CloseWindow ( IntPtr hWnd ) : bool
EnumChildWindows ( IntPtr parentHandle, Win32Callback callback, IntPtr lParam ) : bool
EnumDisplaySettings ( string lpszDeviceName, int iModeNum, DEVMODE &lpDevMode ) : bool
EnumThreadWindows ( int dwThreadId, EnumThreadDelegate lpfn, IntPtr lParam ) : bool
EnumWindows ( EnumWindowsProc enumFunc, int lParam ) : bool
FindWindow ( string lpClassName, string lpWindowName ) : IntPtr
FindWindowEx ( IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow ) : IntPtr
GetAsyncKeyState ( Keys vKey ) : short
GetClassName ( IntPtr hWnd, System lpClassName, int nMaxCount ) : IntPtr
GetCursorPos ( Win32Point &pt ) : bool
GetForegroundWindow ( ) : IntPtr
GetShellWindow ( ) : IntPtr
GetWindowText ( IntPtr hWnd, StringBuilder lpString, int nMaxCount ) : int
GetWindowTextLength ( IntPtr hWnd ) : int
GetWindowThreadProcessId ( IntPtr hWnd, IntPtr ProcessId ) : IntPtr
GetWindowThreadProcessId ( IntPtr hWnd, uint &ProcessId ) : IntPtr
IsIconic ( IntPtr hWnd ) : bool
IsWindowVisible ( IntPtr hWnd ) : bool
IsZoomed ( IntPtr hWnd ) : bool
PostMessage ( HandleRef hwnd, int msg, int wparam, int lparam ) : IntPtr
PostMessage ( IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam ) : bool
PostMessage ( IntPtr hWnd, uint Msg, IntPtr wParam, string lParam ) : bool
PostMessage ( IntPtr hWnd, uint Msg, int wParam, COPYDATASTRUCT &lParam ) : bool
PostMessage ( IntPtr hWnd, uint Msg, int wParam, int lParam ) : bool
RegisterWindowMessage ( string lpString ) : uint
ScreenToClient ( IntPtr hwnd, Win32Point &pt ) : bool
SendMessage ( IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam ) : IntPtr
SendMessage ( IntPtr hWnd, uint Msg, int wParam, StringBuilder lParam ) : IntPtr
SetCursorPos ( int X, int Y ) : bool
SetForegroundWindow ( IntPtr hWnd ) : bool
SetWindowsHookEx ( int idHook, HookProc lpfn, IntPtr hMod, int dwThreadId ) : int
ShowWindow ( IntPtr hWnd, WindowShowStyle nCmdShow ) : bool
ShowWindowAsync ( IntPtr hWnd, WindowShowStyle nCmdShow ) : bool
UnhookWindowsHookEx ( int idHook ) : int
keybd_event ( byte bVk, byte bScan, uint dwFlags, UIntPtr dwExtraInfo ) : void
mouse_event ( int dwFlags, int dx, int dy, int dwData, int dwExtraInfo ) : void

Method Details

BringProcessWindowToFront() public static method

public static BringProcessWindowToFront ( Process process ) : void
process System.Diagnostics.Process
return void

CopyDataFromString() public static method

public static CopyDataFromString ( string str ) : COPYDATASTRUCT
str string
return COPYDATASTRUCT

GetAsyncKeyState() public static method

public static GetAsyncKeyState ( int keyCode ) : short
keyCode int
return short

GetText() public static method

public static GetText ( IntPtr handle ) : string
handle System.IntPtr
return string

IsKeyPressed() public static method

public static IsKeyPressed ( Keys vKey ) : bool
vKey Keys
return bool

IsKeyPressed() public static method

public static IsKeyPressed ( int keyCode ) : bool
keyCode int
return bool

IsWindowInForeground() public static method

public static IsWindowInForeground ( IntPtr hWnd ) : bool
hWnd System.IntPtr
return bool

MouseClick() public static method

public static MouseClick ( int x, int y ) : void
x int
y int
return void

MouseEvent() public static method

public static MouseEvent ( int dwFlags, int dx, int dy, int dwData, int dwExtraInfo ) : void
dwFlags int
dx int
dy int
dwData int
dwExtraInfo int
return void

PressKey() public static method

public static PressKey ( IntPtr h, Keys key ) : void
h System.IntPtr
key Keys
return void

Property Details

HWND_BROADCAST public_oe static_oe property

public static IntPtr,System HWND_BROADCAST
return System.IntPtr