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
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy

Search Results for "HWND" in [All]

ole32

.

static extern void OleCreatePropertyFrame(IntPtr hwndOwner, int x, int y,

.

    (ByVal hwndOwner As IntPtr, _

.

    static extern int OleCreatePropertyFrame(IntPtr hwndOwner,

.

static extern void OleCreatePropertyFrame(IntPtr hwndOwner, uint x, uint y,

.

    (ByVal hwndOwner As IntPtr, _

.

static extern int RegisterDragDrop(IntPtr hwnd, IDropTarget pDropTarget);

.

DRAGDROP_E_INVALIDHWND = ?;

.

static extern int RevokeDragDrop(IntPtr hwnd);

coredll

.

private static extern bool CeGetUserNotificationPreferences(IntPtr hWndParent, byte[] lpNotification);

.

private static extern bool CeGetUserNotificationPreferences(IntPtr hWndParent, byte[] lpNotification);

.

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

.

Declare Function ChangeDisplaySettingsEx Lib "coredll.dll" (ByVal lpszDeviceName As String, ByVal lpDevMode As Byte(), ByVal hwnd As IntPtr, ByVal dwflags As CDSFlags, ByVal lParam As IntPtr) As CDSRet

.

        ref DEVMODE lpDevMode, IntPtr hwnd, int dwflags, IntPtr lParam);

.

    Friend Shared Function ChangeDisplaySettingsEx(ByVal lpszDeviceName As String, ByVal lpDevMode As Byte(), ByVal hwnd As IntPtr, ByVal dwflags As CDSFlags, ByVal lParam As IntPtr) As CDSRet

.

hwnd

.

in Specifies the scope of this function. Set to TGF_SCOPE_WINDOW to disable gestures for the window indicated by hwnd. Set to TGF_SCOPE_PROCESS to disable gestures for the application process.

.

    public static extern bool DisableGestures(IntPtr hwnd, UInt64 TGFflags, uint scope);

.

hwnd

.

in Specifies the scope of this function. Set to TGF_SCOPE_WINDOW to enable gestures for the window indicated by hwnd. Set to TGF_SCOPE_PROCESS to enable gestures for the application process.

.

public static extern bool EnableGestures(IntPtr hwnd, UInt64 TGFflags, uint scope);

.

private static extern IntPtr GetDC(IntPtr hwnd);

.

    private static extern IntPtr GetDC(IntPtr hwnd);

.

    public const int HWND_TOP = 0;

.

    public const int HWND_BOTTOM = 1;

.

    public const int HWND_TOPMOST = -1;

.

    public const int HWND_NOTOPMOST = -2;

.

private static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int x, int y, int cx, int cy, uint uFlags);

.

Private Shared Function SetWindowPos(ByVal hWnd As IntPtr, _

.

     ByVal hWndInsertAfter As IntPtr, _

.

public IntPtr GetHWnd(Control ctrl)

.

   IntPtr hWnd = GetCapture();

.

   return hWnd;

.

    IntPtr hWnd = GetCapture();

.

    SetWindowPos(hWnd,

.

        hWnd,

.

static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int X,

.

   public static extern int GetClassName(IntPtr hWnd, StringBuilder buf, int nMaxCount);

.

   (hWnd as IntPtr, buf As StringBuilder, nMaxCount As Integer) As Integer

.

   IntPtr hWnd = GetDesktopWindow();

.

   GetClassName(hWnd, strClassName, strClassName.Capacity);

15: GetDC
.

private static extern IntPtr GetDCCE(IntPtr hWnd);

.

private static extern bool SetForegroundWindow(IntPtr hWnd);

.

private static extern IntPtr GetWindowDCCE(IntPtr hWnd);

.

Private Shared Function GetWindowDC(ByVal hWnd As HandleRef) As IntPtr

.

Declare Function GetWindowDC Lib "coredll.dll" (ByVal hWnd As HandleRef) As IntPtr

.

static extern System.UInt32 GetWindowLong(IntPtr  hWnd, int nIndex);

.

    Private Shared Function GetWindowLong(ByVal hWnd As IntPtr, ByVal nIndex As Integer) As System.UInt32

.

public static extern IntPtr ImmGetContext(IntPtr hWnd);

.

Declare Function ImmGetContext Lib "coredll.dll" (hWnd As IntPtr) As IntPtr

.

public static extern IntPtr ImmReleaseContext(IntPtr hWnd, IntPtr context);

.

        IntPtr hWnd= IntPtr.Zero;

.

        hWnd= GetActiveWindow();

.

        if(hWnd == IntPtr.Zero){

.

        context= ImmGetContext(hWnd);       //get IMEContext

.

            ImmReleaseContext(hWnd, context);   //Release IMEContext

.

public static extern int MessageBoxW(int hWnd, String text, String caption, uint type);

.

    Public Shared Function MessageBoxW(ByVal hWnd As Integer, _

.

        public IntPtr HWnd;

.

            notdata.HWnd = this.Hwnd;

.

private static extern bool OpenClipboard(IntPtr hWndNewOwner); !!!!VB Signature:

.

private static extern bool OpenClipboard(IntPtr hWndNewOwner);  

.

<DllImport("coredll.dll")> Shared Function OpenClipboard(ByVal hWndNewOwner As Integer) As Boolean

.

internal static extern bool PostKeybdMessage(IntPtr hwnd, uint vKey, KeyStateFlags flags, uint cCharacters, KeyStateFlags[] pShiftStateBuffer, uint[] pCharacterBuffer);

.

private static extern int ReleaseDC(IntPtr hWnd, IntPtr hDC);

.

private static extern IntPtr SendMessage(IntPtr hWnd, int Msg, IntPtr wParam, IntPtr lParam);

.

Declare Function SendMessage Lib "coredll.dll" (ByVal hWnd As IntPtr, ByVal Msg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As IntPtr

.

    public static extern int SendMessage(IntPtr hWnd, WM Msg, int wParam, int lParam);

.

    public static extern int SendMessage(IntPtr hWnd, WM Msg, int wParam, int lParam);

.

static extern IntPtr SetCapture(IntPtr hWnd);

.

Declare Function SetCapture Lib "coredll.dll" (ByVal hWnd As IntPtr) As IntPtr

.

public IntPtr GetHWnd(Control ctrl)

.

   IntPtr hWnd = GetCapture();

.

   return hWnd;

.

    <DllImport("coredll.dll")> Shared Function OpenClipboard(ByVal hWndNewOwner As Integer) As Boolean

.

private static extern bool SetForegroundWindow (IntPtr hWnd);

.

Private Shared Function SetForegroundWindow(ByVal hWnd As IntPtr) As Boolean

.

Private Declare Function SetForegroundWindow Lib "coredll" (hWnd as IntPtr) As Boolean

.

E.g. SetForegroundWindow((HWND)(((ULONG) hwnd) | 0x01) );

.

private static extern bool SetForegroundWindow (IntPtr hWnd);

.

    static extern int SetScrollPos(IntPtr hWnd, int nBar, int nPos, bool bRedraw);

.

    static extern int SetScrollPos(IntPtr hWnd, int nBar, int nPos, bool bRedraw);

.

    static extern int SendMessage(IntPtr hWnd, int wMsg, int wParam, int lParam);

.

private static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);

.

private static extern int GetWindowLong(IntPtr hWnd, int nIndex);

.

Private Shared Function SetWindowLong(ByVal hWnd As IntPtr, ByVal nIndex As Integer, ByVal dwNewLong As Integer) As Integer

.

Private Shared Function GetWindowLong(ByVal hWnd As IntPtr, ByVal nIndex As Integer) As Integer

.

        IntPtr hWnd;

.

        // hWnd = GetCapture();

.

       hWnd = ctrl.Handle;

.

        style = GetWindowLong(hWnd, GWL_STYLE);

.

        SetWindowLong(hWnd, GWL_STYLE, (style | BS_CENTER | BS_VCENTER | BS_MULTILINE));

.

    Private Function SetWindowLong(ByVal hWnd As IntPtr, ByVal nIndex As Integer, ByVal dwNewLong As Integer) As Integer

.

    Private Function GetWindowLong(ByVal hWnd As IntPtr, ByVal nIndex As Integer) As Integer

.

    Dim hWnd As IntPtr

.

    hWnd = ctrl.Handle

.

    style = GetWindowLong(hWnd, GWL_STYLE)

.

    SetWindowLong(hWnd, GWL_STYLE, (style Or BS_VCENTER Or BS_MULTILINE))

.

private static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int x, int y, int cx, int cy, uint uFlags);

.

Private Shared Function SetWindowPos(ByVal hWnd As IntPtr, _

.

     ByVal hWndInsertAfter As IntPtr, _

.

    public const int HWND_TOP = 0;

.

    public const int HWND_BOTTOM = 1;

.

    public const int HWND_TOPMOST = -1;

.

    public const int HWND_NOTOPMOST = -2;

.

    private static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int x, int y, int cx, int cy, SetWindowPosFlags uFlags);

.

    private const int HWND_TOP = 0;

.

    private const int HWND_BOTTOM = 1;

.

    private const int HWND_TOPMOST = -1;

.

    private const int HWND_NOTOPMOST = -2;

.

        /// top of either the topmost or non-topmost group (depending on the setting of the hWndInsertAfter

.

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

.

        IntPtr hwnd = new WindowInteropHelper(this.window).Handle;

.

        SetWindowPos(hwnd, (IntPtr)HWND_BOTTOM, 0, 0, 0, 0,

.

    static extern int SHGetSpecialFolderPath(IntPtr hwndOwner, StringBuilder lpszPath, int nFolder, int fCreate);

.

static extern int SHGetSpecialFolderPath(IntPtr hwndOwner, StringBuilder lpszPath, int nFolder, int fCreate);

.

static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);

.

Declare Function ShowWindow Lib "coredll.dll" (ByRef hWnd As IntPtr, ByVal nCmdShow As Integer) As Boolean

.

hWnd is a parameter containing the handle to the window.

.

static extern uint TrackPopupMenuEx(IntPtr hMenu, uint uFlags, int x, int y, IntPtr hWnd, IntPtr tpmParams);

.

    uint menuItemID = TrackPopupMenuEx(hMenu, TPM_BOTTOMALIGN | TPM_RETURNCMD, Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height, eventSink.Hwnd, IntPtr.Zero);

.

            IntPtr hwnd = IntPtr.Zero;

msi

.

static extern int MsiSetInternalUI(int dwUILevel, ref IntPtr phWnd);

.

static extern int MsiSetInternalUI(INSTALLUILEVEL dwUILevel, ref IntPtr phWnd);

.

Private Function MsiSetInternalUI(dwUILevel As INSTALLUILEVEL, ByRef phWnd As IntPtr) As Integer

.

IntPtr hwnd = IntPtr.Zero;

.

MsiUtils.MsiSetInternalUI(MsiUtils.INSTALLUILEVEL.INSTALLUILEVEL_NONE , ref hwnd);

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);

credui

.

      public IntPtr hwndParent;

.

    credui.hwndParent = this.Handle;

.

     public IntPtr hwndParent;

imm32

.

          IntPtr hWnd,    

.

public static extern IntPtr ImmGetContext(IntPtr hWnd);

.

    public static extern IntPtr ImmGetContext(IntPtr hwnd);

.

    public static extern int ImmSimulateHotKey(IntPtr hwnd, int lngHotkey);

.

public string[] GetReverseConversion(IntPtr AHwnd,string AText)

.

    IntPtr hIMC = ImmGetContext(AHwnd);

.

public static extern bool ImmReleaseContext(IntPtr hWnd,IntPtr hIMC);

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);

.

        static extern IntPtr GetDC(IntPtr hWnd);

56: GetDC
.

static extern IntPtr GetDC(IntPtr hWnd);

.

Public Function GetDC(ByVal hwnd As IntPtr) As IntPtr

.

         (ByVal hWnd As Long) As Long

.

Use GetWindowDC(IntPtr hWnd); for taking the dc for the whole window since this function only gets the client area of the window.

.

Use IntPtr.Zero for hWnd to get a dc for the whole screen(Thanks to Mr.Charles Petzold.).

.

IntPtr dc = GetDC(hWnd);

.

        using (System.Drawing.Graphics g = System.Drawing.Graphics.FromHwnd(IntPtr.Zero))

.

        Using g As System.Drawing.Graphics = System.Drawing.Graphics.FromHwnd(IntPtr.Zero)

.

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

.

  static extern IntPtr GetDC(IntPtr hwnd);

.

  static extern Int32 ReleaseDC(IntPtr hwnd, IntPtr hdc);

.

      static extern IntPtr GetDC(IntPtr hwnd);

.

      static extern Int32 ReleaseDC(IntPtr hwnd, IntPtr hdc);

.

    private static IntPtr HWND_BROADCAST = new IntPtr(0xffff);

.

    private static IntPtr HWND_TOP = new IntPtr(0);

.

    private static IntPtr HWND_BOTTOM = new IntPtr(1);

.

    private static IntPtr HWND_TOPMOST = new IntPtr(-1);

.

    private static IntPtr HWND_NOTOPMOST = new IntPtr(-2);

.

    private static IntPtr HWND_MESSAGE = new IntPtr(-3);

.

    private static extern int SendMessage(IntPtr hWnd, WindowsMessages wMsg, IntPtr wParam, IntPtr lParam);

.

        long result = SendMessage(HWND_BROADCAST, WindowsMessages.WM_FONTCHANGE, IntPtr.Zero, IntPtr.Zero);

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


 
Access PInvoke.net directly from VS: