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 "IntPtr" in [All]

user32

.

Public Shared Function ActivateKeyboardLayout(ByVal nkl As IntPtr, ByVal Flags As uint) As Integer

.

static extern bool AddClipboardFormatListener(IntPtr hwnd);

.

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

.

static extern bool AddClipboardFormatListener(IntPtr hwnd);

.

static extern bool RemoveClipboardFormatListener(IntPtr hwnd);

.

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

.

static extern bool AppendMenu(IntPtr hMenu, MenuFlags uFlags, uint uIDNewItem, string lpNewItem);

.

Shared Function AppendMenu(ByVal hMenu As IntPtr, ByVal uFlags As MenuFlags, ByVal uIDNewItem As Int32, ByVal lpNewItem As String) As Boolean

.

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

.

    Shared Function AppendMenu(ByVal hMenu As IntPtr, ByVal uFlags As MenuFlags, ByVal uIDNewItem As Int32, ByVal lpNewItem As String) As Boolean

.

static extern uint ArrangeIconicWindows(IntPtr hWnd);

.

IntPtr hFocus = IntPtr.Zero;

.

IntPtr hFore;

.

static extern IntPtr BeginDeferWindowPos(int nNumWindows);

.

Public Shared Function BeginDeferWindowPos(nNumWindows As Integer) As IntPtr

.

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

.

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 CallNextHookEx(IntPtr hhk, int nCode, IntPtr wParam,

.

   IntPtr lParam);

.

static extern IntPtr CallNextHookEx(IntPtr hhk, int nCode, WM wParam, [In]KBDLLHOOKSTRUCT lParam);

.

static extern IntPtr CallNextHookEx(IntPtr hhk, int nCode, WM wParam, [In]MSLLHOOKSTRUCT lParam);

.

Private Shared Function CallNextHookEx(ByVal hhk As IntPtr, ByVal nCode As Integer, ByVal wParam As IntPtr, ByVal lParam As IntPtr) As IntPtr

.

Private Shared Function CallNextHookEx(ByVal hhk As IntPtr, ByVal nCode As Integer, ByVal wParam As WindowsMessages, <[In]()> ByRef lParam As KBDLLHOOKSTRUCT) As IntPtr

.

Private Shared Function CallNextHookEx(ByVal hhk As IntPtr, ByVal nCode As Integer, ByVal wParam As WindowsMessages, <[In]()> ByRef lParam As MSLLHOOKSTRUCT) As IntPtr

.

hhk is ignored, so you can use IntPtr.Zero

.

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,

.

   IntPtr lpRect, uint cKids, IntPtr [] lpKids);

.

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

.

ChangeDisplaySettingsEx(d.DeviceName, ref dm, IntPtr.Zero, CDS_UPDATEREGISTRY, IntPtr.Zero);

.

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

.

ChangeWindowMessageFilterEx(Handle,_message,ChangeWindowMessageFilterExAction.Allow, IntPtr.Zero);

.
Note
.

static extern bool CheckDlgButton(IntPtr hDlg, int nIDButton, System.Windows.Forms.CheckState uCheck);

.

static extern uint CheckMenuItem(IntPtr hmenu, uint uIDCheckItem, uint uCheck);

.

Private Shared Function CheckMenuItem(hmenu As IntPtr, uIDCheckItem As UInteger, uCheck As UInteger) As UInteger

.

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

.

        IntPtr handle = IntPtr.Zero;

.

OpenClipboard(IntPtr.Zero);

.

static extern bool CloseDesktop(IntPtr hDesktop);

.

Shared Function CloseDesktop(ByVal hDesktop As IntPtr) As Boolean

.

static extern bool CloseHandle(IntPtr hHandle);

.

Private Shared Function CloseHandle(ByVal hHandle As IntPtr) As Boolean

.

static extern int CloseWindow (IntPtr hWnd);

.

    public static extern bool CloseWindowStation(IntPtr hWinsta);

.

    public static extern bool CloseWindowStation(IntPtr hWinsta);

.

static extern IntPtr CopyIcon(IntPtr hIcon);

.

Public Shared Function CopyIcon(ByVal hIcon As IntPtr) As IntPtr

.

static extern IntPtr LoadCursor(IntPtr hInstance, int lpCursorName);

.

private static extern IntPtr LoadCursorFromFile(string lpFileName);

.

private static extern IntPtr CopyIcon(IntPtr hcur);

