Desktop Functions: Smart Device Functions:
|
Search Results for "HWND" in [All]shlwapi1: AssocCreate
[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, 8: IDeskBand
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 9: IDeskBand2
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 10: IDocHostShowUI
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); 13: IFileSaveDialog
[In, ComAliasName ( "ShellObjects.wireHWND" )] ref IntPtr hwnd,
HandleRef hwndParent,
ByVal hwndParent As IntPtr, 15: IKnownFolder
void Redirect ( [In] ref Guid rfid, [In] IntPtr hwnd, [In] uint Flags,
void Redirect ( [In] ref Guid rfid, [In] IntPtr hwnd, [In] uint Flags, 17: IOleObject
void DoVerb(uint iVerb, uint lpmsg, object pActiveSite, uint lindex, uint hwndParent, uint lprcPosRect); 18: IOleWindow
/// <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) 19: IProgressDialog
/// <param name="hwndParent">A handle to the dialog box's parent window.</param>
IntPtr hwndParent, //HWND 20: IShellBrowser
void GetWindow(out IntPtr phwnd); 21: IShellFolder
/// <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); 22: IShellLinkA
void Resolve(IntPtr hwnd, UnsafeNativeMethods.SLR_FLAGS fFlags);
Sub Resolve(ByVal hWnd As IntPtr, ByVal fFlags As UInteger) 23: IShellLinkW
void Resolve(IntPtr hwnd, UnsafeNativeMethods.SLR_FLAGS fFlags);
<PreserveSig()> Function Resolve(ByVal hwnd As IntPtr, ByVal fFlags As Integer) As HRESULT 24: IShellView
[Out] out UInt32 phWnd); 25: IShellView3
[Out] out UInt32 phWnd); 26: ITfLangBarMgr
/// /* [in] */ HWND hwnd,
int AdviseEventSink(IUnknown pSink, IntPtr hwnd, uint dwFlags, ref uint pdwCookie); 27: IWebBrowser
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 28: IWebBrowser2
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 29: IWiaDevMgr
[In] IntPtr hwndParent,
[In] IntPtr hwndParent,
[In] IntPtr hwndParent, 30: IWiaItem
[In] IntPtr hwndParent, 31: PROGDLG
/// <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 33: AnimateWindow
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 34: AppendMenu
Private Shared Function GetSystemMenu(ByVal hWnd As IntPtr, ByVal bRevert As Boolean) As IntPtr
static extern uint ArrangeIconicWindows(IntPtr hWnd); 36: 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 37: BringWindowToTop
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 38: 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 39: CascadeWindows
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 45: 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); 46: CloseWindow
static extern int CloseWindow (IntPtr hWnd); 47: 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
Public Shared Function CreateCaret(ByVal hWnd As IntPtr, ByVal hBitmap As IntPtr, ByVal nWidth As Integer, ByVal nHeight As Integer) As Boolean 48: CreateMDIWindow
IntPtr hwndParent, 49: CreateWindowEx
/// <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> 51: 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
public static extern bool DeregisterShellHookWindow(IntPtr hWnd); 53: DestroyWindow
/// <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); 54: 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 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); 56: DrawMenuBar
static extern bool DrawMenuBar(IntPtr hWnd);
static extern IntPtr GetSystemMenu(IntPtr hWnd, bool bRevert);
static extern bool DrawMenuBar(IntPtr hWnd); 57: EnableMenuItem
Private Shared Function GetSystemMenu(ByVal hWnd As IntPtr, ByVal bRevert As Boolean) As IntPtr 58: EnableScrollBar
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); 59: EnableWindow
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); 60: EndDialog
IntPtr hwnd = FindWindowByCaption((IntPtr)null, "Untitled - Notepad");
if (null != hwnd)
EndDialog(hwnd, result); Cut off search results after 60. Please refine your search. |