Desktop Functions: Smart Device Functions:
|
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 4: AppendMenu
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);
static extern IntPtr BeginDeferWindowPos(int nNumWindows);
Public Shared Function BeginDeferWindowPos(nNumWindows As Integer) As IntPtr 8: BeginPaint
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 10: CallNextHookEx
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 11: CallWindowProc
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 12: CascadeWindows
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); 16: CheckDlgButton
static extern bool CheckDlgButton(IntPtr hDlg, int nIDButton, System.Windows.Forms.CheckState uCheck); 17: CheckMenuItem
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 20: ClientToScreen
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; 21: CloseClipboard
OpenClipboard(IntPtr.Zero); 22: CloseDesktop
static extern bool CloseDesktop(IntPtr hDesktop);
Shared Function CloseDesktop(ByVal hDesktop As IntPtr) As Boolean 23: CloseHandle
static extern bool CloseHandle(IntPtr hHandle);
Private Shared Function CloseHandle(ByVal hHandle As IntPtr) As Boolean 24: CloseWindow
static extern int CloseWindow (IntPtr hWnd); 25: CloseWindow
public static extern bool CloseWindowStation(IntPtr hWinsta);
public static extern bool CloseWindowStation(IntPtr hWinsta); 27: CopyIcon
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); 28: CopyImage
static extern IntPtr CopyImage(IntPtr hImage, uint uType, int cxDesired, int cyDesired, uint fuFlags); 29: CreateCaret
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 30: CreateCursor
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 31: CreateDesktop
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); 33: CreateIcon
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); 37: CreateMDIWindow
public static extern IntPtr CreateMDIWindow(
IntPtr hwndParent,
IntPtr hInstance,
IntPtr lParam); 38: CreateMenu
static extern IntPtr CreateMenu();
Function CreateMenu() As IntPtr; 39: CreatePopupMenu
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); 40: CreateWindow
static extern IntPtr CreateWindow(
IntPtr hWndParent,
IntPtr hMenu,
IntPtr hInstance,
IntPtr lpParam); 41: CreateWindowEx
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( 44: DdeConnect
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); 47: DdeGetData
static extern uint DdeGetData(IntPtr hData, [Out] byte [] pDst, uint cbMax, 48: DdeInitialize
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; 49: DdeReconnect
static extern IntPtr DdeReconnect(IntPtr hConv); 50: DdeSetUserHandle
static extern bool DdeSetUserHandle(IntPtr hConv, uint id, UIntPtr hUser); 51: DeferWindowPos
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); 52: DefWindowProc
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 53: DeleteMenu
static extern bool DeleteMenu(IntPtr hMenu, uint uPosition, uint uFlags);
public static extern bool DeregisterShellHookWindow(IntPtr hWnd); 55: DestroyIcon
static extern bool DestroyIcon(IntPtr hIcon);
Private Shared Function DestroyIcon(ByVal hIcon As IntPtr) As Boolean
IntPtr icon = bmp.GetHicon(); 56: DestroyWindow
static extern bool DestroyWindow(IntPtr hWnd);
Declare Function DestroyWindow Lib "user32.dll" (hWnd As IntPtr) As Boolean 57: DispatchMessage
static extern IntPtr DispatchMessage([In] ref MSG lpmsg);
ByRef lpmsg As MSG) As IntPtr 58: DragDetect
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) 60: DrawEdge
static extern bool DrawEdge(IntPtr hdc, ref RECT qrc, uint edge, Cut off search results after 60. Please refine your search. |