menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class WindowsAPI - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class WindowsAPI

    Windows API Functions

    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()
    Namespace: Syncfusion.Windows.Forms.Tools.Win32API
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    [CLSCompliant(false)]
    public class WindowsAPI

    Fields

    PROGRESSBARCLASSNAME

    Declaration
    public const string PROGRESSBARCLASSNAME = "msctls_progress32"
    Field Value
    Type
    System.String

    REBARCLASSNAME

    Declaration
    public const string REBARCLASSNAME = "ReBarWindow32"
    Field Value
    Type
    System.String

    SCROLLBAR

    Declaration
    public const string SCROLLBAR = "SCROLLBAR"
    Field Value
    Type
    System.String

    TOOLBARCLASSNAME

    Declaration
    public const string TOOLBARCLASSNAME = "ToolbarWindow32"
    Field Value
    Type
    System.String

    Methods

    AdjustWindowRectEx(ref RECT, Int32, Boolean, Int32)

    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
    Type
    System.Int32

    AnimateWindow(IntPtr, UInt32, UInt32)

    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
    Type
    System.Int32

    BeginPaint(IntPtr, ref PAINTSTRUCT)

    Declaration
    public static IntPtr BeginPaint(IntPtr hWnd, ref PAINTSTRUCT ps)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    PAINTSTRUCT ps
    Returns
    Type
    System.IntPtr

    BitBlt(IntPtr, Int32, Int32, Int32, Int32, IntPtr, Int32, Int32, UInt32)

    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
    Type
    System.Boolean

    BringWindowToTop(IntPtr)

    Declaration
    public static int BringWindowToTop(IntPtr hWnd)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    Returns
    Type
    System.Int32

    CallNextHookEx(IntPtr, Int32, IntPtr, IntPtr)

    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
    Type
    System.IntPtr

    CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)

    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
    Type
    System.Int32

    ChangeClipboardChain(IntPtr, IntPtr)

    Declaration
    public static int ChangeClipboardChain(IntPtr hWndRemove, IntPtr hWndNewNext)
    Parameters
    Type Name Description
    System.IntPtr hWndRemove
    System.IntPtr hWndNewNext
    Returns
    Type
    System.Int32

    ChildWindowFromPoint(IntPtr, POINT)

    Declaration
    public static IntPtr ChildWindowFromPoint(IntPtr hWndParent, POINT point)
    Parameters
    Type Name Description
    System.IntPtr hWndParent
    POINT point
    Returns
    Type
    System.IntPtr

    ClientToScreen(IntPtr, ref POINT)

    Declaration
    public static bool ClientToScreen(IntPtr hWnd, ref POINT pt)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    POINT pt
    Returns
    Type
    System.Boolean

    CloseClipboard()

    Declaration
    public static bool CloseClipboard()
    Returns
    Type
    System.Boolean

    CreateCompatibleBitmap(IntPtr, Int32, Int32)

    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
    Type
    System.IntPtr

    CreateCompatibleDC(IntPtr)

    Declaration
    public static IntPtr CreateCompatibleDC(IntPtr hDC)
    Parameters
    Type Name Description
    System.IntPtr hDC
    Returns
    Type
    System.IntPtr

    CreateDIBSection(IntPtr, ref BITMAPINFO_FLAT, Int32, ref IntPtr, IntPtr, Int32)

    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
    Type
    System.IntPtr

    CreateRoundRectRgn(Int32, Int32, Int32, Int32, Int32, Int32)

    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
    Type
    System.IntPtr

    CreateSolidBrush(UInt32)

    Declaration
    [CLSCompliant(false)]
    public static IntPtr CreateSolidBrush(uint crColor)
    Parameters
    Type Name Description
    System.UInt32 crColor
    Returns
    Type
    System.IntPtr

    DefWindowProc(IntPtr, Msg, IntPtr, ref RECT)

    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
    Type
    System.Int32

    DefWindowProc(IntPtr, Int32, IntPtr, IntPtr)

    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
    Type
    System.Int32

    DeleteDC(IntPtr)

    Declaration
    public static IntPtr DeleteDC(IntPtr hDC)
    Parameters
    Type Name Description
    System.IntPtr hDC
    Returns
    Type
    System.IntPtr

    DeleteObject(IntPtr)

    Declaration
    public static bool DeleteObject(IntPtr hObject)
    Parameters
    Type Name Description
    System.IntPtr hObject
    Returns
    Type
    System.Boolean

    DispatchMessage(ref MSG)

    Declaration
    public static bool DispatchMessage(ref MSG msg)
    Parameters
    Type Name Description
    MSG msg
    Returns
    Type
    System.Boolean

    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
    Type
    System.Int32

    EmptyClipboard()

    Declaration
    public static bool EmptyClipboard()
    Returns
    Type
    System.Boolean

    EnableScrollBar(IntPtr, UInt32, UInt32)

    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
    Type
    System.Int32

    EndPaint(IntPtr, ref PAINTSTRUCT)

    Declaration
    public static bool EndPaint(IntPtr hWnd, ref PAINTSTRUCT ps)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    PAINTSTRUCT ps
    Returns
    Type
    System.Boolean

    ExcludeClipRect(IntPtr, Int32, Int32, Int32, Int32)

    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
    Type
    System.Int32

    FillRect(IntPtr, ref RECT, IntPtr)

    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
    Type
    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
    System.IntPtr

    FindWindowEx(IntPtr, IntPtr, String, IntPtr)

    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
    Type
    System.IntPtr

    FindWindowEx(IntPtr, IntPtr, String, String)

    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
    Type
    System.IntPtr

    GET_X_LPARAM(Int64)

    Declaration
    public static int GET_X_LPARAM(long lParam)
    Parameters
    Type Name Description
    System.Int64 lParam
    Returns
    Type
    System.Int32

    GET_X_LPARAM(IntPtr)

    Declaration
    public static int GET_X_LPARAM(IntPtr lParam)
    Parameters
    Type Name Description
    System.IntPtr lParam
    Returns
    Type
    System.Int32

    GET_Y_LPARAM(Int64)

    Declaration
    public static int GET_Y_LPARAM(long lParam)
    Parameters
    Type Name Description
    System.Int64 lParam
    Returns
    Type
    System.Int32

    GET_Y_LPARAM(IntPtr)

    Declaration
    public static int GET_Y_LPARAM(IntPtr lParam)
    Parameters
    Type Name Description
    System.IntPtr lParam
    Returns
    Type
    System.Int32

    GetAsyncKeyState(VirtualKeys)

    Declaration
    public static short GetAsyncKeyState(VirtualKeys vkey)
    Parameters
    Type Name Description
    VirtualKeys vkey
    Returns
    Type
    System.Int16

    GetCaretPos(ref POINT)

    Declaration
    public static int GetCaretPos(ref POINT pnt)
    Parameters
    Type Name Description
    POINT pnt
    Returns
    Type
    System.Int32

    GetClassName(IntPtr, out STRINGBUFFER, Int32)

    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
    Type
    System.Int32

    GetClientRect(IntPtr, ref RECT)

    Declaration
    public static int GetClientRect(IntPtr hWnd, ref RECT rc)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    RECT rc
    Returns
    Type
    System.Int32

    GetComboBoxInfo(IntPtr, ref COMBOBOXINFO)

    Declaration
    [CLSCompliant(false)]
    public static bool GetComboBoxInfo(IntPtr hWnd, ref COMBOBOXINFO cbi)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    COMBOBOXINFO cbi
    Returns
    Type
    System.Boolean

    GetCommonControlDLLVersion(ref DLLVERSIONINFO)

    Declaration
    public static int GetCommonControlDLLVersion(ref DLLVERSIONINFO dvi)
    Parameters
    Type Name Description
    DLLVERSIONINFO dvi
    Returns
    Type
    System.Int32

    GetCurrentThreadId()

    Declaration
    public static int GetCurrentThreadId()
    Returns
    Type
    System.Int32

    GetCursor()

    Declaration
    public static IntPtr GetCursor()
    Returns
    Type
    System.IntPtr

    GetCursorPos(ref POINT)

    Declaration
    public static int GetCursorPos(ref POINT pnt)
    Parameters
    Type Name Description
    POINT pnt
    Returns
    Type
    System.Int32

    GetDC(IntPtr)

    Declaration
    public static IntPtr GetDC(IntPtr hWnd)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    Returns
    Type
    System.IntPtr

    GetDCEx(IntPtr, IntPtr, GetDCExFlags)

    Declaration
    public static IntPtr GetDCEx(IntPtr hWnd, IntPtr hRegion, GetDCExFlags flags)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    System.IntPtr hRegion
    GetDCExFlags flags
    Returns
    Type
    System.IntPtr

    GetDesktopWindow()

    Declaration
    public static IntPtr GetDesktopWindow()
    Returns
    Type
    System.IntPtr

    GetDIBits(IntPtr, IntPtr, Int32, Int32, Int32, ref BITMAPINFO_FLAT, Int32)

    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
    Type
    System.Int32

    GetDIBits(IntPtr, IntPtr, Int32, Int32, Int32, BITMAPINFOHEADER, Int32)

    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
    Type
    System.Int32

    GetDlgItem(IntPtr, Int32)

    Declaration
    public static IntPtr GetDlgItem(IntPtr hDlg, int nControlID)
    Parameters
    Type Name Description
    System.IntPtr hDlg
    System.Int32 nControlID
    Returns
    Type
    System.IntPtr

    GetExStyle(Control)

    Declaration
    public static int GetExStyle(Control ctrl)
    Parameters
    Type Name Description
    System.Windows.Forms.Control ctrl
    Returns
    Type
    System.Int32

    GetFocus()

    Declaration
    public static IntPtr GetFocus()
    Returns
    Type
    System.IntPtr

    GetKeyState(Int32)

    Declaration
    [CLSCompliant(false)]
    public static ushort GetKeyState(int virtKey)
    Parameters
    Type Name Description
    System.Int32 virtKey
    Returns
    Type
    System.UInt16

    GetLastError()

    Declaration
    public static int GetLastError()
    Returns
    Type
    System.Int32

    GetMenuItemRect(IntPtr, IntPtr, UInt32, ref RECT)

    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
    Type
    System.Boolean

    GetMessage(ref MSG, Int32, UInt32, UInt32)

    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
    Type
    System.Boolean

    GetObjectType(IntPtr)

    Declaration
    public static int GetObjectType(IntPtr handle)
    Parameters
    Type Name Description
    System.IntPtr handle
    Returns
    Type
    System.Int32

    GetPaletteEntries(IntPtr, Int32, Int32, Byte[])

    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
    Type
    System.IntPtr

    GetParent(IntPtr)

    Declaration
    public static IntPtr GetParent(IntPtr hWnd)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    Returns
    Type
    System.IntPtr

    GetPixel(IntPtr, Int32, Int32)

    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
    Type
    System.UInt32

    GetPointFromLPARAM(Int64)

    Declaration
    public static Point GetPointFromLPARAM(long lParam)
    Parameters
    Type Name Description
    System.Int64 lParam
    Returns
    Type
    System.Drawing.Point

    GetPointFromLPARAM(IntPtr)

    Declaration
    public static Point GetPointFromLPARAM(IntPtr lParam)
    Parameters
    Type Name Description
    System.IntPtr lParam
    Returns
    Type
    System.Drawing.Point

    GetScrollInfo(IntPtr, Int32, ref SCROLLINFO)

    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
    Type
    System.Int32

    GetStyle(Control)

    Declaration
    public static int GetStyle(Control ctrl)
    Parameters
    Type Name Description
    System.Windows.Forms.Control ctrl
    Returns
    Type
    System.Int32

    GetSystemMetrics(SystemMetricsCodes)

    Declaration
    public static int GetSystemMetrics(SystemMetricsCodes nIndex)
    Parameters
    Type Name Description
    SystemMetricsCodes nIndex
    Returns
    Type
    System.Int32

    GetSystemPaletteEntries(IntPtr, Int32, Int32, Byte[])

    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
    Type
    System.IntPtr

    GetTopWindow(IntPtr)

    Declaration
    public static IntPtr GetTopWindow(IntPtr hWnd)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    Returns
    Type
    System.IntPtr

    GetUpdateRect(IntPtr, ref RECT, Boolean)

    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
    Type
    System.Boolean

    GetWindow(IntPtr, GetWindowCmd)

    Declaration
    public static IntPtr GetWindow(IntPtr hWnd, GetWindowCmd cmd)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    GetWindowCmd cmd
    Returns
    Type
    System.IntPtr

    GetWindowDC(IntPtr)

    Declaration
    public static IntPtr GetWindowDC(IntPtr hWnd)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    Returns
    Type
    System.IntPtr

    GetWindowLong(IntPtr, Int32)

    Declaration
    public static int GetWindowLong(IntPtr hWnd, int nIndex)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    System.Int32 nIndex
    Returns
    Type
    System.Int32

    GetWindowPlacement(IntPtr, ref WINDOWPLACEMENT)

    Declaration
    [CLSCompliant(false)]
    public static int GetWindowPlacement(IntPtr hWnd, ref WINDOWPLACEMENT wp)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    WINDOWPLACEMENT wp
    Returns
    Type
    System.Int32

    GetWindowRect(IntPtr, ref RECT)

    Declaration
    public static bool GetWindowRect(IntPtr hWnd, ref RECT rect)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    RECT rect
    Returns
    Type
    System.Boolean

    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
    Type
    System.Int32

    HIGH_ORDER(Int32)

    Declaration
    public static int HIGH_ORDER(int param)
    Parameters
    Type Name Description
    System.Int32 param
    Returns
    Type
    System.Int32

    HIGH_ORDER(IntPtr)

    Declaration
    public static int HIGH_ORDER(IntPtr param)
    Parameters
    Type Name Description
    System.IntPtr param
    Returns
    Type
    System.Int32

    ImageList_Add(IntPtr, IntPtr, IntPtr)

    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
    Type
    System.Int32

    ImageList_BeginDrag(IntPtr, Int32, Int32, Int32)

    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
    Type
    System.Boolean

    ImageList_Create(Int32, Int32, UInt32, Int32, Int32)

    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
    Type
    System.IntPtr

    ImageList_Destroy(IntPtr)

    Declaration
    public static bool ImageList_Destroy(IntPtr handle)
    Parameters
    Type Name Description
    System.IntPtr handle
    Returns
    Type
    System.Boolean

    ImageList_DragEnter(IntPtr, Int32, Int32)

    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
    Type
    System.Boolean

    ImageList_DragLeave(IntPtr)

    Declaration
    public static bool ImageList_DragLeave(IntPtr hWndLock)
    Parameters
    Type Name Description
    System.IntPtr hWndLock
    Returns
    Type
    System.Boolean

    ImageList_DragMove(Int32, Int32)

    Declaration
    public static bool ImageList_DragMove(int x, int y)
    Parameters
    Type Name Description
    System.Int32 x
    System.Int32 y
    Returns
    Type
    System.Boolean

    ImageList_EndDrag()

    Declaration
    public static void ImageList_EndDrag()

    ImageList_Remove(IntPtr, Int32)

    Declaration
    public static bool ImageList_Remove(IntPtr imageHandle, int index)
    Parameters
    Type Name Description
    System.IntPtr imageHandle
    System.Int32 index
    Returns
    Type
    System.Boolean

    InflateRect(ref RECT, Int32, Int32)

    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
    Type
    System.Boolean

    InitCommonControls()

    Declaration
    public static bool InitCommonControls()
    Returns
    Type
    System.Boolean

    InitCommonControlsEx(INITCOMMONCONTROLSEX)

    Declaration
    public static bool InitCommonControlsEx(INITCOMMONCONTROLSEX icc)
    Parameters
    Type Name Description
    INITCOMMONCONTROLSEX icc
    Returns
    Type
    System.Boolean

    InvalidateRect(IntPtr, ref RECT, Int32)

    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
    Type
    System.Int32

    InvalidateRect(IntPtr, IntPtr, Int32)

    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
    Type
    System.Int32

    IsChild(IntPtr, IntPtr)

    Declaration
    public static bool IsChild(IntPtr hWndParent, IntPtr hWnd)
    Parameters
    Type Name Description
    System.IntPtr hWndParent
    System.IntPtr hWnd
    Returns
    Type
    System.Boolean

    IsIconic(IntPtr)

    Declaration
    public static bool IsIconic(IntPtr hWnd)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    Returns
    Type
    System.Boolean

    IsWindow(IntPtr)

    Declaration
    public static int IsWindow(IntPtr hWnd)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    Returns
    Type
    System.Int32

    IsWindowEnabled(IntPtr)

    Declaration
    public static bool IsWindowEnabled(IntPtr hWnd)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    Returns
    Type
    System.Boolean

    IsWindowVisible(IntPtr)

    Declaration
    public static bool IsWindowVisible(IntPtr hWnd)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    Returns
    Type
    System.Boolean

    LoadCursor(IntPtr, UInt32)

    Declaration
    [CLSCompliant(false)]
    public static IntPtr LoadCursor(IntPtr hInstance, uint cursor)
    Parameters
    Type Name Description
    System.IntPtr hInstance
    System.UInt32 cursor
    Returns
    Type
    System.IntPtr

    LOW_ORDER(Int32)

    Declaration
    public static int LOW_ORDER(int param)
    Parameters
    Type Name Description
    System.Int32 param
    Returns
    Type
    System.Int32

    LOW_ORDER(IntPtr)

    Declaration
    public static int LOW_ORDER(IntPtr param)
    Parameters
    Type Name Description
    System.IntPtr param
    Returns
    Type
    System.Int32

    MAKELONG(Int32, Int32)

    Declaration
    public static int MAKELONG(int x, int y)
    Parameters
    Type Name Description
    System.Int32 x
    System.Int32 y
    Returns
    Type
    System.Int32

    MapWindowPoints(IntPtr, IntPtr, ref POINT, UInt32)

    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
    Type
    System.Int32

    MoveWindow(IntPtr, Int32, Int32, Int32, Int32, Boolean)

    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
    Type
    System.Boolean

    OpenClipboard(IntPtr)

    Declaration
    public static bool OpenClipboard(IntPtr hWndNewOwner)
    Parameters
    Type Name Description
    System.IntPtr hWndNewOwner
    Returns
    Type
    System.Boolean

    PatBlt(IntPtr, Int32, Int32, Int32, Int32, UInt32)

    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
    Type
    System.Boolean

    PeekMessage(ref MSG, Int32, UInt32, UInt32, UInt32)

    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
    Type
    System.Boolean

    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
    Type
    System.IntPtr

    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
    Type
    System.IntPtr

    PtInRect(ref RECT, POINT)

    Declaration
    public static bool PtInRect(ref RECT rc, POINT pt)
    Parameters
    Type Name Description
    RECT rc
    POINT pt
    Returns
    Type
    System.Boolean

    RedrawWindow(IntPtr, ref RECT, IntPtr, RedrawWindowFlags)

    Declaration
    public static bool RedrawWindow(IntPtr hWnd, ref RECT rcUpdate, IntPtr hrgnUpdate, RedrawWindowFlags flags)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    RECT rcUpdate
    System.IntPtr hrgnUpdate
    RedrawWindowFlags flags
    Returns
    Type
    System.Boolean

    RedrawWindow(IntPtr, IntPtr, IntPtr, RedrawWindowFlags)

    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
    Type
    System.Boolean

    ReleaseCapture()

    Declaration
    public static bool ReleaseCapture()
    Returns
    Type
    System.Boolean

    ReleaseDC(IntPtr, IntPtr)

    Declaration
    public static int ReleaseDC(IntPtr hWnd, IntPtr hDC)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    System.IntPtr hDC
    Returns
    Type
    System.Int32

    ScreenToClient(IntPtr, ref POINT)

    Declaration
    public static bool ScreenToClient(IntPtr hWnd, ref POINT pt)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    POINT pt
    Returns
    Type
    System.Boolean

    ScrollWindowEx(IntPtr, Int32, Int32, ref RECT, ref RECT, IntPtr, ref RECT, UInt32)

    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
    Type
    System.Int32

    SelectObject(IntPtr, IntPtr)

    Declaration
    public static IntPtr SelectObject(IntPtr hDC, IntPtr hObject)
    Parameters
    Type Name Description
    System.IntPtr hDC
    System.IntPtr hObject
    Returns
    Type
    System.IntPtr

    SendDlgItemMessage(IntPtr, Int32, Int32, Int32, Int32)

    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
    Type
    System.Int32

    SendMessage(IntPtr, Msg, Int32, Int32)

    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
    Type
    System.Int32

    SendMessage(IntPtr, SpinControlMsg, Int32, ref UDACCEL)

    Declaration
    [CLSCompliant(false)]
    public static int SendMessage(IntPtr hWnd, SpinControlMsg msg, int wParam, ref UDACCEL lParam)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    SpinControlMsg msg
    System.Int32 wParam
    UDACCEL lParam
    Returns
    Type
    System.Int32

    SendMessage(IntPtr, Int32, Int32, ref HD_HITTESTINFO)

    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

    SendMessage(IntPtr, Int32, Int32, ref HDITEM)

    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

    SendMessage(IntPtr, Int32, Int32, ref LVITEM)

    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

    SendMessage(IntPtr, Int32, Int32, ref MSG)

    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
    Type
    System.Int32

    SendMessage(IntPtr, Int32, Int32, ref PARAFORMAT2)

    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
    Type
    System.Int32

    SendMessage(IntPtr, Int32, Int32, ref POINT)

    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
    Type
    System.Int32

    SendMessage(IntPtr, Int32, Int32, ref REBARBANDINFO)

    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
    Type
    System.Int32

    SendMessage(IntPtr, Int32, Int32, ref RECT)

    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

    SendMessage(IntPtr, Int32, Int32, ref TBBUTTON)

    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

    SendMessage(IntPtr, Int32, Int32, ref TBBUTTONINFO)

    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

    SendMessage(IntPtr, Int32, Int32, ref TOOLINFO)

    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
    Type
    System.Int32

    SendMessage(IntPtr, Int32, Int32, ref TVITEM)

    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

    SendMessage(IntPtr, Int32, Int32, IntPtr)

    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
    Type
    System.IntPtr

    SendMessage(IntPtr, Int32, Int32, String)

    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
    Type
    System.IntPtr

    SendMessage(IntPtr, Int32, ref Int32, ref Int32)

    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
    Type
    System.IntPtr

    SendMessage(IntPtr, Int32, IntPtr, IntPtr)

    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
    Type
    System.IntPtr

    SetBkMode(IntPtr, BackgroundMode)

    Declaration
    public static int SetBkMode(IntPtr hDC, BackgroundMode mode)
    Parameters
    Type Name Description
    System.IntPtr hDC
    BackgroundMode mode
    Returns
    Type
    System.Int32

    SetClipboardData(UInt32, IntPtr)

    Declaration
    [CLSCompliant(false)]
    public static IntPtr SetClipboardData(uint Format, IntPtr hData)
    Parameters
    Type Name Description
    System.UInt32 Format
    System.IntPtr hData
    Returns
    Type
    System.IntPtr

    SetClipboardViewer(IntPtr)

    Declaration
    public static IntPtr SetClipboardViewer(IntPtr hWndNewViewer)
    Parameters
    Type Name Description
    System.IntPtr hWndNewViewer
    Returns
    Type
    System.IntPtr

    SetCursor(IntPtr)

    Declaration
    public static IntPtr SetCursor(IntPtr hCursor)
    Parameters
    Type Name Description
    System.IntPtr hCursor
    Returns
    Type
    System.IntPtr

    SetDCBrushColor(IntPtr, UInt32)

    Declaration
    [CLSCompliant(false)]
    public static uint SetDCBrushColor(IntPtr hdc, uint crColor)
    Parameters
    Type Name Description
    System.IntPtr hdc
    System.UInt32 crColor
    Returns
    Type
    System.UInt32

    SetFocus(IntPtr)

    Declaration
    public static IntPtr SetFocus(IntPtr hWnd)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    Returns
    Type
    System.IntPtr

    SetForegroundWindow(IntPtr)

    Declaration
    public static bool SetForegroundWindow(IntPtr hWnd)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    Returns
    Type
    System.Boolean

    SetLastError(Int32)

    Declaration
    public static void SetLastError(int error)
    Parameters
    Type Name Description
    System.Int32 error

    SetLayeredWindowAttributes(IntPtr, Int32, Int32, LayeredWindowFlags)

    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
    Type
    System.Boolean

    SetMapMode(IntPtr, Int32)

    Declaration
    public static int SetMapMode(IntPtr hDC, int fnMapMode)
    Parameters
    Type Name Description
    System.IntPtr hDC
    System.Int32 fnMapMode
    Returns
    Type
    System.Int32

    SetParent(IntPtr, IntPtr)

    Declaration
    public static IntPtr SetParent(IntPtr hChild, IntPtr hParent)
    Parameters
    Type Name Description
    System.IntPtr hChild
    System.IntPtr hParent
    Returns
    Type
    System.IntPtr

    SetPixel(IntPtr, Int32, Int32, Int32)

    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
    Type
    System.UInt32

    SetRedraw(Control, Boolean)

    Declaration
    public static void SetRedraw(Control ctrl, bool bRedraw)
    Parameters
    Type Name Description
    System.Windows.Forms.Control ctrl
    System.Boolean bRedraw

    SetScrollInfo(IntPtr, Int32, ref SCROLLINFO, Int32)

    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
    Type
    System.Int32

    SetStretchBltMode(IntPtr, StrechModeFlags)

    Declaration
    public static int SetStretchBltMode(IntPtr hDC, StrechModeFlags StrechMode)
    Parameters
    Type Name Description
    System.IntPtr hDC
    StrechModeFlags StrechMode
    Returns
    Type
    System.Int32

    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
    Type
    System.UInt32

    SetViewportOrgEx(IntPtr, Int32, Int32, Int32)

    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
    Type
    System.Int32

    SetWindowLong(IntPtr, Int32, WindowsAPI.WindowProc)

    Declaration
    public static int SetWindowLong(IntPtr hWnd, int nIndex, WindowsAPI.WindowProc wndProc)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    System.Int32 nIndex
    WindowsAPI.WindowProc wndProc
    Returns
    Type
    System.Int32

    SetWindowLong(IntPtr, Int32, Int32)

    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
    Type
    System.Int32

    SetWindowLong(IntPtr, Int32, IntPtr)

    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
    Type
    System.Int32

    SetWindowPos(IntPtr, IntPtr, Int32, Int32, Int32, Int32, SetWindowPosFlags)

    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
    Type
    System.Boolean

    SetWindowRgn(IntPtr, IntPtr, Boolean)

    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
    Type
    System.Boolean

    SetWindowsHookEx(Int32, WindowsAPI.HookProc, IntPtr, Int32)

    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
    Type
    System.IntPtr

    SetWindowText(IntPtr, String)

    Declaration
    public static int SetWindowText(IntPtr hWnd, string text)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    System.String text
    Returns
    Type
    System.Int32

    SetWindowTheme(IntPtr, String, String)

    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
    Type
    System.Int32

    SHBindToParent(IntPtr, Guid, out IntPtr, ref IntPtr)

    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
    Type
    System.Int32

    SHBrowseForFolder(ref BROWSEINFO)

    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
    Type
    System.IntPtr

    Shell_NotifyIcon(NotifyCommand, ref NOTIFYICONDATA)

    Declaration
    [CLSCompliant(false)]
    public static int Shell_NotifyIcon(NotifyCommand cmd, ref NOTIFYICONDATA data)
    Parameters
    Type Name Description
    NotifyCommand cmd
    NOTIFYICONDATA data
    Returns
    Type
    System.Int32

    ShellExecute(IntPtr, String, String, String, String, Int32)

    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
    Type
    System.IntPtr

    SHGetDesktopFolder(out IntPtr)

    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
    Type
    System.Int32

    SHGetFolderLocation(IntPtr, Int32, IntPtr, UInt32, out IntPtr)

    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
    Type
    System.Int32

    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
    Type
    System.Int32

    SHGetMalloc(out IntPtr)

    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
    Type
    System.Int32

    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
    Type
    System.Int32

    ShowScrollBar(IntPtr, Int32, Int32)

    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
    Type
    System.Int32

    ShowWindow(IntPtr, Int16)

    Declaration
    public static bool ShowWindow(IntPtr hWnd, short State)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    System.Int16 State
    Returns
    Type
    System.Boolean

    SHParseDisplayName(String, IntPtr, out IntPtr, UInt32, out UInt32)

    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
    Type
    System.Int32

    StretchBlt(IntPtr, Int32, Int32, Int32, Int32, IntPtr, Int32, Int32, Int32, Int32, PatBltTypes)

    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
    Type
    System.Boolean

    StrRetToBSTR(ref STRRET, IntPtr, out String)

    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
    Type
    System.Int32

    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
    Type
    System.Int32

    TrackMouseEvent(ref TRACKMOUSEEVENTS)

    Declaration
    [CLSCompliant(false)]
    public static bool TrackMouseEvent(ref TRACKMOUSEEVENTS tme)
    Parameters
    Type Name Description
    TRACKMOUSEEVENTS tme
    Returns
    Type
    System.Boolean

    TrackPopupMenuEx(IntPtr, UInt32, Int32, Int32, IntPtr, IntPtr)

    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
    Type
    System.Int32

    TranslateMessage(ref MSG)

    Declaration
    public static bool TranslateMessage(ref MSG msg)
    Parameters
    Type Name Description
    MSG msg
    Returns
    Type
    System.Boolean

    UnhookWindowsHookEx(IntPtr)

    Declaration
    public static bool UnhookWindowsHookEx(IntPtr hhook)
    Parameters
    Type Name Description
    System.IntPtr hhook
    Returns
    Type
    System.Boolean

    UpdateLayeredWindow(IntPtr, IntPtr, ref POINT, ref WIN32SIZE, IntPtr, ref POINT, Int32, ref BLENDFUNCTION, Int32)

    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
    Type
    System.Boolean

    UpdateWindow(IntPtr)

    Declaration
    public static bool UpdateWindow(IntPtr hWnd)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    Returns
    Type
    System.Boolean

    ValidateRect(IntPtr, ref RECT)

    Declaration
    public static int ValidateRect(IntPtr hWnd, ref RECT rc)
    Parameters
    Type Name Description
    System.IntPtr hWnd
    RECT rc
    Returns
    Type
    System.Int32

    WaitMessage()

    Declaration
    public static bool WaitMessage()
    Returns
    Type
    System.Boolean

    WindowFromPoint(POINT)

    Declaration
    public static IntPtr WindowFromPoint(POINT pt)
    Parameters
    Type Name Description
    POINT pt
    Returns
    Type
    System.IntPtr
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved