Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "HWND" in [All]

Delegates

.

public delegate int BrowseCallbackProc(IntPtr hwnd, int uMsg, IntPtr lParam, IntPtr lpData);

.

Public Delegate Function BrowseCallbackProc(hwnd As IntPtr, uMsg As Integer, lParam As IntPtr, lpData As IntPtr) As Integer

.

private delegate bool EnumWindowsProc(IntPtr hWnd, IntPtr lParam);

.

Private Delegate Function EnumWindowsProc(ByVal hWnd As IntPtr, ByVal lParam As IntPtr) As Boolean

.

If you’re going to use the lParam to return a by-value result (such as the hwnd of a window you are looking for), you’ll want to send lParam by reference:

.

private delegate bool EnumWindowsProc(IntPtr hWnd, ref IntPtr lParam);

.

Private Delegate Function EnumWindowsProc(ByVal hWnd As IntPtr, ByRef lParam As IntPtr) As Boolean

.

hwnd in Type: HWND A handle to the window associated with the timer.

.

delegate IntPtr WndProc (IntPtr hWnd, uint msg, IntPtr wParam, IntPtr lParam);

.

Delegate Function WndProc (ByVal hWnd As IntPtr, ByVal msg As Integer, _

.

private delegate IntPtr WndProc(IntPtr hWnd, uint msg, IntPtr wParam, IntPtr lParam);

.

Private Delegate Function WndProc(ByVal hWnd As IntPtr, ByVal msg As UInteger, ByVal wParam As IntPtr, ByVal lParam As IntPtr) As IntPtr

psapi

.

IntPtr hWnd = WindowFromPoint(pt);

.

GetWindowThreadProcessId(hWnd, out pid);

mpr

.

private static extern int WNetAddConnection3(IntPtr hWndOwner,

.

    ''' <param name="hWndOwner"></param>

.

    Private Shared Function WNetAddConnection3(ByVal hWndOwner As IntPtr, _

.

WNetAddConnection3(hWnd, ref ConnInf, null, null,

.

private static extern int WNetAddConnection3(IntPtr hWndOwner,

.

    ''' <param name="hWndOwner"></param>

.

    Private Shared Function WNetAddConnection3(ByVal hWndOwner As IntPtr, _

.

WNetAddConnection3(hWnd, ref ConnInf, null, null,

.

    IntPtr      hwndOwner,

mapi32

.

  uint error = MAPILogon(hwnd, null, null, MAPI_LOGON_UI, 0, ref session);

.

    Private Shared Function MAPISendMail(ByVal sess As IntPtr, ByVal hwnd As IntPtr, ByVal message As MapiMessage,

.

    static extern int MAPISendMail(IntPtr sess, IntPtr hwnd, MapiMessage message, int flg, int rsv);

wtsapi32

.

static extern bool WTSRegisterSessionNotification(IntPtr hWnd, [MarshalAs(UnmanagedType.U4)] int dwFlags);

.

Declare Function WTSRegisterSessionNotification Lib "wtsapi32.dll" (ByVal hWnd as IntPtr, ByVal dwFlags as Int32) As Boolean

.

        private static extern bool WTSRegisterSessionNotification(IntPtr hWnd, [MarshalAs(UnmanagedType.U4)]int dwFlags);

.

        private static extern bool WTSUnRegisterSessionNotification(IntPtr hWnd);

comctl32

.

        Dim hwnd As IntPtr

.

        SetReaderModeInfo.hwnd = Me.Handle

.

    Public Shared Function GetScrollPos(ByVal hWnd As IntPtr, ByVal nBar As Integer) As Integer

.

    Private Shared Function SetScrollPos(ByVal hWnd As IntPtr, ByVal nBar As Integer, ByVal nPos As Integer, ByVal bRedraw As Boolean) As Integer

.

/// <param name="hwndLock">Handle to the window that owns the drag image.</param>

.

internal static extern bool ImageList_DragEnter(IntPtr hwndLock, int x, int y);

.

''' <param name="hwndLock">Handle to the window that owns the drag image.</param>

.

Friend Shared Function ImageList_DragEnter(hwndLock As IntPtr, x As Integer, y As Integer) As <MarshalAs(UnmanagedType.Bool)> Boolean

.

/// <param name="hwndLock">Handle to the window that owns the drag image.</param>

.

internal static extern bool ImageList_DragLeave(IntPtr hwndLock);

.

''' <param name="hwndLock">Handle to the window that owns the drag image.</param>

.

Friend Shared Function ImageList_DragLeave(hwndLock As IntPtr) As <MarshalAs(UnmanagedType.Bool)> Boolean

.

        public IntPtr hwndParent;

.

        public IntPtr hwndParent;

kernel32

.

static extern bool CommConfigDialog(string lpszName, IntPtr hWnd,

.

Private Function ShowWindow(ByVal hwnd As IntPtr, ByVal nCmdShow As ShowWindowCommands) As Boolean

.

Dim hwnd As New IntPtr(0)

.

hwnd = GetConsoleWindow()

.

If (hwnd <> IntPtr.Zero) Then

.

    ShowWindow(hwnd, ShowWindowCommands.ShowMinimized)

.

  SetPriorityClass(mhHwnd, CType(20, System.IntPtr))    '20 = high !!

credui

.

      public IntPtr hwndParent;

.

    credui.hwndParent = this.Handle;

.

     public IntPtr hwndParent;

Structures

.

    public IntPtr hwndOwner;

.

     Public hwndOwner As IntPtr

.

   public IntPtr hwnd;

.
    • Desktop handle to the window specified by hwnd. This is returned only if BroadcastSystemMessageEx specifies BSF_RETURNHDESK and BSF_QUERY.
.
  • hwnd
.

        public IntPtr        hwnd;          // might be NULL (indicating no owner window)

.

    public IntPtr hwndCombo;

.

    public IntPtr hwndEdit;

.

    public IntPtr hwndList;

.

    hwndCombo As Long

.

    hwndEdit As Long

.

    hwndList As Long

.

   SendMessage(hWnd, WM_COPYDATA, IntPtr.Zero, copyDataBuff);

.

        public IntPtr hwndParent;

.

        Public hwndParent As IntPtr

.

            public IntPtr hwndParent;

.

    Public hwndParent As IntPtr

.

    public IntPtr hwndApp;

.

    Public hwndApp As IntPtr

.

     IntPtr hWnd;

.

        public IntPtr hwnd;

.

        Public hWnd As IntPtr

.

    public IntPtr hwnd;

.

    Public hwnd As IntPtr

.

    public IntPtr        hwndActive;

.

    public IntPtr        hwndFocus;

.

    public IntPtr        hwndCapture;

.

    public IntPtr        hwndMenuOwner;

.

    public IntPtr        hwndMoveSize;

.

    public IntPtr        hwndCaret;

.

    Public hwndActive As IntPtr

.

    Public hwndFocus As IntPtr

.

    Public hwndCapture As IntPtr

.

    Public hwndMenuOwner As IntPtr

.

    Public hwndMoveSize As IntPtr

.

    Public hwndCaret As IntPtr

.

    public IntPtr hwnd;

.

    public IntPtr hwnd;

36: MSG
.

    public IntPtr hwndOwner;

37: NMHDR
.

   public IntPtr hwndFrom;

.

   Public hwndFrom As IntPtr

.

    /// taskbar status area. The Shell uses hWnd and uID to identify which icon to operate on

.

    public IntPtr hwnd;

.

    /// Application-defined identifier of the taskbar icon. The Shell uses hWnd and uID to identify

.

    /// associated with a single hWnd by assigning each a different uID.

.

    /// notifications to the window identified in hWnd.

.

    public IntPtr hWnd;

.

    Dim hWnd As IntPtr

.

   public IntPtr hWnd;

.

    int hwndOwner;

.

    Public hwndOwner As IntPtr  

.

   public IntPtr hwndOwner;

.

    Public hwndOwner As IntPtr

.

    public IntPtr hwndOwner;        

.

   public int hwndParent = 0;

.

        Dim hwnd As IntPtr

.

        Dim hwnd As IntPtr

.

        SetReaderModeInfo.hwnd = Me.Handle

.

        public IntPtr hwndChild;

.

    public IntPtr hwnd;

.

     Public hwnd As IntPtr

.

     hWnd As Long

.
  • Always set hwnd to my main app window (I was using IntPtr.Zero, this might not be required)
.

        public static extern bool GetTitleBarInfo(IntPtr hwnd, ref TITLEBARINFO pti);

.

   public IntPtr hwnd;

.

    Public hwnd As IntPtr

.

   public IntPtr  hwndTrack;

.

   Public hwndTrack As IntPtr

.

        public IntPtr hwnd;

.

        public IntPtr hwndInsertAfter;

.

        Public hwnd As IntPtr

.

        Public hwndInsertAfter As IntPtr

shlwapi

.

     [In] IntPtr hwnd);

.

    void SetWindow(IntPtr hwnd, ref RECT rect);

.

    void QueryFocus(out IntPtr phwnd);

.

    IntPtr hwndEdit,

.

Declare Function SHAutoComplete Lib "shlwapi.dll" (ByVal hWndEdit As IntPtr, ByVal dwFlags As AutoCompleteFlags) As Integer

.

    [In] IntPtr hwnd,

gdi32

.

    static extern System.UInt16  SetWindowRgn(IntPtr hWnd, IntPtr hRgn, bool bRedraw);

.

        static extern IntPtr GetDC(IntPtr hWnd);

.

        static extern IntPtr GetDC(IntPtr hWnd);

.

            Graphics graphics = Graphics.FromHwnd(IntPtr.Zero);

.

            Graphics graphics = Graphics.FromHwnd(IntPtr.Zero);

.

    Graphics vGraphics = Graphics.FromHwnd(Handle);

Cut off search results after 60. Please refine your search.


 
Access PInvoke.net directly from VS: