Desktop Functions: Smart Device Functions:
|
Search Results for "HWND" in [All]kernel32
static extern bool CommConfigDialog(string lpszName, IntPtr hWnd,
Private Function ShowWindow(ByVal hwnd As IntPtr, ByVal nCmdShow As ShowWindowCommands) As Boolean
Dim hwnd As New IntPtr(0)
hwnd = GetConsoleWindow()
If (hwnd <> IntPtr.Zero) Then
ShowWindow(hwnd, ShowWindowCommands.ShowMinimized)
SetPriorityClass(mhHwnd, CType(20, System.IntPtr)) '20 = high !! dwmapi
static extern bool DwmDefWindowProc(IntPtr hWnd, int msg, IntPtr wParam, IntPtr lParam, ref IntPtr plResult);
Private Shared Function DwmDefWindowProc(ByVal hWnd As IntPtr, ByVal msg As Integer, ByVal wParam As IntPtr, ByVal lParam As IntPtr, ByRef plResult As IntPtr) As Integer
static extern void DwmEnableBlurBehindWindow(IntPtr hwnd, ref DWM_BLURBEHIND blurBehind);
Private Shared Sub DwmEnableBlurBehindWindow(ByVal hwnd As IntPtr, ByRef blurBehind As DWM_BLURBEHIND)
static extern int DwmExtendFrameIntoClientArea(IntPtr hwnd, ref MARGINS margins);
Private Shared Function DwmExtendFrameIntoClientArea(ByVal hwnd As IntPtr, ByRef margins As MARGINS) As Integer
static extern int DwmGetWindowAttribute(IntPtr hwnd, DWMWINDOWATTRIBUTE dwAttribute, out bool pvAttribute, int cbAttribute);
static extern int DwmGetWindowAttribute(IntPtr hwnd, DWMWINDOWATTRIBUTE dwAttribute, out RECT pvAttribute, int cbAttribute); rasapi328: RasDial
public IntPtr hwndOwner; 9: RasDialDlg
public IntPtr hwndOwner; Delegates
public delegate int BrowseCallbackProc(IntPtr hwnd, int uMsg, IntPtr lParam, IntPtr lpData);
Public Delegate Function BrowseCallbackProc(hwnd As IntPtr, uMsg As Integer, lParam As IntPtr, lpData As IntPtr) As Integer 11: EnumWindowsProc
private delegate bool EnumWindowsProc(IntPtr hWnd, IntPtr lParam);
Private Delegate Function EnumWindowsProc(ByVal hWnd As IntPtr, ByVal lParam As IntPtr) As Boolean If you’re going to use the lParam to return a by-value result (such as the hwnd of a window you are looking for), you’ll want to send lParam by reference:
private delegate bool EnumWindowsProc(IntPtr hWnd, ref IntPtr lParam);
Private Delegate Function EnumWindowsProc(ByVal hWnd As IntPtr, ByRef lParam As IntPtr) As Boolean hwnd in Type: HWND A handle to the window associated with the timer. 13: WndProc
delegate IntPtr WndProc (IntPtr hWnd, uint msg, IntPtr wParam, IntPtr lParam);
Delegate Function WndProc (ByVal hWnd As IntPtr, ByVal msg As Integer, _ 14: WndProc
private delegate IntPtr WndProc(IntPtr hWnd, uint msg, IntPtr wParam, IntPtr lParam);
Private Delegate Function WndProc(ByVal hWnd As IntPtr, ByVal msg As UInteger, ByVal wParam As IntPtr, ByVal lParam As IntPtr) As IntPtr 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 18: DisableGestures 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); 19: EnableGestures 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); 20: ExtEscape 21: ExtEscape
private static extern IntPtr GetDC(IntPtr hwnd); 22: FindWindowW
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, _ 23: GetCapture
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, 24: GetClassName
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); 25: GetDC
private static extern IntPtr GetDCCE(IntPtr hWnd); 26: GetDesktopWindow
private static extern bool SetForegroundWindow(IntPtr hWnd); 27: GetWindowDC
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 28: GetWindowLong
static extern System.UInt32 GetWindowLong(IntPtr hWnd, int nIndex);
Private Shared Function GetWindowLong(ByVal hWnd As IntPtr, ByVal nIndex As Integer) As System.UInt32 29: ImmGetContext
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); 31: ImmSetOpenStatus
IntPtr hWnd= IntPtr.Zero;
hWnd= GetActiveWindow();
if(hWnd == IntPtr.Zero){
context= ImmGetContext(hWnd); //get IMEContext
ImmReleaseContext(hWnd, context); //Release IMEContext 32: MessageBox public static extern int MessageBoxW(int hWnd, String text, String caption, uint type);
Public Shared Function MessageBoxW(ByVal hWnd As Integer, _ 33: NOTIFYICONDATA
public IntPtr HWnd;
notdata.HWnd = this.Hwnd; 34: OpenClipboard private static extern bool OpenClipboard(IntPtr hWndNewOwner); !!!!VB Signature: 35: OpenClipboard
private static extern bool OpenClipboard(IntPtr hWndNewOwner);
<DllImport("coredll.dll")> Shared Function OpenClipboard(ByVal hWndNewOwner As Integer) As Boolean 36: PostKeybdMessage
internal static extern bool PostKeybdMessage(IntPtr hwnd, uint vKey, KeyStateFlags flags, uint cCharacters, KeyStateFlags[] pShiftStateBuffer, uint[] pCharacterBuffer); 37: ReleaseDC
private static extern int ReleaseDC(IntPtr hWnd, IntPtr hDC); 38: SendMessage
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); 39: SetCapture
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; 40: SetClipboardData
<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); 42: SetScrollPos
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); 43: SetWindowLong
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)) 44: SetWindowPos
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, 45: SHCreateShortcut
static extern int SHGetSpecialFolderPath(IntPtr hwndOwner, StringBuilder lpszPath, int nFolder, int fCreate);
static extern int SHGetSpecialFolderPath(IntPtr hwndOwner, StringBuilder lpszPath, int nFolder, int fCreate); 47: ShowWindow
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. 48: TrackPopupMenuEx
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); 49: waveOutOpen
IntPtr hwnd = IntPtr.Zero; comctl3250: DoReaderMode
Dim hwnd As IntPtr
SetReaderModeInfo.hwnd = Me.Handle
Public Shared Function GetScrollPos(ByVal hWnd As IntPtr, ByVal nBar As Integer) As Integer
Private Shared Function SetScrollPos(ByVal hWnd As IntPtr, ByVal nBar As Integer, ByVal nPos As Integer, ByVal bRedraw As Boolean) As Integer
/// <param name="hwndLock">Handle to the window that owns the drag image.</param>
internal static extern bool ImageList_DragEnter(IntPtr hwndLock, int x, int y);
''' <param name="hwndLock">Handle to the window that owns the drag image.</param>
Friend Shared Function ImageList_DragEnter(hwndLock As IntPtr, x As Integer, y As Integer) As <MarshalAs(UnmanagedType.Bool)> Boolean
/// <param name="hwndLock">Handle to the window that owns the drag image.</param>
internal static extern bool ImageList_DragLeave(IntPtr hwndLock);
''' <param name="hwndLock">Handle to the window that owns the drag image.</param>
Friend Shared Function ImageList_DragLeave(hwndLock As IntPtr) As <MarshalAs(UnmanagedType.Bool)> Boolean 53: TaskDialog
public IntPtr hwndParent;
public IntPtr hwndParent; winspool
static extern int DocumentProperties(IntPtr hwnd, IntPtr hPrinter, [MarshalAs(UnmanagedType.LPWStr)] string pDeviceName, IntPtr pDevModeOutput, IntPtr pDevModeInput, int fMode);
static extern int DocumentProperties(IntPtr hWnd, IntPtr hPrinter, string pDeviceName, IntPtr pDevModeOutput, IntPtr pDevModeInput, fModes fMode);
Private Shared Function DocumentProperties(ByVal hwnd As IntPtr, ByVal hPrinter As IntPtr, <MarshalAs(UnmanagedType.LPWStr)> ByVal pDeviceName As String, ByVal pDevModeOutput As IntPtr, ByVal pDevModeInput As IntPtr, ByVal fMode As Integer) As Integer
pinvokeResult = SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, IntPtr.Zero,
IntPtr HWND_BROADCAST;
HWND_BROADCAST = new IntPtr(0xffff);
pinvokeResult = SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, IntPtr.Zero, setupapi57: Option Explicit
public static extern IntPtr SetupDiGetClassDevs(ref Guid classGuid, IntPtr enumerator, IntPtr hwndParent, UInt32 flags);
IntPtr hwndParent,
IntPtr hwndParent,
IntPtr hwndParent,
ByVal hwndParent As Integer, _
ByRef hwndParent As String, _
ByVal hwndParent As IntPtr, _
public IntPtr hwndParent;
Public hwndParent As IntPtr Cut off search results after 60. Please refine your search. |