.

private static extern bool SetSystemCursor(IntPtr hcur, uint id);

.

   SetSystemCursor(LoadCursor(IntPtr.Zero, OCR_WAIT), OCR_NORMAL);

.

   IntPtr cursor = (working)  

.

   if (cursor != IntPtr.Zero)

.

     SetSystemCursor(LoadCursor(IntPtr.Zero, OCR_WAIT), OCR_NORMAL);

.

static extern IntPtr CopyImage(IntPtr hImage, uint uType, int cxDesired, int cyDesired, uint fuFlags);

.

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

.

        CreateCaret(textBox1.Handle, IntPtr.Zero, 0, textBox1.Height);

.

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

.

    Dim bmPtr As IntPtr = GetHBitmap()

.

    Public Shared Property Gray As IntPtr = CType(1, IntPtr)

.

    Public Shared Property Solid As IntPtr = Nothing

.

    Function GetHBitmap() As IntPtr

.

static extern IntPtr CreateCursor(IntPtr hInst, int xHotSpot, int yHotSpot,

.

Shared Function CreateCursor(ByVal hInst As IntPtr, ByVal xHotSpot As Integer, ByVal yHotSpot As Integer, ByVal nWidth As Integer, ByVal nHeight As Integer, ByVal pvANDPlane() As Byte, ByVal pvXORPlane() As Byte) As IntPtr

.

    public static extern IntPtr CreateDesktop(

.

    public static extern bool CloseDesktop(IntPtr handle);

.

                           ByVal accessMask As ACCESS_MASK, ByVal attributes As SECURITY_ATTRIBUTES) As IntPtr

.

    Public Shared Function CloseDesktop(ByVal handle As IntPtr) As <MarshalAs(UnmanagedType.Bool)> Boolean

.

    static extern IntPtr CreateDesktop(..., [In] ref SECURITY_ATTRIBUTES lpsa);

.

    public SafeDesktopHandle(IntPtr handle, bool ownsHandle)

.

    protected override bool CloseNativeHandle(IntPtr handle)

.

public static extern unsafe IntPtr CreateDialogIndirectParamA(

.

     IntPtr hWndParent,

.

     IntPtr lParamInit);

.

static extern IntPtr CreateIconIndirect([In] ref ICONINFO piconinfo);

.

     public IntPtr MaskBitmap;

.

     public IntPtr ColorBitmap;

.

private static extern IntPtr CreateIconIndirect([In] ref ICONINFO iconInfo);

.

public static extern bool DeleteObject(IntPtr hObject);

.

     IntPtr imgHandle = img.GetHbitmap();

.

     IntPtr handle = CreateIconIndirect(ref ii);

.

static extern IntPtr CreateIconFromResourceEx(byte [] pbIconBits, uint cbIconBits, bool fIcon, uint dwVersion, int cxDesired, int cyDesired, uint uFlags);

.

Private Shared Function CreateIconFromResourceEx(pbIconBits As Byte(), cbIconBits As UInteger, fIcon As Boolean, dwVersion As UInteger, cxDesired As Integer, cyDesired As Integer, uFlags As UInteger) As IntPtr

.

static extern IntPtr CreateIconFromResourceEx(byte [] pbIconBits, uint

.

                            ByVal flags As Integer) As IntPtr

.

static extern IntPtr CreateIconIndirect([In] ref ICONINFO piconinfo);

.

     public IntPtr MaskBitmap;

.

     public IntPtr ColorBitmap;

.

private static extern IntPtr CreateIconIndirect([In] ref ICONINFO iconInfo);

.

public static extern bool DeleteObject(IntPtr hObject);

.

     IntPtr imgHandle = img.GetHbitmap();

.

     IntPtr handle = CreateIconIndirect(ref ii);

.

public static extern IntPtr CreateMDIWindow(

.

    IntPtr hwndParent,

.

    IntPtr hInstance,

.

    IntPtr lParam);

.

static extern IntPtr CreateMenu();

.

Function CreateMenu() As IntPtr;

.

static extern IntPtr CreatePopupMenu();

.

        void IContextMenu.InvokeCommand (IntPtr pici)

.

        int    IShellExtInit.Initialize (IntPtr pidlFolder, IntPtr lpdobj, uint hKeyProgID)

.

                if (lpdobj != (IntPtr)0)

.

    internal static extern bool AppendMenu(HMenu hmenu, MFMENU uflags, IntPtr uIDNewItemOrSubmenu, string text);

.

    internal static extern bool InsertMenu(HMenu hmenu, int position, MFMENU uflags, IntPtr uIDNewItemOrSubmenu, string text);

.

    internal static extern int SetMenuItemBitmaps(HMenu hmenu, int nPosition, MFMENU uflags, IntPtr hBitmapUnchecked, IntPtr hBitmapChecked);

.

static extern IntPtr CreateWindow(

.

       IntPtr hWndParent,

.

       IntPtr hMenu,

.

       IntPtr hInstance,

.

       IntPtr lpParam);

.

static extern IntPtr CreateWindowEx(uint dwExStyle, string lpClassName,

.

   IntPtr hWndParent, IntPtr hMenu, IntPtr hInstance, IntPtr lpParam);

.

   y As Integer, nWidth As Integer, nHeight As Integer, hWndParent As IntPtr, _

.

   hMenu As IntPtr, hInstance As IntPtr, lpParam As IntPtr)

