C# Class PsHandler.WinApi

Mostrar archivo Open project: kampiuceris/PsHandler

Public Properties

Property Type Description
MF_BYPOSITION uint
MF_REMOVE uint
WS_BORDER int
WS_CAPTION int
WS_CHILD int
WS_DLGFRAME int
WS_SYSMENU int

Public Methods

Method Description
EnsureWindowGwlStyleGwlExStyle ( IntPtr handle, uint gwlStyle, uint gwExlStyle ) : void
EnumerateProcessWindowHandles ( int processId ) : IEnumerable
FindAllChildWindow ( IntPtr hwndParent, string lpszClass, string lpszTitle ) : List
FindAllChildWindowByClass ( IntPtr hwndParent, string lpszClass ) : List
FindChildWindow ( IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszTitle ) : IntPtr
FindChildWindow ( IntPtr hwndParent, string lpszClass, IEnumerable possibleTitles ) : IntPtr
FindChildWindow ( IntPtr hwndParent, string lpszClass, string lpszTitle ) : IntPtr
GetClassName ( IntPtr hwnd ) : string
GetClientRectangle ( IntPtr hwnd ) : Rectangle
GetClientRectangleRelativeTo ( IntPtr hwndChild, IntPtr hwndParent ) : Rectangle
GetLParam ( int x, int y ) : IntPtr
GetWindowHWndAll ( ) : System.IntPtr[]
GetWindowHandlesByClassName ( string className ) : System.IntPtr[]
GetWindowRectangle ( IntPtr hwnd ) : Rectangle
GetWindowTextRaw ( IntPtr hwnd ) : string
GetWindowTitle ( IntPtr hwnd ) : string
KeyDown ( IntPtr handle, System key ) : void
KeyType ( IntPtr handle, System key ) : void
KeyUp ( IntPtr handle, System key ) : void
SetClientRectangle ( IntPtr hwnd, UIntPtr dwStyle, Rectangle r, bool bMenu ) : void
SetWindowStyleNoCaption ( IntPtr handle ) : void
SetWindowStyleNone ( IntPtr handle ) : void
SetWindowStyleNormal ( IntPtr handle ) : void
___FindChildWindow ( IntPtr hwndParent, string lpszClass, string lpszTitle ) : IntPtr

Private Methods

Method Description
AdjustWindowRect ( RECT &lpRect, UIntPtr dwStyle, bool bMenu ) : System.Boolean
BeginDeferWindowPos ( int nNumWindows ) : IntPtr
BitBlt ( IntPtr hObject, int nXDest, int nYDest, int nWidth, int nHeight, IntPtr hObjectSource, int nXSrc, int nYSrc, int dwRop ) : bool
BringWindowToTop ( IntPtr hWnd ) : bool
ClientToScreen ( IntPtr hWnd, POINT &lpPoint ) : bool
CreateCompatibleBitmap ( IntPtr hDC, int nWidth, int nHeight ) : IntPtr
CreateCompatibleDC ( IntPtr hDC ) : IntPtr
DeferWindowPos ( IntPtr hWinPosInfo, IntPtr hWnd, IntPtr hWndInsertAfter, int x, int y, int cx, int cy, [ uFlags ) : IntPtr
DeleteDC ( IntPtr hDC ) : bool
DeleteObject ( IntPtr hObject ) : bool
DrawMenuBar ( IntPtr hWnd ) : bool
EndDeferWindowPos ( IntPtr hWinPosInfo ) : bool
EnumDesktopWindows ( IntPtr hDesktop, EnumDelegate lpEnumCallbackFunction, IntPtr lParam ) : bool
EnumThreadWindows ( int dwThreadId, EnumThreadDelegate lpfn, IntPtr lParam ) : bool
FindWindow ( string lpClassName, string lpWindowName ) : IntPtr
FindWindowByCaption ( IntPtr ZeroOnly, string lpWindowName ) : IntPtr
FindWindowEx ( IntPtr parentHandle, IntPtr childAfter, string className, string windowTitle ) : IntPtr
GetActiveWindow ( ) : IntPtr
GetClassName ( IntPtr hWnd, StringBuilder lpClassName, int nMaxCount ) : int
GetClientRect ( IntPtr hWnd, RECT &lpRect ) : bool
GetCursorPos ( POINT &lpPoint ) : bool
GetForegroundWindow ( ) : IntPtr
GetMenu ( IntPtr hWnd ) : IntPtr
GetMenuItemCount ( IntPtr hMenu ) : int
GetParent ( IntPtr hWnd ) : IntPtr
GetSystemMetrics ( SystemMetric smIndex ) : int
GetWindow ( IntPtr hWnd, GetWindow_Cmd uCmd ) : IntPtr
GetWindowDC ( IntPtr hWnd ) : IntPtr
GetWindowLong ( IntPtr hWnd, int nIndex ) : int
GetWindowRect ( IntPtr hWnd, RECT &lpRect ) : bool
GetWindowText ( IntPtr hWnd, StringBuilder lpWindowText, int nMaxCount ) : int
GetWindowThreadProcessId ( IntPtr hWnd, uint &lpdwProcessId ) : uint
IsWindow ( IntPtr hWnd ) : bool
IsWindowEnabled ( IntPtr hWnd ) : bool
IsWindowVisible ( IntPtr hWnd ) : bool
MoveWindow ( IntPtr hWnd, int x, int y, int width, int height, bool redraw ) : bool
PostMessage ( IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam ) : bool
ReleaseCapture ( ) : bool
ReleaseDC ( IntPtr hWnd, IntPtr hDC ) : IntPtr
RemoveMenu ( IntPtr hMenu, uint uPosition, uint uFlags ) : bool
SelectObject ( IntPtr hDC, IntPtr hObject ) : IntPtr
SendMessage ( IntPtr hWnd, UInt32 Msg, IntPtr wParam, IntPtr lParam ) : IntPtr
SendMessage ( IntPtr hWnd, UInt32 Msg, IntPtr wParam, [ lParam ) : IntPtr
SetCapture ( IntPtr hWnd ) : IntPtr
SetWindowLong ( IntPtr hWnd, int nIndex, int dwNewLong ) : int
SetWindowPos ( IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, SetWindowPosFlags uFlags ) : bool
SetWindowText ( IntPtr hwnd, String lpString ) : bool
ShowWindow ( IntPtr hWnd, int nCmdShow ) : bool

Method Details

EnsureWindowGwlStyleGwlExStyle() public static method

public static EnsureWindowGwlStyleGwlExStyle ( IntPtr handle, uint gwlStyle, uint gwExlStyle ) : void
handle System.IntPtr
gwlStyle uint
gwExlStyle uint
return void

EnumerateProcessWindowHandles() public static method

public static EnumerateProcessWindowHandles ( int processId ) : IEnumerable
processId int
return IEnumerable

FindAllChildWindow() public static method

public static FindAllChildWindow ( IntPtr hwndParent, string lpszClass, string lpszTitle ) : List
hwndParent System.IntPtr
lpszClass string
lpszTitle string
return List

FindAllChildWindowByClass() public static method

public static FindAllChildWindowByClass ( IntPtr hwndParent, string lpszClass ) : List
hwndParent System.IntPtr
lpszClass string
return List

FindChildWindow() public static method

public static FindChildWindow ( IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszTitle ) : IntPtr
hwndParent System.IntPtr
hwndChildAfter System.IntPtr
lpszClass string
lpszTitle string
return System.IntPtr

FindChildWindow() public static method

public static FindChildWindow ( IntPtr hwndParent, string lpszClass, IEnumerable possibleTitles ) : IntPtr
hwndParent System.IntPtr
lpszClass string
possibleTitles IEnumerable
return System.IntPtr

FindChildWindow() public static method

public static FindChildWindow ( IntPtr hwndParent, string lpszClass, string lpszTitle ) : IntPtr
hwndParent System.IntPtr
lpszClass string
lpszTitle string
return System.IntPtr

GetClassName() public static method

public static GetClassName ( IntPtr hwnd ) : string
hwnd System.IntPtr
return string

GetClientRectangle() public static method

public static GetClientRectangle ( IntPtr hwnd ) : Rectangle
hwnd System.IntPtr
return System.Drawing.Rectangle

GetClientRectangleRelativeTo() public static method

public static GetClientRectangleRelativeTo ( IntPtr hwndChild, IntPtr hwndParent ) : Rectangle
hwndChild System.IntPtr
hwndParent System.IntPtr
return System.Drawing.Rectangle

GetLParam() public static method

public static GetLParam ( int x, int y ) : IntPtr
x int
y int
return System.IntPtr

GetWindowHWndAll() public static method

public static GetWindowHWndAll ( ) : System.IntPtr[]
return System.IntPtr[]

GetWindowHandlesByClassName() public static method

public static GetWindowHandlesByClassName ( string className ) : System.IntPtr[]
className string
return System.IntPtr[]

GetWindowRectangle() public static method

public static GetWindowRectangle ( IntPtr hwnd ) : Rectangle
hwnd System.IntPtr
return System.Drawing.Rectangle

GetWindowTextRaw() public static method

public static GetWindowTextRaw ( IntPtr hwnd ) : string
hwnd System.IntPtr
return string

GetWindowTitle() public static method

public static GetWindowTitle ( IntPtr hwnd ) : string
hwnd System.IntPtr
return string

KeyDown() public static method

public static KeyDown ( IntPtr handle, System key ) : void
handle System.IntPtr
key System
return void

KeyType() public static method

public static KeyType ( IntPtr handle, System key ) : void
handle System.IntPtr
key System
return void

KeyUp() public static method

public static KeyUp ( IntPtr handle, System key ) : void
handle System.IntPtr
key System
return void

SetClientRectangle() public static method

public static SetClientRectangle ( IntPtr hwnd, UIntPtr dwStyle, Rectangle r, bool bMenu ) : void
hwnd System.IntPtr
dwStyle System.UIntPtr
r System.Drawing.Rectangle
bMenu bool
return void

SetWindowStyleNoCaption() public static method

public static SetWindowStyleNoCaption ( IntPtr handle ) : void
handle System.IntPtr
return void

SetWindowStyleNone() public static method

public static SetWindowStyleNone ( IntPtr handle ) : void
handle System.IntPtr
return void

SetWindowStyleNormal() public static method

public static SetWindowStyleNormal ( IntPtr handle ) : void
handle System.IntPtr
return void

___FindChildWindow() public static method

public static ___FindChildWindow ( IntPtr hwndParent, string lpszClass, string lpszTitle ) : IntPtr
hwndParent IntPtr
lpszClass string
lpszTitle string
return IntPtr

Property Details

MF_BYPOSITION public_oe static_oe property

public static uint MF_BYPOSITION
return uint

MF_REMOVE public_oe static_oe property

public static uint MF_REMOVE
return uint

WS_BORDER public_oe static_oe property

public static int WS_BORDER
return int

WS_CAPTION public_oe static_oe property

public static int WS_CAPTION
return int

WS_CHILD public_oe static_oe property

public static int WS_CHILD
return int

WS_DLGFRAME public_oe static_oe property

public static int WS_DLGFRAME
return int

WS_SYSMENU public_oe static_oe property

public static int WS_SYSMENU
return int