Class WindowsAPI
Inheritance
System.Object
WindowsAPI
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Syncfusion.Tools.Windows.dll
[CLSCompliant(false)]
public class WindowsAPI
Fields
Declaration
public const string PROGRESSBARCLASSNAME = "msctls_progress32"
Field Value
Declaration
public const string REBARCLASSNAME = "ReBarWindow32"
Field Value
Declaration
public const string SCROLLBAR = "SCROLLBAR"
Field Value
Declaration
public const string TOOLBARCLASSNAME = "ToolbarWindow32"
Field Value
Methods
Declaration
public static int AdjustWindowRectEx(ref RECT lpRect, int dwStyle, bool bMenu, int dwExStyle)
Parameters
| Type |
Name |
Description |
| RECT |
lpRect |
|
| System.Int32 |
dwStyle |
|
| System.Boolean |
bMenu |
|
| System.Int32 |
dwExStyle |
|
Returns
Declaration
[CLSCompliant(false)]
public static int AnimateWindow(IntPtr hWnd, uint dwTime, uint dwFlags)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.UInt32 |
dwTime |
|
| System.UInt32 |
dwFlags |
|
Returns
Declaration
public static IntPtr BeginPaint(IntPtr hWnd, ref PAINTSTRUCT ps)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| PAINTSTRUCT |
ps |
|
Returns
Declaration
[CLSCompliant(false)]
public static bool BitBlt(IntPtr hDCDest, int XOriginDest, int YOriginDest, int WidthDest, int HeightDest, IntPtr hDCSrc, int XOriginScr, int YOriginSrc, uint Rop)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hDCDest |
|
| System.Int32 |
XOriginDest |
|
| System.Int32 |
YOriginDest |
|
| System.Int32 |
WidthDest |
|
| System.Int32 |
HeightDest |
|
| System.IntPtr |
hDCSrc |
|
| System.Int32 |
XOriginScr |
|
| System.Int32 |
YOriginSrc |
|
| System.UInt32 |
Rop |
|
Returns
Declaration
public static int BringWindowToTop(IntPtr hWnd)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
Returns
Declaration
public static IntPtr CallNextHookEx(IntPtr hhook, int code, IntPtr wparam, IntPtr lparam)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hhook |
|
| System.Int32 |
code |
|
| System.IntPtr |
wparam |
|
| System.IntPtr |
lparam |
|
Returns
Declaration
public static int CallWindowProc(IntPtr wndProc, IntPtr hwnd, int msg, IntPtr wparam, IntPtr lparam)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
wndProc |
|
| System.IntPtr |
hwnd |
|
| System.Int32 |
msg |
|
| System.IntPtr |
wparam |
|
| System.IntPtr |
lparam |
|
Returns
Declaration
public static int ChangeClipboardChain(IntPtr hWndRemove, IntPtr hWndNewNext)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWndRemove |
|
| System.IntPtr |
hWndNewNext |
|
Returns
Declaration
public static IntPtr ChildWindowFromPoint(IntPtr hWndParent, POINT point)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWndParent |
|
| POINT |
point |
|
Returns
Declaration
public static bool ClientToScreen(IntPtr hWnd, ref POINT pt)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| POINT |
pt |
|
Returns
Declaration
public static bool CloseClipboard()
Returns
Declaration
public static IntPtr CreateCompatibleBitmap(IntPtr hDC, int Width, int Heigth)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hDC |
|
| System.Int32 |
Width |
|
| System.Int32 |
Heigth |
|
Returns
Declaration
public static IntPtr CreateCompatibleDC(IntPtr hDC)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hDC |
|
Returns
Declaration
public static IntPtr CreateDIBSection(IntPtr hdc, ref BITMAPINFO_FLAT bmi, int iUsage, ref IntPtr ppvBits, IntPtr hSection, int dwOffset)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hdc |
|
| BITMAPINFO_FLAT |
bmi |
|
| System.Int32 |
iUsage |
|
| System.IntPtr |
ppvBits |
|
| System.IntPtr |
hSection |
|
| System.Int32 |
dwOffset |
|
Returns
Declaration
public static IntPtr CreateRoundRectRgn(int nLeft, int nTop, int nRight, int nBottom, int nWidthEllipse, int nHeightEllipse)
Parameters
| Type |
Name |
Description |
| System.Int32 |
nLeft |
|
| System.Int32 |
nTop |
|
| System.Int32 |
nRight |
|
| System.Int32 |
nBottom |
|
| System.Int32 |
nWidthEllipse |
|
| System.Int32 |
nHeightEllipse |
|
Returns
Declaration
[CLSCompliant(false)]
public static IntPtr CreateSolidBrush(uint crColor)
Parameters
| Type |
Name |
Description |
| System.UInt32 |
crColor |
|
Returns
Declaration
public static int DefWindowProc(IntPtr hWnd, Msg Msg, IntPtr wParam, ref RECT lParam)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| Msg |
Msg |
|
| System.IntPtr |
wParam |
|
| RECT |
lParam |
|
Returns
Declaration
public static int DefWindowProc(IntPtr hWnd, int Msg, IntPtr wParam, IntPtr lParam)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.Int32 |
Msg |
|
| System.IntPtr |
wParam |
|
| System.IntPtr |
lParam |
|
Returns
Declaration
public static IntPtr DeleteDC(IntPtr hDC)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hDC |
|
Returns
Declaration
public static bool DeleteObject(IntPtr hObject)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hObject |
|
Returns
Declaration
public static bool DispatchMessage(ref MSG msg)
Parameters
| Type |
Name |
Description |
| MSG |
msg |
|
Returns
DrawText(IntPtr, String, Int32, ref RECT, Int32)
Declaration
public static int DrawText(IntPtr hdc, string lpString, int nCount, ref RECT lpRect, int uFormat)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hdc |
|
| System.String |
lpString |
|
| System.Int32 |
nCount |
|
| RECT |
lpRect |
|
| System.Int32 |
uFormat |
|
Returns
Declaration
public static bool EmptyClipboard()
Returns
Declaration
[CLSCompliant(false)]
public static int EnableScrollBar(IntPtr hWnd, uint flags, uint arrows)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.UInt32 |
flags |
|
| System.UInt32 |
arrows |
|
Returns
Declaration
public static bool EndPaint(IntPtr hWnd, ref PAINTSTRUCT ps)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| PAINTSTRUCT |
ps |
|
Returns
Declaration
public static int ExcludeClipRect(IntPtr hdc, int nLeft, int nTop, int nRight, int nBottom)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hdc |
|
| System.Int32 |
nLeft |
|
| System.Int32 |
nTop |
|
| System.Int32 |
nRight |
|
| System.Int32 |
nBottom |
|
Returns
Declaration
public static int FillRect(IntPtr hDC, ref RECT rect, IntPtr hBrush)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hDC |
|
| RECT |
rect |
|
| System.IntPtr |
hBrush |
|
Returns
Declaration
public static IntPtr FindWindow(string lpClassName, string lpWindowName)
Parameters
| Type |
Name |
Description |
| System.String |
lpClassName |
|
| System.String |
lpWindowName |
|
Returns
Declaration
public static IntPtr FindWindowEx(IntPtr hWnd, IntPtr hChild, string strClassName, IntPtr strName)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.IntPtr |
hChild |
|
| System.String |
strClassName |
|
| System.IntPtr |
strName |
|
Returns
Declaration
public static IntPtr FindWindowEx(IntPtr hWnd, IntPtr hChild, string strClassName, string strName)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.IntPtr |
hChild |
|
| System.String |
strClassName |
|
| System.String |
strName |
|
Returns
Declaration
public static int GET_X_LPARAM(long lParam)
Parameters
| Type |
Name |
Description |
| System.Int64 |
lParam |
|
Returns
Declaration
public static int GET_X_LPARAM(IntPtr lParam)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
lParam |
|
Returns
Declaration
public static int GET_Y_LPARAM(long lParam)
Parameters
| Type |
Name |
Description |
| System.Int64 |
lParam |
|
Returns
Declaration
public static int GET_Y_LPARAM(IntPtr lParam)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
lParam |
|
Returns
Declaration
public static short GetAsyncKeyState(VirtualKeys vkey)
Parameters
Returns
Declaration
public static int GetCaretPos(ref POINT pnt)
Parameters
| Type |
Name |
Description |
| POINT |
pnt |
|
Returns
Declaration
public static int GetClassName(IntPtr hWnd, out STRINGBUFFER ClassName, int nMaxCount)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| STRINGBUFFER |
ClassName |
|
| System.Int32 |
nMaxCount |
|
Returns
Declaration
public static int GetClientRect(IntPtr hWnd, ref RECT rc)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| RECT |
rc |
|
Returns
Declaration
[CLSCompliant(false)]
public static bool GetComboBoxInfo(IntPtr hWnd, ref COMBOBOXINFO cbi)
Parameters
Returns
Declaration
public static int GetCommonControlDLLVersion(ref DLLVERSIONINFO dvi)
Parameters
Returns
Declaration
public static int GetCurrentThreadId()
Returns
Declaration
public static IntPtr GetCursor()
Returns
Declaration
public static int GetCursorPos(ref POINT pnt)
Parameters
| Type |
Name |
Description |
| POINT |
pnt |
|
Returns
Declaration
public static IntPtr GetDC(IntPtr hWnd)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
Returns
Declaration
public static IntPtr GetDCEx(IntPtr hWnd, IntPtr hRegion, GetDCExFlags flags)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.IntPtr |
hRegion |
|
| GetDCExFlags |
flags |
|
Returns
Declaration
public static IntPtr GetDesktopWindow()
Returns
Declaration
public static int GetDIBits(IntPtr hdc, IntPtr hbm, int StartScan, int ScanLines, int lpBits, ref BITMAPINFO_FLAT bmi, int usage)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hdc |
|
| System.IntPtr |
hbm |
|
| System.Int32 |
StartScan |
|
| System.Int32 |
ScanLines |
|
| System.Int32 |
lpBits |
|
| BITMAPINFO_FLAT |
bmi |
|
| System.Int32 |
usage |
|
Returns
Declaration
public static int GetDIBits(IntPtr hDC, IntPtr hbm, int StartScan, int ScanLines, int lpBits, BITMAPINFOHEADER bmi, int usage)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hDC |
|
| System.IntPtr |
hbm |
|
| System.Int32 |
StartScan |
|
| System.Int32 |
ScanLines |
|
| System.Int32 |
lpBits |
|
| BITMAPINFOHEADER |
bmi |
|
| System.Int32 |
usage |
|
Returns
Declaration
public static IntPtr GetDlgItem(IntPtr hDlg, int nControlID)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hDlg |
|
| System.Int32 |
nControlID |
|
Returns
Declaration
public static int GetExStyle(Control ctrl)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.Control |
ctrl |
|
Returns
Declaration
public static IntPtr GetFocus()
Returns
Declaration
[CLSCompliant(false)]
public static ushort GetKeyState(int virtKey)
Parameters
| Type |
Name |
Description |
| System.Int32 |
virtKey |
|
Returns
Declaration
public static int GetLastError()
Returns
Declaration
[CLSCompliant(false)]
public static bool GetMenuItemRect(IntPtr hWnd, IntPtr hMenu, uint Item, ref RECT rc)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.IntPtr |
hMenu |
|
| System.UInt32 |
Item |
|
| RECT |
rc |
|
Returns
Declaration
[CLSCompliant(false)]
public static bool GetMessage(ref MSG msg, int hWnd, uint wFilterMin, uint wFilterMax)
Parameters
| Type |
Name |
Description |
| MSG |
msg |
|
| System.Int32 |
hWnd |
|
| System.UInt32 |
wFilterMin |
|
| System.UInt32 |
wFilterMax |
|
Returns
Declaration
public static int GetObjectType(IntPtr handle)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
handle |
|
Returns
Declaration
public static IntPtr GetPaletteEntries(IntPtr hpal, int iStartIndex, int nEntries, byte[] lppe)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hpal |
|
| System.Int32 |
iStartIndex |
|
| System.Int32 |
nEntries |
|
| System.Byte[] |
lppe |
|
Returns
Declaration
public static IntPtr GetParent(IntPtr hWnd)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
Returns
Declaration
[CLSCompliant(false)]
public static uint GetPixel(IntPtr hDC, int XPos, int YPos)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hDC |
|
| System.Int32 |
XPos |
|
| System.Int32 |
YPos |
|
Returns
Declaration
public static Point GetPointFromLPARAM(long lParam)
Parameters
| Type |
Name |
Description |
| System.Int64 |
lParam |
|
Returns
| Type |
| System.Drawing.Point |
Declaration
public static Point GetPointFromLPARAM(IntPtr lParam)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
lParam |
|
Returns
| Type |
| System.Drawing.Point |
Declaration
[CLSCompliant(false)]
public static int GetScrollInfo(IntPtr hwnd, int bar, ref SCROLLINFO si)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hwnd |
|
| System.Int32 |
bar |
|
| SCROLLINFO |
si |
|
Returns
Declaration
public static int GetStyle(Control ctrl)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.Control |
ctrl |
|
Returns
Declaration
public static int GetSystemMetrics(SystemMetricsCodes nIndex)
Parameters
Returns
Declaration
public static IntPtr GetSystemPaletteEntries(IntPtr hdc, int iStartIndex, int nEntries, byte[] lppe)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hdc |
|
| System.Int32 |
iStartIndex |
|
| System.Int32 |
nEntries |
|
| System.Byte[] |
lppe |
|
Returns
Declaration
public static IntPtr GetTopWindow(IntPtr hWnd)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
Returns
Declaration
public static bool GetUpdateRect(IntPtr hWnd, ref RECT lpRect, bool bErase)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| RECT |
lpRect |
|
| System.Boolean |
bErase |
|
Returns
Declaration
public static IntPtr GetWindow(IntPtr hWnd, GetWindowCmd cmd)
Parameters
Returns
Declaration
public static IntPtr GetWindowDC(IntPtr hWnd)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
Returns
Declaration
public static int GetWindowLong(IntPtr hWnd, int nIndex)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.Int32 |
nIndex |
|
Returns
Declaration
[CLSCompliant(false)]
public static int GetWindowPlacement(IntPtr hWnd, ref WINDOWPLACEMENT wp)
Parameters
Returns
Declaration
public static bool GetWindowRect(IntPtr hWnd, ref RECT rect)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| RECT |
rect |
|
Returns
GetWindowText(IntPtr, out STRINGBUFFER, Int32)
Declaration
public static int GetWindowText(IntPtr hWnd, out STRINGBUFFER text, int maxCount)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| STRINGBUFFER |
text |
|
| System.Int32 |
maxCount |
|
Returns
Declaration
public static int HIGH_ORDER(int param)
Parameters
| Type |
Name |
Description |
| System.Int32 |
param |
|
Returns
Declaration
public static int HIGH_ORDER(IntPtr param)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
param |
|
Returns
Declaration
public static int ImageList_Add(IntPtr imageHandle, IntPtr hBitmap, IntPtr hMask)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
imageHandle |
|
| System.IntPtr |
hBitmap |
|
| System.IntPtr |
hMask |
|
Returns
Declaration
public static bool ImageList_BeginDrag(IntPtr imageHandle, int imageIndex, int xHotSpot, int yHotSpot)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
imageHandle |
|
| System.Int32 |
imageIndex |
|
| System.Int32 |
xHotSpot |
|
| System.Int32 |
yHotSpot |
|
Returns
Declaration
[CLSCompliant(false)]
public static IntPtr ImageList_Create(int width, int height, uint flags, int count, int grow)
Parameters
| Type |
Name |
Description |
| System.Int32 |
width |
|
| System.Int32 |
height |
|
| System.UInt32 |
flags |
|
| System.Int32 |
count |
|
| System.Int32 |
grow |
|
Returns
Declaration
public static bool ImageList_Destroy(IntPtr handle)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
handle |
|
Returns
Declaration
public static bool ImageList_DragEnter(IntPtr hWndLock, int x, int y)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWndLock |
|
| System.Int32 |
x |
|
| System.Int32 |
y |
|
Returns
Declaration
public static bool ImageList_DragLeave(IntPtr hWndLock)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWndLock |
|
Returns
Declaration
public static bool ImageList_DragMove(int x, int y)
Parameters
| Type |
Name |
Description |
| System.Int32 |
x |
|
| System.Int32 |
y |
|
Returns
Declaration
public static void ImageList_EndDrag()
Declaration
public static bool ImageList_Remove(IntPtr imageHandle, int index)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
imageHandle |
|
| System.Int32 |
index |
|
Returns
Declaration
public static bool InflateRect(ref RECT lpRect, int dx, int dy)
Parameters
| Type |
Name |
Description |
| RECT |
lpRect |
|
| System.Int32 |
dx |
|
| System.Int32 |
dy |
|
Returns
Declaration
public static bool InitCommonControls()
Returns
Declaration
public static bool InitCommonControlsEx(INITCOMMONCONTROLSEX icc)
Parameters
Returns
Declaration
public static int InvalidateRect(IntPtr hWnd, ref RECT rect, int bErase)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| RECT |
rect |
|
| System.Int32 |
bErase |
|
Returns
Declaration
public static int InvalidateRect(IntPtr hWnd, IntPtr rect, int bErase)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.IntPtr |
rect |
|
| System.Int32 |
bErase |
|
Returns
Declaration
public static bool IsChild(IntPtr hWndParent, IntPtr hWnd)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWndParent |
|
| System.IntPtr |
hWnd |
|
Returns
Declaration
public static bool IsIconic(IntPtr hWnd)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
Returns
Declaration
public static int IsWindow(IntPtr hWnd)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
Returns
Declaration
public static bool IsWindowEnabled(IntPtr hWnd)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
Returns
Declaration
public static bool IsWindowVisible(IntPtr hWnd)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
Returns
Declaration
[CLSCompliant(false)]
public static IntPtr LoadCursor(IntPtr hInstance, uint cursor)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hInstance |
|
| System.UInt32 |
cursor |
|
Returns
Declaration
public static int LOW_ORDER(int param)
Parameters
| Type |
Name |
Description |
| System.Int32 |
param |
|
Returns
Declaration
public static int LOW_ORDER(IntPtr param)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
param |
|
Returns
Declaration
public static int MAKELONG(int x, int y)
Parameters
| Type |
Name |
Description |
| System.Int32 |
x |
|
| System.Int32 |
y |
|
Returns
Declaration
[CLSCompliant(false)]
public static int MapWindowPoints(IntPtr hWndFrom, IntPtr hWndTo, ref POINT lpPoints, uint cPoints)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWndFrom |
|
| System.IntPtr |
hWndTo |
|
| POINT |
lpPoints |
|
| System.UInt32 |
cPoints |
|
Returns
Declaration
public static bool MoveWindow(IntPtr hWnd, int x, int y, int width, int height, bool repaint)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.Int32 |
x |
|
| System.Int32 |
y |
|
| System.Int32 |
width |
|
| System.Int32 |
height |
|
| System.Boolean |
repaint |
|
Returns
Declaration
public static bool OpenClipboard(IntPtr hWndNewOwner)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWndNewOwner |
|
Returns
Declaration
[CLSCompliant(false)]
public static bool PatBlt(IntPtr hDC, int XLeft, int YLeft, int Width, int Height, uint Rop)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hDC |
|
| System.Int32 |
XLeft |
|
| System.Int32 |
YLeft |
|
| System.Int32 |
Width |
|
| System.Int32 |
Height |
|
| System.UInt32 |
Rop |
|
Returns
Declaration
[CLSCompliant(false)]
public static bool PeekMessage(ref MSG msg, int hWnd, uint wFilterMin, uint wFilterMax, uint wFlag)
Parameters
| Type |
Name |
Description |
| MSG |
msg |
|
| System.Int32 |
hWnd |
|
| System.UInt32 |
wFilterMin |
|
| System.UInt32 |
wFilterMax |
|
| System.UInt32 |
wFlag |
|
Returns
PostMessage(IntPtr, Int32, Int32, Int32)
Declaration
public static IntPtr PostMessage(IntPtr hWnd, int msg, int wParam, int lParam)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.Int32 |
msg |
|
| System.Int32 |
wParam |
|
| System.Int32 |
lParam |
|
Returns
PostQuitMessage(Int32)
Declaration
public static void PostQuitMessage(int exitCode)
Parameters
| Type |
Name |
Description |
| System.Int32 |
exitCode |
|
PostThreadMessage(UInt32, Int32, Int32, Int32)
Declaration
[CLSCompliant(false)]
public static IntPtr PostThreadMessage(uint idThread, int msg, int wParam, int lParam)
Parameters
| Type |
Name |
Description |
| System.UInt32 |
idThread |
|
| System.Int32 |
msg |
|
| System.Int32 |
wParam |
|
| System.Int32 |
lParam |
|
Returns
Declaration
public static bool PtInRect(ref RECT rc, POINT pt)
Parameters
Returns
Declaration
public static bool RedrawWindow(IntPtr hWnd, ref RECT rcUpdate, IntPtr hrgnUpdate, RedrawWindowFlags flags)
Parameters
Returns
Declaration
public static bool RedrawWindow(IntPtr hWnd, IntPtr rcUpdate, IntPtr hrgnUpdate, RedrawWindowFlags flags)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.IntPtr |
rcUpdate |
|
| System.IntPtr |
hrgnUpdate |
|
| RedrawWindowFlags |
flags |
|
Returns
Declaration
public static bool ReleaseCapture()
Returns
Declaration
public static int ReleaseDC(IntPtr hWnd, IntPtr hDC)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.IntPtr |
hDC |
|
Returns
Declaration
public static bool ScreenToClient(IntPtr hWnd, ref POINT pt)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| POINT |
pt |
|
Returns
Declaration
[CLSCompliant(false)]
public static int ScrollWindowEx(IntPtr hWnd, int dx, int dy, ref RECT rcScroll, ref RECT rcClip, IntPtr UpdateRegion, ref RECT rcInvalidated, uint flags)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.Int32 |
dx |
|
| System.Int32 |
dy |
|
| RECT |
rcScroll |
|
| RECT |
rcClip |
|
| System.IntPtr |
UpdateRegion |
|
| RECT |
rcInvalidated |
|
| System.UInt32 |
flags |
|
Returns
Declaration
public static IntPtr SelectObject(IntPtr hDC, IntPtr hObject)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hDC |
|
| System.IntPtr |
hObject |
|
Returns
Declaration
public static int SendDlgItemMessage(IntPtr hWnd, int Id, int msg, int wParam, int lParam)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.Int32 |
Id |
|
| System.Int32 |
msg |
|
| System.Int32 |
wParam |
|
| System.Int32 |
lParam |
|
Returns
Declaration
public static int SendMessage(IntPtr hWnd, Msg msg, int wParam, int lParam)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| Msg |
msg |
|
| System.Int32 |
wParam |
|
| System.Int32 |
lParam |
|
Returns
Declaration
[CLSCompliant(false)]
public static int SendMessage(IntPtr hWnd, SpinControlMsg msg, int wParam, ref UDACCEL lParam)
Parameters
Returns
Declaration
[CLSCompliant(false)]
public static void SendMessage(IntPtr hWnd, int msg, int wParam, ref HD_HITTESTINFO hti)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.Int32 |
msg |
|
| System.Int32 |
wParam |
|
| HD_HITTESTINFO |
hti |
|
Declaration
[CLSCompliant(false)]
public static void SendMessage(IntPtr hWnd, int msg, int wParam, ref HDITEM lParam)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.Int32 |
msg |
|
| System.Int32 |
wParam |
|
| HDITEM |
lParam |
|
Declaration
[CLSCompliant(false)]
public static void SendMessage(IntPtr hWnd, int msg, int wParam, ref LVITEM lParam)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.Int32 |
msg |
|
| System.Int32 |
wParam |
|
| LVITEM |
lParam |
|
Declaration
public static int SendMessage(IntPtr hWnd, int msg, int wParam, ref MSG lParam)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.Int32 |
msg |
|
| System.Int32 |
wParam |
|
| MSG |
lParam |
|
Returns
Declaration
[CLSCompliant(false)]
public static int SendMessage(IntPtr hWnd, int msg, int wParam, ref PARAFORMAT2 format)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.Int32 |
msg |
|
| System.Int32 |
wParam |
|
| PARAFORMAT2 |
format |
|
Returns
Declaration
public static int SendMessage(IntPtr hWnd, int msg, int wParam, ref POINT lParam)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.Int32 |
msg |
|
| System.Int32 |
wParam |
|
| POINT |
lParam |
|
Returns
Declaration
public static int SendMessage(IntPtr hWnd, int msg, int wParam, ref REBARBANDINFO lParam)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.Int32 |
msg |
|
| System.Int32 |
wParam |
|
| REBARBANDINFO |
lParam |
|
Returns
Declaration
public static void SendMessage(IntPtr hWnd, int msg, int wParam, ref RECT lParam)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.Int32 |
msg |
|
| System.Int32 |
wParam |
|
| RECT |
lParam |
|
Declaration
public static void SendMessage(IntPtr hWnd, int msg, int wParam, ref TBBUTTON lParam)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.Int32 |
msg |
|
| System.Int32 |
wParam |
|
| TBBUTTON |
lParam |
|
Declaration
public static void SendMessage(IntPtr hWnd, int msg, int wParam, ref TBBUTTONINFO lParam)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.Int32 |
msg |
|
| System.Int32 |
wParam |
|
| TBBUTTONINFO |
lParam |
|
Declaration
[CLSCompliant(false)]
public static int SendMessage(IntPtr hWnd, int msg, int wParam, ref TOOLINFO lParam)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.Int32 |
msg |
|
| System.Int32 |
wParam |
|
| TOOLINFO |
lParam |
|
Returns
Declaration
[CLSCompliant(false)]
public static void SendMessage(IntPtr hWnd, int msg, int wParam, ref TVITEM lParam)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.Int32 |
msg |
|
| System.Int32 |
wParam |
|
| TVITEM |
lParam |
|
Declaration
public static IntPtr SendMessage(IntPtr hWnd, int msg, int wParam, IntPtr lParam)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.Int32 |
msg |
|
| System.Int32 |
wParam |
|
| System.IntPtr |
lParam |
|
Returns
Declaration
public static IntPtr SendMessage(IntPtr hWnd, int msg, int wParam, string lParam)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.Int32 |
msg |
|
| System.Int32 |
wParam |
|
| System.String |
lParam |
|
Returns
Declaration
public static IntPtr SendMessage(IntPtr hWnd, int msg, ref int wParam, ref int lParam)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.Int32 |
msg |
|
| System.Int32 |
wParam |
|
| System.Int32 |
lParam |
|
Returns
Declaration
public static IntPtr SendMessage(IntPtr hWnd, int msg, IntPtr wParam, IntPtr lParam)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.Int32 |
msg |
|
| System.IntPtr |
wParam |
|
| System.IntPtr |
lParam |
|
Returns
Declaration
public static int SetBkMode(IntPtr hDC, BackgroundMode mode)
Parameters
Returns
Declaration
[CLSCompliant(false)]
public static IntPtr SetClipboardData(uint Format, IntPtr hData)
Parameters
| Type |
Name |
Description |
| System.UInt32 |
Format |
|
| System.IntPtr |
hData |
|
Returns
Declaration
public static IntPtr SetClipboardViewer(IntPtr hWndNewViewer)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWndNewViewer |
|
Returns
Declaration
public static IntPtr SetCursor(IntPtr hCursor)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hCursor |
|
Returns
Declaration
[CLSCompliant(false)]
public static uint SetDCBrushColor(IntPtr hdc, uint crColor)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hdc |
|
| System.UInt32 |
crColor |
|
Returns
Declaration
public static IntPtr SetFocus(IntPtr hWnd)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
Returns
Declaration
public static bool SetForegroundWindow(IntPtr hWnd)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
Returns
Declaration
public static void SetLastError(int error)
Parameters
| Type |
Name |
Description |
| System.Int32 |
error |
|
Declaration
public static bool SetLayeredWindowAttributes(IntPtr hwnd, int crKey, int bAlpha, LayeredWindowFlags dwFlags)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hwnd |
|
| System.Int32 |
crKey |
|
| System.Int32 |
bAlpha |
|
| LayeredWindowFlags |
dwFlags |
|
Returns
Declaration
public static int SetMapMode(IntPtr hDC, int fnMapMode)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hDC |
|
| System.Int32 |
fnMapMode |
|
Returns
Declaration
public static IntPtr SetParent(IntPtr hChild, IntPtr hParent)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hChild |
|
| System.IntPtr |
hParent |
|
Returns
Declaration
[CLSCompliant(false)]
public static uint SetPixel(IntPtr hdc, int XPox, int YPos, int crColor)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hdc |
|
| System.Int32 |
XPox |
|
| System.Int32 |
YPos |
|
| System.Int32 |
crColor |
|
Returns
Declaration
public static void SetRedraw(Control ctrl, bool bRedraw)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.Control |
ctrl |
|
| System.Boolean |
bRedraw |
|
Declaration
[CLSCompliant(false)]
public static int SetScrollInfo(IntPtr hwnd, int bar, ref SCROLLINFO si, int fRedraw)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hwnd |
|
| System.Int32 |
bar |
|
| SCROLLINFO |
si |
|
| System.Int32 |
fRedraw |
|
Returns
Declaration
public static int SetStretchBltMode(IntPtr hDC, StrechModeFlags StrechMode)
Parameters
Returns
SetTextColor(IntPtr, UInt32)
Declaration
[CLSCompliant(false)]
public static uint SetTextColor(IntPtr hDC, uint colorRef)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hDC |
|
| System.UInt32 |
colorRef |
|
Returns
Declaration
public static int SetViewportOrgEx(IntPtr hdc, int x, int y, int param)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hdc |
|
| System.Int32 |
x |
|
| System.Int32 |
y |
|
| System.Int32 |
param |
|
Returns
Declaration
public static int SetWindowLong(IntPtr hWnd, int nIndex, WindowsAPI.WindowProc wndProc)
Parameters
Returns
Declaration
public static int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.Int32 |
nIndex |
|
| System.Int32 |
dwNewLong |
|
Returns
Declaration
public static int SetWindowLong(IntPtr hWnd, int nIndex, IntPtr dwNewLong)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.Int32 |
nIndex |
|
| System.IntPtr |
dwNewLong |
|
Returns
Declaration
public static bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int x, int y, int Width, int Height, SetWindowPosFlags flags)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.IntPtr |
hWndInsertAfter |
|
| System.Int32 |
x |
|
| System.Int32 |
y |
|
| System.Int32 |
Width |
|
| System.Int32 |
Height |
|
| SetWindowPosFlags |
flags |
|
Returns
Declaration
public static bool SetWindowRgn(IntPtr hWnd, IntPtr hRgn, bool redraw)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.IntPtr |
hRgn |
|
| System.Boolean |
redraw |
|
Returns
Declaration
public static IntPtr SetWindowsHookEx(int hookid, WindowsAPI.HookProc pfnhook, IntPtr hinst, int threadid)
Parameters
| Type |
Name |
Description |
| System.Int32 |
hookid |
|
| WindowsAPI.HookProc |
pfnhook |
|
| System.IntPtr |
hinst |
|
| System.Int32 |
threadid |
|
Returns
SetWindowText(IntPtr, String)
Declaration
public static int SetWindowText(IntPtr hWnd, string text)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.String |
text |
|
Returns
Declaration
public static int SetWindowTheme(IntPtr hWnd, string AppID, string ClassID)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.String |
AppID |
|
| System.String |
ClassID |
|
Returns
This function takes the fully-qualified pointer to an item
identifier list ( PIDL ) of a namespace object, and returns a specified
interface pointer on the parent object.
Declaration
public static int SHBindToParent(IntPtr pidl, Guid riid, out IntPtr ppv, ref IntPtr ppidlLast)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
pidl |
The item's PIDL.
|
| System.Guid |
riid |
The REFIID of one of the interfaces exposed by the item's parent object.
|
| System.IntPtr |
ppv |
A pointer to the interface specified by riid. You must release the object when you are finished.
|
| System.IntPtr |
ppidlLast |
// The item's PIDL relative to the parent folder. This PIDL can be used with many of the methods supported by the parent folder's interfaces. If you set ppidlLast to NULL, the PIDL will not be returned.
|
Returns
Displays a dialog box that enables the user to select a Shell folder.
Declaration
[CLSCompliant(false)]
public static IntPtr SHBrowseForFolder(ref BROWSEINFO lbpi)
Parameters
| Type |
Name |
Description |
| BROWSEINFO |
lbpi |
// Pointer to a BROWSEINFO structure that contains information used to display the dialog box.
|
Returns
Declaration
[CLSCompliant(false)]
public static int Shell_NotifyIcon(NotifyCommand cmd, ref NOTIFYICONDATA data)
Parameters
Returns
Declaration
public static IntPtr ShellExecute(IntPtr hwnd, string lpOperation, string lpFile, string lpParameters, string lpDirectory, int nShowCmd)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hwnd |
|
| System.String |
lpOperation |
|
| System.String |
lpFile |
|
| System.String |
lpParameters |
|
| System.String |
lpDirectory |
|
| System.Int32 |
nShowCmd |
|
Returns
Retrieves the IShellFolder interface for the desktop folder,
which is the root of the Shell's namespace.
Declaration
public static int SHGetDesktopFolder(out IntPtr ppshf)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
ppshf |
Address that receives an IShellFolder interface pointer for the desktop folder.
|
Returns
Retrieves the path of a folder as an PIDL.
Declaration
[CLSCompliant(false)]
public static int SHGetFolderLocation(IntPtr hwndOwner, int nFolder, IntPtr hToken, uint dwReserved, out IntPtr ppidl)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hwndOwner |
Handle to the owner window.
|
| System.Int32 |
nFolder |
A CSIDL value that identifies the folder to be located
|
| System.IntPtr |
hToken |
Token that can be used to represent a particular user
|
| System.UInt32 |
dwReserved |
Reserved
|
| System.IntPtr |
ppidl |
Address of a pointer to an item identifier list structure specifying the folder's location relative to the root of the namespace ( the desktop ).
|
Returns
SHGetFolderPath(IntPtr, Int32, IntPtr, UInt32, StringBuilder)
Takes the CSIDL of a folder and returns the pathname.
Declaration
[CLSCompliant(false)]
public static int SHGetFolderPath(IntPtr hwndOwner, int nFolder, IntPtr hToken, uint dwFlags, StringBuilder pszPath)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hwndOwner |
Handle to an owner window.
|
| System.Int32 |
nFolder |
A CSIDL value that identifies the folder whose path is to be retrieved.
|
| System.IntPtr |
hToken |
An access token that can be used to represent a particular user.
|
| System.UInt32 |
dwFlags |
Flags to specify which path is to be returned. It is used for cases where the folder associated with a CSIDL may be moved or renamed by the user.
|
| System.Text.StringBuilder |
pszPath |
Pointer to a null-terminated string which will receive the path.
|
Returns
Retrieves a pointer to the Shell's IMalloc interface.
Declaration
public static int SHGetMalloc(out IntPtr hObject)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hObject |
Address of a pointer that receives the Shell's IMalloc interface pointer.
|
Returns
SHGetPathFromIDList(IntPtr, StringBuilder)
Converts an item identifier list to a file system path.
Declaration
public static int SHGetPathFromIDList(IntPtr pidl, StringBuilder pszPath)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
pidl |
Address of an item identifier list that specifies a file or directory location relative to the root of the namespace ( the desktop ).
|
| System.Text.StringBuilder |
pszPath |
Address of a buffer to receive the file system path.
|
Returns
Declaration
public static int ShowScrollBar(IntPtr hWnd, int bar, int show)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.Int32 |
bar |
|
| System.Int32 |
show |
|
Returns
Declaration
public static bool ShowWindow(IntPtr hWnd, short State)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| System.Int16 |
State |
|
Returns
Translates a Shell namespace object's display name into an item
identifier list and returns the attributes of the object. This function is
the preferred method to convert a string to a pointer to an item identifier
list ( PIDL ).
Declaration
[CLSCompliant(false)]
public static int SHParseDisplayName(string pszName, IntPtr pBndContext, out IntPtr ppidl, uint AttrToQuery, out uint ResultAttr)
Parameters
| Type |
Name |
Description |
| System.String |
pszName |
Pointer to a zero-terminated wide string that contains the display name to parse.
|
| System.IntPtr |
pBndContext |
Optional bind context that controls the parsing operation. This parameter is normally set to NULL.
|
| System.IntPtr |
ppidl |
Address of a pointer to a variable of type ITEMIDLIST that receives the item identifier list for the object.
|
| System.UInt32 |
AttrToQuery |
ULONG value that specifies the attributes to query.
|
| System.UInt32 |
ResultAttr |
Pointer to a ULONG. On return, those attributes that are true for the object and were requested in AttrToQuery will be set.
|
Returns
Declaration
public static bool StretchBlt(IntPtr hDCDest, int XOriginDest, int YOriginDest, int WidthDest, int HeightDest, IntPtr hDCSrc, int XOriginScr, int YOriginSrc, int WidthScr, int HeightScr, PatBltTypes Rop)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hDCDest |
|
| System.Int32 |
XOriginDest |
|
| System.Int32 |
YOriginDest |
|
| System.Int32 |
WidthDest |
|
| System.Int32 |
HeightDest |
|
| System.IntPtr |
hDCSrc |
|
| System.Int32 |
XOriginScr |
|
| System.Int32 |
YOriginSrc |
|
| System.Int32 |
WidthScr |
|
| System.Int32 |
HeightScr |
|
| PatBltTypes |
Rop |
|
Returns
Accepts a STRRET structure returned by
ShellFolder::GetDisplayNameOf that contains or points to a string, and then
returns that string as a BSTR.
Declaration
[CLSCompliant(false)]
public static int StrRetToBSTR(ref STRRET pstr, IntPtr pidl, out string pbstr)
Parameters
| Type |
Name |
Description |
| STRRET |
pstr |
Pointer to a STRRET structure.
|
| System.IntPtr |
pidl |
Pointer to an ITEMIDLIST uniquely identifying a file object or subfolder relative to the parent folder.
|
| System.String |
pbstr |
Pointer to a variable of type BSTR that contains the converted string.
|
Returns
StrRetToBuf(ref STRRET, IntPtr, StringBuilder, UInt32)
Takes a STRRET structure returned by IShellFolder::GetDisplayNameOf,
converts it to a string, and places the result in a buffer.
Declaration
[CLSCompliant(false)]
public static int StrRetToBuf(ref STRRET pstr, IntPtr pidl, StringBuilder pszBuf, uint cchBuf)
Parameters
| Type |
Name |
Description |
| STRRET |
pstr |
Pointer to the STRRET structure. When the function returns, this pointer will no longer be valid.
|
| System.IntPtr |
pidl |
Pointer to the item's ITEMIDLIST structure.
|
| System.Text.StringBuilder |
pszBuf |
Buffer to hold the display name. It will be returned as a null-terminated string. If cchBuf is too small, the name will be truncated to fit.
|
| System.UInt32 |
cchBuf |
Size of pszBuf, in characters. If cchBuf is too small, the string will be truncated to fit.
|
Returns
Declaration
[CLSCompliant(false)]
public static bool TrackMouseEvent(ref TRACKMOUSEEVENTS tme)
Parameters
Returns
Declaration
[CLSCompliant(false)]
public static int TrackPopupMenuEx(IntPtr hMenu, uint uFlags, int x, int y, IntPtr hWnd, IntPtr ignore)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hMenu |
|
| System.UInt32 |
uFlags |
|
| System.Int32 |
x |
|
| System.Int32 |
y |
|
| System.IntPtr |
hWnd |
|
| System.IntPtr |
ignore |
|
Returns
Declaration
public static bool TranslateMessage(ref MSG msg)
Parameters
| Type |
Name |
Description |
| MSG |
msg |
|
Returns
Declaration
public static bool UnhookWindowsHookEx(IntPtr hhook)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hhook |
|
Returns
Declaration
public static bool UpdateLayeredWindow(IntPtr hwnd, IntPtr hdcDst, ref POINT pptDst, ref WIN32SIZE psize, IntPtr hdcSrc, ref POINT pprSrc, int crKey, ref BLENDFUNCTION pblend, int dwFlags)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hwnd |
|
| System.IntPtr |
hdcDst |
|
| POINT |
pptDst |
|
| WIN32SIZE |
psize |
|
| System.IntPtr |
hdcSrc |
|
| POINT |
pprSrc |
|
| System.Int32 |
crKey |
|
| BLENDFUNCTION |
pblend |
|
| System.Int32 |
dwFlags |
|
Returns
Declaration
public static bool UpdateWindow(IntPtr hWnd)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
Returns
Declaration
public static int ValidateRect(IntPtr hWnd, ref RECT rc)
Parameters
| Type |
Name |
Description |
| System.IntPtr |
hWnd |
|
| RECT |
rc |
|
Returns
Declaration
public static bool WaitMessage()
Returns
Declaration
public static IntPtr WindowFromPoint(POINT pt)
Parameters
| Type |
Name |
Description |
| POINT |
pt |
|
Returns