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]

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,

Interfaces

.

     int AddDesktopItemWithUI(IntPtr hwnd, ref COMPONENT pcomp, DtiAddUI dwFlags);

.

     int AddUrl(IntPtr hwnd, [MarshalAs(UnmanagedType.LPWStr)] string pszSource, ref COMPONENT pcomp, AddURL dwFlags);

.

    Function AddDesktopItemWithUI(ByVal hwnd As IntPtr, ByRef pcomp As COMPONENT, ByVal dwFlags As DtiAddUI) As Integer

.

    Function AddUrl(ByVal hwnd As IntPtr, <MarshalAs(UnmanagedType.LPWStr)> ByVal pszSource As String, ByRef pcomp As COMPONENT, ByVal dwFlags As AddURL) As Integer

.

   void Authenticate(IntPtr phwnd,

.

   Sub Authenticate(IntPtr phwnd,

.

    /// <param name="phwnd">The HWND of the parent window for a default user interface.</param>

.

    ///Client should also set phwnd to zero.</param>

.

    public void Authenticate(IntPtr phwnd, ref string pszUsername, ref string pszPassword)

.

        phwnd = IntPtr.Zero;

.

        IntPtr hwndEdit,

.

        int GetWindow(out IntPtr phwnd);

.

    Public Overridable Sub GetWindow(ByRef phwnd As System.IntPtr) Implements IDeskBand.GetWindow, IDockingWindow.GetWindow, IOleWindow.GetWindow

.

    phwnd = Handle

.

    Sub GetWindow(ByRef phwnd As System.IntPtr)

.

    Sub GetWindow(ByRef phwnd As System.IntPtr)

.

    Sub GetWindow(ByRef phwnd As System.IntPtr)

.

    Public hwnd As IntPtr

.

        int GetWindow(out IntPtr phwnd);

.

    Public Overridable Sub GetWindow(ByRef phwnd As System.IntPtr) Implements IDeskBand.GetWindow, IDockingWindow.GetWindow, IOleWindow.GetWindow

.

    phwnd = Handle

.

    Sub GetWindow(ByRef phwnd As System.IntPtr)

.

    Sub GetWindow(ByRef phwnd As System.IntPtr)

.

    Sub GetWindow(ByRef phwnd As System.IntPtr)

.

    Public hwnd As IntPtr

.

     uint ShowMessage(IntPtr hwnd,

.

     uint ShowHelp(IntPtr hwnd, [MarshalAs(UnmanagedType.LPWStr)] string pszHelpFile,

.

    Function ShowMessage(ByVal hwnd As IntPtr, <MarshalAs(UnmanagedType.LPWStr)> ByVal lpstrText As String, <MarshalAs(UnmanagedType.LPWStr)> ByVal lpstrCaption As String, ByVal dwType As Integer, <MarshalAs(UnmanagedType.LPWStr)> ByVal lpstrHelpFile As String, ByVal dwHelpContext As Integer, ByRef lpResult As Integer) As Integer

.

    Function ShowHelp(ByVal hwnd As IntPtr, <MarshalAs(UnmanagedType.LPWStr)> ByVal pszHelpFile As String, ByVal uCommand As Integer, ByVal dwData As Integer, ByVal ptMouse As tagPoint, <MarshalAs(UnmanagedType.IDispatch)> ByVal pDispatchObjectHit As Object) As Integer

.

        [In] IntPtr hwnd,

.

    void DragEnter([In] IntPtr hwndTarget, [In, MarshalAs(UnmanagedType.Interface)] IDataObject_Com dataObject, [In] ref drawing.Point pt, [In] DragDropEffects effect);

.

        dropHelper.DragEnter(hWnd, e.Data as IDataObject_Com, ref point, e.Effects);

.

                   [In, ComAliasName ( "ShellObjects.wireHWND" )] ref IntPtr hwnd,

.

             HandleRef hwndParent,

.

             ByVal hwndParent As IntPtr,

.

    void Redirect ( [In] ref Guid rfid, [In] IntPtr hwnd, [In] uint Flags,

.

    void Redirect ( [In] ref Guid rfid, [In] IntPtr hwnd, [In] uint Flags,

.

     void DoVerb(uint iVerb, uint lpmsg, object pActiveSite, uint lindex, uint hwndParent, uint lprcPosRect);

.

    /// <param name="phwnd">Pointer to where to return the window handle.</param>

.

    void GetWindow (out IntPtr phwnd) ;

.

      ''' <param name="phwnd">Pointer to where to return the window handle.</param>

.

      Sub GetWindow(<System.Runtime.InteropServices.Out()> ByRef phwnd As IntPtr)

.
IMPORTANT
The phwnd parameter for the VB Definition of GetWindow MUST be ByRef or else a 'protected memory' error will occur. - Andrew Powell 04.27.08
.

        /// <param name="hwndParent">A handle to the dialog box's parent window.</param>

.

            IntPtr hwndParent, //HWND

.

    void GetWindow(out IntPtr phwnd);

.

    /// <param name="hwnd">Optional window handle</param>

.

    void ParseDisplayName(IntPtr hwnd, IntPtr pbc, String pszDisplayName, UInt32 pchEaten, out IntPtr ppidl, UInt32 pdwAttributes);

.

    /// <param name="hwnd">If user input is required to perform the enumeration, this window handle should be used by the enumeration object as the parent window to take user input.</param>

.

    void EnumObjects(IntPtr hwnd, ESHCONTF grfFlags, out IntPtr ppenumIDList);

.

    /// <param name="hwndOwner">Handle to the owner window.</param>

.

    void CreateViewObject(IntPtr hwndOwner, [In] ref Guid riid, out IntPtr ppv);

.

    /// <param name="hwndOwner">Handle to the owner window that the client should specify if it displays a dialog box or message box.</param>

.

    void GetUIObjectOf(IntPtr hwndOwner, UInt32 cidl, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)]IntPtr[] apidl, [In] ref Guid riid, UInt32 rgfReserved, out IntPtr ppv);

.

    /// <param name="hwnd"> Handle to the owner window of any dialog or message boxes that the client displays.</param>

.

    void SetNameOf(IntPtr hwnd, IntPtr pidl, String pszName, ESHCONTF uFlags, out IntPtr ppidlOut);

.

    void Resolve(IntPtr hwnd, UnsafeNativeMethods.SLR_FLAGS fFlags);

.

    Sub Resolve(ByVal hWnd As IntPtr, ByVal fFlags As UInteger)

.

    void Resolve(IntPtr hwnd, UnsafeNativeMethods.SLR_FLAGS fFlags);

.

    <PreserveSig()> Function Resolve(ByVal hwnd As IntPtr, ByVal fFlags As Integer) As HRESULT

.

        [Out] out UInt32 phWnd);

.

        [Out] out UInt32 phWnd);

.

      ///    /* [in] */ HWND hwnd,

.

      int AdviseEventSink(IUnknown pSink, IntPtr hwnd, uint dwFlags, ref uint pdwCookie);

.

    int HWND { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-515)] get; }

.

    int HWND { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-515)] get; }

.

    ReadOnly Property HWND() As Integer

.

    int HWND { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-515)] get; }

.

    int HWND { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-515)] get; }

.

    ReadOnly Property HWND() As Integer

.

        [In] IntPtr hwndParent,

.

        [In] IntPtr hwndParent,

.

        [In] IntPtr hwndParent,

.

        [In] IntPtr hwndParent,

.

    /// <summary>The progress dialog box will be modal to the window specified by hwndParent. By default, a progress dialog box is modeless.</summary>

.

    ''' <summary>The progress dialog box will be modal to the window specified by hwndParent. By default, a progress dialog box is modeless.</summary>

user32

.

static extern bool AddClipboardFormatListener(IntPtr hwnd);

.

Public Function AddClipboardFormatListener(hWnd As IntPtr) As <MarshalAs(UnmanagedType.Bool)>Boolean

.

Declare Function AddClipboardFormatListener Lib "user32.dll" (hWnd As Long) As Boolean

.

static extern bool AnimateWindow(IntPtr hwnd, int time, AnimateWindowFlags flags);

.

Shared Function AnimateWindow(ByVal hwnd As IntPtr, ByVal time As Integer, ByVal flags As AnimateWindowFlags) As Boolean

.

    Private Shared Function GetSystemMenu(ByVal hWnd As IntPtr, ByVal bRevert As Boolean) As IntPtr

.

static extern uint ArrangeIconicWindows(IntPtr hWnd);

.

static extern IntPtr BeginPaint(IntPtr hwnd, out PAINTSTRUCT lpPaint);

.

Public Shared Function BeginPaint(ByVal hwnd As IntPtr, <Out()> ByRef lpPaint As PAINTSTRUCT) As IntPtr

.

static extern bool BringWindowToTop(IntPtr hWnd);

.

static extern bool BringWindowToTop(HandleRef hWnd);

.

Private Shared Function BringWindowToTop(ByVal hwnd As IntPtr) As Boolean

.

Public Declare Function BringWindowToTop Lib "user32" (ByVal HWnd As IntPtr) As Boolean

.

static extern IntPtr CallWindowProc(WndProcDelegate lpPrevWndFunc, IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);

.

Private Shared Function CallWindowProc(lpPrevWndFunc As WndProcDelegate, hWnd As IntPtr, Msg As UInteger, wParam As IntPtr, lParam As IntPtr) As IntPtr

.

static extern ushort CascadeWindows(IntPtr hwndParent, uint wHow,

.

static extern bool ChangeClipboardChain(IntPtr hWndRemove, IntPtr hWndNewNext);

.

static extern DISP_CHANGE ChangeDisplaySettingsEx(string lpszDeviceName, ref DEVMODE lpDevMode, IntPtr hwnd, ChangeDisplaySettingsFlags dwflags, IntPtr lParam);

.

Private Shared Function ChangeDisplaySettingsEx(ByVal lpszDeviceName As String, ByRef lpDevMode As DEVMODE, ByVal hwnd As IntPtr, ByVal dwflags As UInteger, ByVal lParam As IntPtr) As DISP_CHANGE

.

public static extern bool ChangeWindowMessageFilterEx(IntPtr hWnd, uint msg, ChangeWindowMessageFilterExAction action,ref CHANGEFILTERSTRUCT changeInfo);

.

Private Shared Function ChangeWindowMessageFilterEx(hWnd As IntPtr, msg As UInteger, action As ChangeWindowMessageFilterExAction, ByRef changeInfo As CHANGEFILTERSTRUCT) As <MarshalAs(UnmanagedType.Bool)> Boolean

.

static extern IntPtr ChildWindowFromPointEx(IntPtr hWndParent, Point pt, uint uFlags);

.

Public Function ChildWindowFromPointEx(ByVal hWndParent As IntPtr, ByVal P As POINTAPI, ByVal uFlags As CWPFlags) As IntPtr

.

static extern IntPtr ChildWindowFromPointEx(IntPtr hWndParent, Point pt, uint uFlags);

.

Public Function ChildWindowFromPointEx(ByVal hWndParent As IntPtr, ByVal P As POINTAPI, ByVal uFlags As CWPFlags) As IntPtr

.

static extern bool ClientToScreen(IntPtr hWnd, ref Point lpPoint);

.

Private Shared Function ClientToScreen(ByVal hWnd As IntPtr, ByRef lpPoint As Point) As Boolean

.

    static extern bool ClientToScreen(IntPtr hwnd, ref Point lpPoint);

.

static extern int CloseWindow (IntPtr hWnd);

.

static extern bool CreateCaret(IntPtr hWnd, IntPtr hBitmap, int nWidth,

.

    Public Shared Function CreateCaret(ByVal hWnd As IntPtr, ByVal hBitmap As IntPtr, ByVal nWidth As Integer, ByVal nHeight As Integer) As Boolean

.

    Public Shared Function CreateCaret(ByVal hWnd As IntPtr, ByVal hBitmap As IntPtr, ByVal nWidth As Integer, ByVal nHeight As Integer) As Boolean

.

    IntPtr hwndParent,

.

/// <param name="nHeight">Specifies the height, in device units, of the window. For overlapped windows, nHeight is the window's height, in screen coordinates. If the nWidth parameter is set to CW_USEDEFAULT, the system ignores nHeight.</param> <param name="hWndParent">Handle to the parent or owner window of the window being created. To create a child window or an owned window, supply a valid window handle. This parameter is optional for pop-up windows.

.

/// <para>Windows 2000/XP: To create a message-only window, supply HWND_MESSAGE or a handle to an existing message-only window.</para></param>

.

   IntPtr hWndParent,

.

''' <param name="nHeight">Specifies the height, in device units, of the window. For overlapped windows, nHeight is the window's height, in screen coordinates. If the nWidth parameter is set to CW_USEDEFAULT, the system ignores nHeight.</param> <param name="hWndParent">Handle to the parent or owner window of the window being created. To create a child window or an owned window, supply a valid window handle. This parameter is optional for pop-up windows.

.

''' <para>Windows 2000/XP: To create a message-only window, supply HWND_MESSAGE or a handle to an existing message-only window.</para></param>

.

     ByVal hWndParent As IntPtr, _

.

            wndclass.lpfnWndProc = (WndProc)((hWnd, message, wParam, lParam ) => {

.

                        hdc = Win32.BeginPaint (hWnd, out ps) ;

.

                        Win32.GetClientRect (hWnd, out rect) ;

.

                        Win32.EndPaint(hWnd, ref ps);

.

                return Win32.DefWindowProc(hWnd, (WM)message, wParam, lParam);

.

            IntPtr hwnd = Win32.CreateWindowEx(

.

            if( hwnd == IntPtr.Zero )

.

            Win32.ShowWindow(hwnd, ShowWindowCommands.Normal );

.

            Win32.UpdateWindow(hwnd);

.

    ///<Summary>Does not activate the window. If this flag is not set, the window is activated and moved to the top of either the topmost or non-topmost group (depending on the setting of the hWndInsertAfter parameter).</Summary>

.

    ///<Summary>Retains the current Z order (ignores the hWndInsertAfter parameter).</Summary>

.

    '''<Summary>Does not activate the window. If this flag is not set, the window is activated and moved to the top of either the topmost or non-topmost group (depending on the setting of the hWndInsertAfter parameter).</Summary>

.

    '''<Summary>Retains the current Z order (ignores the hWndInsertAfter parameter).</Summary>

.

static extern IntPtr DefWindowProc(IntPtr hWnd, WindowsMessages uMsg, IntPtr wParam, IntPtr lParam);

.

Public Shared Function DefWindowProc(ByVal hWnd As IntPtr, ByVal uMsg As WindowsMessages, ByVal wParam As IntPtr, ByVal lParam As IntPtr) As IntPtr

.

public static extern bool DeregisterShellHookWindow(IntPtr hWnd);

.

/// <param name="hwnd">Handle to the window to be destroyed.</param>

.

static extern bool DestroyWindow(IntPtr hwnd);

.

''' <param name="hwnd">Handle to the window to be destroyed.</param>

.

Private Shared Function DestroyWindow(hwnd As IntPtr) As <MarshalAs(UnmanagedType.Bool)> Boolean

.

hWnd is the pointer to the window you want to close/destroy. Create a new IntPtr object with the window's handle as a parameter to it's constructor. Make sure the pointers are in decimal, not in hex as spy++ gives them to you.

.

static extern bool DestroyWindow(IntPtr hWnd);

.

static extern bool DragDetect(IntPtr hwnd, POINT pt);

.

public static bool DragDetect(IntPtr hWnd, Point pt) {

.

static extern bool DrawAnimatedRects(IntPtr hwnd, int idAni,

.

    static extern bool DrawAnimatedRects(System.IntPtr hwnd, int idAni,

.

    static extern System.IntPtr FindWindowEx(System.IntPtr hwndParent, System.IntPtr hwndChildAfter,

.

    static extern bool GetWindowRect(System.IntPtr hWnd, out RECT lpRect);

.

      System.IntPtr hWnd =

.

      if (hWnd != System.IntPtr.Zero)

.

        GetWindowRect(hWnd, out to);

.

    bool DrawAnimatedRects(int hwnd, int idAni, RECT^ lprcFrom, RECT^ lprcTo);

.

    int FindWindowEx(int hwndParent, int hwndChildAfter,

.

    bool GetWindowRect(int hWnd, RECT^ lpRect);

.

    int hWnd=FindWindowEx(FindWindow("Shell_TrayWnd", nullptr), 0, "TrayNotifyWnd", nullptr);

.

    if (hWnd != 0) {

.

        GetWindowRect(hWnd, to);

.

static extern bool DrawMenuBar(IntPtr hWnd);

.

    static extern IntPtr GetSystemMenu(IntPtr hWnd, bool bRevert);

.

    static extern bool DrawMenuBar(IntPtr hWnd);

.

    Private Shared Function GetSystemMenu(ByVal hWnd As IntPtr, ByVal bRevert As Boolean) As IntPtr

.

static extern bool EnableScrollBar(IntPtr hWnd, uint wSBflags, uint wArrows);

.

Private Shared Function EnableScrollBar(ByVal hWnd As IntPtr, <MarshalAs(UnmanagedType.U4)>wSBflags As SBFlags, <MarshalAs(UnmanagedType.U4)>wArrows As SBArrows) As <MarshalAs(UnmanagedType.Bool)>Boolean

.

         (ByVal hWnd As Long, _

.

    static extern bool EnableScrollBar(IntPtr hWnd, uint wSBflags, uint wArrows);

.

static extern bool EnableWindow(IntPtr hWnd, bool bEnable);

.

Private Shared Function EnableWindow(ByVal hWnd As IntPtr, ByVal bEnable As Boolean) As Boolean

.

        static extern bool EnableWindow(IntPtr hWnd, bool bEnable);

.

IntPtr hwnd = FindWindowByCaption((IntPtr)null, "Untitled - Notepad");

.

if (null != hwnd)

.

    EndDialog(hwnd, result);

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


 
Access PInvoke.net directly from VS: