Class UserApi
Provides managed wrappers to Windows User.dll
Inheritance
System.Object
UserApi
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Azos.WinForms.dll
Syntax
public static class UserApi
Fields
SW_ERASE
Declaration
public const int SW_ERASE = 4
Field Value
Type |
Description |
System.Int32 |
|
SW_INVALIDATE
Declaration
public const int SW_INVALIDATE = 2
Field Value
Type |
Description |
System.Int32 |
|
Declaration
public const int SW_SCROLLCHILDREN = 1
Field Value
Type |
Description |
System.Int32 |
|
Declaration
public const int SW_SMOOTHSCROLL = 16
Field Value
Type |
Description |
System.Int32 |
|
WM_KEYDOWN
Declaration
public const int WM_KEYDOWN = 256
Field Value
Type |
Description |
System.Int32 |
|
WM_KEYUP
Declaration
public const int WM_KEYUP = 257
Field Value
Type |
Description |
System.Int32 |
|
WM_SETTEXT
Declaration
public const int WM_SETTEXT = 12
Field Value
Type |
Description |
System.Int32 |
|
Methods
EnumWindows(UserApi.EnumDelegate, Int32)
Declaration
public static int EnumWindows(UserApi.EnumDelegate d, int lParm)
Parameters
Returns
Type |
Description |
System.Int32 |
|
FindWindow(String, String)
Declaration
public static IntPtr FindWindow(string lpClassName, string lpWindowName)
Parameters
Type |
Name |
Description |
System.String |
lpClassName |
|
System.String |
lpWindowName |
|
Returns
Type |
Description |
System.IntPtr |
|
FindWindowByCaption(IntPtr, String)
Declaration
public static IntPtr FindWindowByCaption(IntPtr ZeroOnly, string lpWindowName)
Parameters
Type |
Name |
Description |
System.IntPtr |
ZeroOnly |
|
System.String |
lpWindowName |
|
Returns
Type |
Description |
System.IntPtr |
|
FindWindowEx(IntPtr, IntPtr, String, String)
Declaration
public static IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow)
Parameters
Type |
Name |
Description |
System.IntPtr |
hwndParent |
|
System.IntPtr |
hwndChildAfter |
|
System.String |
lpszClass |
|
System.String |
lpszWindow |
|
Returns
Type |
Description |
System.IntPtr |
|
GetFocus()
Declaration
public static IntPtr GetFocus()
Returns
Type |
Description |
System.IntPtr |
|
GetWindowText(IntPtr, StringBuilder, Int32)
Declaration
public static int GetWindowText(IntPtr hWnd, StringBuilder lpString, int cch)
Parameters
Type |
Name |
Description |
System.IntPtr |
hWnd |
|
System.Text.StringBuilder |
lpString |
|
System.Int32 |
cch |
|
Returns
Type |
Description |
System.Int32 |
|
MessageBeep(Int32)
Declaration
public static bool MessageBeep(int uType)
Parameters
Type |
Name |
Description |
System.Int32 |
uType |
|
Returns
Type |
Description |
System.Boolean |
|
PostMessage(HandleRef, UInt32, IntPtr, IntPtr)
Declaration
public static bool PostMessage(HandleRef hWnd, uint Msg, IntPtr wParam, IntPtr lParam)
Parameters
Type |
Name |
Description |
System.Runtime.InteropServices.HandleRef |
hWnd |
|
System.UInt32 |
Msg |
|
System.IntPtr |
wParam |
|
System.IntPtr |
lParam |
|
Returns
Type |
Description |
System.Boolean |
|
RegisterWindowMessage(String)
Declaration
public static uint RegisterWindowMessage(string lpString)
Parameters
Type |
Name |
Description |
System.String |
lpString |
|
Returns
Type |
Description |
System.UInt32 |
|
ReleaseCapture()
Declaration
public static bool ReleaseCapture()
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static int ScrollWindowEx(IntPtr hWnd, int dx, int dy, ref UserApi.RECT lprcScroll, ref UserApi.RECT lprcClip, int hrgnUpdate, ref UserApi.RECT lprcUpdate, int fuScroll)
Parameters
Type |
Name |
Description |
System.IntPtr |
hWnd |
|
System.Int32 |
dx |
|
System.Int32 |
dy |
|
UserApi.RECT |
lprcScroll |
|
UserApi.RECT |
lprcClip |
|
System.Int32 |
hrgnUpdate |
|
UserApi.RECT |
lprcUpdate |
|
System.Int32 |
fuScroll |
|
Returns
Type |
Description |
System.Int32 |
|
SendMessage(HandleRef, UInt32, Int32, Int32)
Declaration
public static int SendMessage(HandleRef hWnd, uint uMsg, int wParam, int lParam)
Parameters
Type |
Name |
Description |
System.Runtime.InteropServices.HandleRef |
hWnd |
|
System.UInt32 |
uMsg |
|
System.Int32 |
wParam |
|
System.Int32 |
lParam |
|
Returns
Type |
Description |
System.Int32 |
|
SendMessage(HandleRef, UInt32, Int32, String)
Declaration
public static int SendMessage(HandleRef hWnd, uint uMsg, int wParam, string lParam)
Parameters
Type |
Name |
Description |
System.Runtime.InteropServices.HandleRef |
hWnd |
|
System.UInt32 |
uMsg |
|
System.Int32 |
wParam |
|
System.String |
lParam |
|
Returns
Type |
Description |
System.Int32 |
|
SendMessage(HandleRef, UInt32, IntPtr, IntPtr)
Declaration
public static int SendMessage(HandleRef hWnd, uint uMsg, IntPtr wParam, IntPtr lParam)
Parameters
Type |
Name |
Description |
System.Runtime.InteropServices.HandleRef |
hWnd |
|
System.UInt32 |
uMsg |
|
System.IntPtr |
wParam |
|
System.IntPtr |
lParam |
|
Returns
Type |
Description |
System.Int32 |
|
SetCapture(IntPtr)
Declaration
public static IntPtr SetCapture(IntPtr hWnd)
Parameters
Type |
Name |
Description |
System.IntPtr |
hWnd |
|
Returns
Type |
Description |
System.IntPtr |
|
SetForegroundWindow(IntPtr)
Declaration
public static bool SetForegroundWindow(IntPtr hWnd)
Parameters
Type |
Name |
Description |
System.IntPtr |
hWnd |
|
Returns
Type |
Description |
System.Boolean |
|