.

static extern IntPtr CreateWindowStation (string name, Int32 flags, Int32 desiredAccess, IntPtr securityAttrs);

.

static extern IntPtr DdeClientTransaction(IntPtr pData, uint cbData,

.

   IntPtr hConv, IntPtr hszItem, uint wFmt, uint wType, uint dwTimeout,

.

IntPtr result = DdeClientTransaction(

.

static extern IntPtr DdeConnect(uint idInst, IntPtr hszService,

.

   IntPtr hszTopic, IntPtr pCC);

.

IntPtr handle = DdeConnect(instanceId, serviceHandle, topicHandle, IntPtr.Zero);

.

static extern IntPtr DdeCreateDataHandle(uint idInst, IntPtr pSrc, uint cb,

.

   uint cbOff, IntPtr hszItem, uint wFmt, uint afCmd);

.

static extern IntPtr DdeCreateStringHandle(uint idInst, string psz,

.

IntPtr serviceHandle = DdeCreateStringHandle(instanceId, "MT4", CP_WINANSI);

.

static extern uint DdeGetData(IntPtr hData, [Out] byte [] pDst, uint cbMax,

.

delegate IntPtr DdeDelegate(

.

     IntPtr hconv,

.

     IntPtr hsz1,

.

     IntPtr hsz2,

.

     IntPtr hdata,

.

     UIntPtr dwData1,

.

     UIntPtr dwData2);

.

    private static IntPtr OnDdeCallback(int uType, int uFmt, IntPtr hConv, IntPtr hsz1, IntPtr hsz2, IntPtr hData, IntPtr dwData1, IntPtr dwData2)

.

        return IntPtr.Zero;

.

static extern IntPtr DdeReconnect(IntPtr hConv);

.

static extern bool DdeSetUserHandle(IntPtr hConv, uint id, UIntPtr hUser);

.

        IntPtr hWinPosInfo,

.

        IntPtr hWnd,           // window handle

.

        IntPtr hWndInsertAfter,    // placement-order handle

.

    public static IntPtr

.

    NoTopMost = new IntPtr(-2),

.

    TopMost = new IntPtr(-1),

.

    Top = new IntPtr(0),

.

    Bottom = new IntPtr(1);

.

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

.

static extern bool DeleteMenu(IntPtr hMenu, uint uPosition, uint uFlags);

.

public static extern bool DeregisterShellHookWindow(IntPtr hWnd);

.

static extern bool DestroyIcon(IntPtr hIcon);

.

Private Shared Function DestroyIcon(ByVal hIcon As IntPtr) As Boolean

.

IntPtr icon = bmp.GetHicon();

.

static extern bool DestroyWindow(IntPtr hWnd);

.

Declare Function DestroyWindow Lib "user32.dll" (hWnd As IntPtr) As Boolean

.

static extern IntPtr DispatchMessage([In] ref MSG lpmsg);

.

     ByRef lpmsg As MSG) As IntPtr

.

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 FindWindow(string lpClassName, string lpWindowName);

.

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

.

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

.

      System.IntPtr hWnd =

.

        FindWindowEx(FindWindow("Shell_TrayWnd", null), System.IntPtr.Zero, "TrayNotifyWnd", null);

.

      if (hWnd != System.IntPtr.Zero)

.

static extern bool DrawEdge(IntPtr hdc, ref RECT qrc, uint edge,

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


 
Access PInvoke.net directly from VS: