Desktop Functions: Smart Device Functions:
|
Search Results for "HWND" in [All]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); gdi325: CombineRgn
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); 10: ExtFloodFill
Graphics vGraphics = Graphics.FromHwnd(Handle); 11: FillRgn
static extern IntPtr GetDC(IntPtr hWnd); 12: GetDeviceCaps
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); 14: GetPixel
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); 17: SetPixel
Graphics vGraphics = Graphics.FromHwnd(Handle); 18: TextOut
Using G = Graphics.FromHwnd(Me.Handle) aygshell19: SHFullScreen
static extern uint SHFullScreen(IntPtr hwndRequester, uint dwState);
Public Shared Function SHFullScreen( hWnd as IntPtr, flags as Integer ) as Integer Hide the Start button icon on the navigation bar. When the Start icon is hidden, the shell is in a special state in which clicking or tapping the navigation bar will not display the drop-down Start menu. The navigation bar is essentially disabled when in this state. While in this mode, WM_LBUTTONDOWN and WM_LBUTTONUP messages will be forwarded to hwndRequester. This allows an application to drop out of this mode by calling this function with the SHFS_SHOWSTARTICON, when the user clicks or taps the navigation bar. static extern bool SHFullScreen(IntPtr hwndRequester, uint dwState);
IntPtr hwnd = GetCapture();
return SHFullScreen(hwnd, SHFS_HIDETASKBAR | SHFS_HIDESIPBUTTON | SHFS_HIDESTARTICON);
return SHFullScreen(hwnd, SHFS_SHOWTASKBAR | SHFS_SHOWSIPBUTTON | SHFS_SHOWSTARTICON);
public IntPtr hwndClient = IntPtr.Zero; Use this in conjunction with the SetCapture/GetCapture HWND sample:
static bool RecognizeGesture(IntPtr hWnd, int x, int y)
shrginfo.hwndClient = hWnd; 21: SHSipPreference
static extern bool SHSipPreference(IntPtr hwnd, SIPSTATE st);
Declare Function SHSipPreference Lib "aygshell.dll" (hwnd as IntPtr, st as Integer) As Bool
static extern bool SHSipPreference(IntPtr hwnd, SIPSTATE st); kernel3222: CommConfigDialog
static extern bool CommConfigDialog(string lpszName, IntPtr hWnd, 23: GetConsoleWindow
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) 24: SetPriorityClass
SetPriorityClass(mhHwnd, CType(20, System.IntPtr)) '20 = high !! msi25: MsiSetInternalUI
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); shlwapi26: AssocCreate
[In] IntPtr hwnd); 27: IPreviewHandler
void SetWindow(IntPtr hwnd, ref RECT rect);
void QueryFocus(out IntPtr phwnd); 28: SHAutoComplete
IntPtr hwndEdit,
Declare Function SHAutoComplete Lib "shlwapi.dll" (ByVal hWndEdit As IntPtr, ByVal dwFlags As AutoCompleteFlags) As Integer
[In] IntPtr hwnd, Constants30: BM_CLICK
LRESULT APIENTRY buttonPlsVisibleProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
MessageBox(hWnd, L"Hello bn", NULL, MB_OK);
//MoveWindow(hWnd, r.right - 28, 6, 24, 24, TRUE);
//SetBitmap(hWnd, (isPlaylistVisible ? IDB_RESTORE_PRESSED : IDB_CLOSE_PRESSED));
//MoveWindow(hWnd, r.right - 29, 5, 24, 24, TRUE);
//SetBitmap(hWnd, (isPlaylistVisible ? IDB_RESTORE_NORMAL : IDB_CLODE_NORMAL));
return CallWindowProc(buttonPlsVisible_proc, hWnd, Msg, wParam, lParam);
public const uint GW_HWNDFIRST = 0;
public const uint GW_HWNDLAST = 1;
public const uint GW_HWNDNEXT = 2;
public const uint GW_HWNDPREV = 3;
public const uint GW_HWNDFIRST = 0;
public const uint GW_HWNDLAST = 1;
public const uint GW_HWNDNEXT = 2;
public const uint GW_HWNDPREV = 3;
GW_HWNDFIRST = 0
GW_HWNDLAST = 1
GW_HWNDNEXT = 2
GW_HWNDPREV = 3
static readonly int GWL_HWNDPARENT = -8;
Public Const GWL_HWNDPARENT = -8
GWLP_HWNDPARENT = -8, 33: HWND
public const IntPtr HWND_BROADCAST = new IntPtr(0xffff);
public const IntPtr HWND_TOP = new IntPtr(0);
public const IntPtr HWND_BOTTOM = new IntPtr(1);
public const IntPtr HWND_TOPMOST = new IntPtr(-1);
public const IntPtr HWND_NOTOPMOST = new IntPtr(-2);
public const IntPtr HWND_MESSAGE = new IntPtr(-3);
Public Const HWND_BROADCAST As Int32 = &HFFFF
Public Const HWND_TOP As Int32 = &H0
Public Const HWND_BOTTOM As Int32 = &H1
Public Const HWND_TOPMOST As Int32 = -&H1
Public Const HWND_NOTOPMOST As Int32 = -&H2
Public Const HWND_MESSAGE As Int32 = -&H3 34: HWND_MESSAGE public static IntPtr HWND_MESSAGE = new IntPtr(-3); 35: TCM_
// (HIMAGELIST)SNDMSG((hwnd), TCM_GETIMAGELIST, 0, 0L)
// (HIMAGELIST)SNDMSG((hwnd), TCM_SETIMAGELIST, 0, (LPARAM)(UINT)(HIMAGELIST)(himl))
// (int)SNDMSG((hwnd), TCM_GETITEMCOUNT, 0, 0L)
// (BOOL)SNDMSG((hwnd), TCM_GETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM FAR*)(pitem))
// (BOOL)SNDMSG((hwnd), TCM_SETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM FAR*)(pitem))
// (int)SNDMSG((hwnd), TCM_INSERTITEM, (WPARAM)(int)iItem, (LPARAM)(const TC_ITEM FAR*)(pitem))
// (BOOL)SNDMSG((hwnd), TCM_DELETEITEM, (WPARAM)(int)(i), 0L)
// (BOOL)SNDMSG((hwnd), TCM_DELETEALLITEMS, 0, 0L)
// (BOOL)SNDMSG((hwnd), TCM_GETITEMRECT, (WPARAM)(int)(i), (LPARAM)(RECT FAR*)(prc))
// (int)SNDMSG((hwnd), TCM_GETCURSEL, 0, 0)
// (int)SNDMSG((hwnd), TCM_SETCURSEL, (WPARAM)i, 0)
// (int)SNDMSG((hwndTC), TCM_HITTEST, 0, (LPARAM)(TC_HITTESTINFO FAR*)(pinfo))
// (BOOL)SNDMSG((hwndTC), TCM_SETITEMEXTRA, (WPARAM)(cb), 0L)
// (int)SNDMSG(hwnd, TCM_ADJUSTRECT, (WPARAM)(BOOL)bLarger, (LPARAM)(RECT FAR *)prc)
// (DWORD)SNDMSG((hwnd), TCM_SETITEMSIZE, 0, MAKELPARAM(x,y))
// (void)SNDMSG((hwnd), TCM_REMOVEIMAGE, i, 0L)
// (void)SNDMSG((hwnd), TCM_SETPADDING, 0, MAKELPARAM(cx, cy))
// (int)SNDMSG((hwnd), TCM_GETROWCOUNT, 0, 0L)
// (int)SNDMSG((hwnd), TCM_GETCURFOCUS, 0, 0)
// SNDMSG((hwnd),TCM_SETCURFOCUS, i, 0)
// (int)SNDMSG((hwnd), TCM_SETMINTABWIDTH, 0, x)
// (void)SNDMSG((hwnd), TCM_DESELECTALL, fExcludeFocus, 0)
// (BOOL)SNDMSG((hwnd), TCM_HIGHLIGHTITEM, (WPARAM)i, (LPARAM)MAKELONG (fHighlight, 0))
// (DWORD)SNDMSG((hwnd), TCM_SETEXTENDEDSTYLE, 0, dw)
// (DWORD)SNDMSG((hwnd), TCM_GETEXTENDEDSTYLE, 0, 0)
' (HIMAGELIST)SNDMSG((hwnd), TCM_GETIMAGELIST, 0, 0L)
' (HIMAGELIST)SNDMSG((hwnd), TCM_SETIMAGELIST, 0, (LPARAM)(UINT)(HIMAGELIST)(himl))
' (int)SNDMSG((hwnd), TCM_GETITEMCOUNT, 0, 0L)
' (BOOL)SNDMSG((hwnd), TCM_GETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM FAR*)(pitem))
' (BOOL)SNDMSG((hwnd), TCM_SETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM FAR*)(pitem))
' (int)SNDMSG((hwnd), TCM_INSERTITEM, (WPARAM)(int)iItem, (LPARAM)(const TC_ITEM FAR*)(pitem))
' (BOOL)SNDMSG((hwnd), TCM_DELETEITEM, (WPARAM)(int)(i), 0L)
' (BOOL)SNDMSG((hwnd), TCM_DELETEALLITEMS, 0, 0L)
' (BOOL)SNDMSG((hwnd), TCM_GETITEMRECT, (WPARAM)(int)(i), (LPARAM)(RECT FAR*)(prc))
' (int)SNDMSG((hwnd), TCM_GETCURSEL, 0, 0)
' (int)SNDMSG((hwnd), TCM_SETCURSEL, (WPARAM)i, 0)
' (int)SNDMSG((hwndTC), TCM_HITTEST, 0, (LPARAM)(TC_HITTESTINFO FAR*)(pinfo))
' (BOOL)SNDMSG((hwndTC), TCM_SETITEMEXTRA, (WPARAM)(cb), 0L)
' (int)SNDMSG(hwnd, TCM_ADJUSTRECT, (WPARAM)(BOOL)bLarger, (LPARAM)(RECT FAR *)prc)
' (DWORD)SNDMSG((hwnd), TCM_SETITEMSIZE, 0, MAKELPARAM(x,y))
' (void)SNDMSG((hwnd), TCM_REMOVEIMAGE, i, 0L)
' (void)SNDMSG((hwnd), TCM_SETPADDING, 0, MAKELPARAM(cx, cy))
' (int)SNDMSG((hwnd), TCM_GETROWCOUNT, 0, 0L)
' (int)SNDMSG((hwnd), TCM_GETCURFOCUS, 0, 0)
' SNDMSG((hwnd),TCM_SETCURFOCUS, i, 0)
' (int)SNDMSG((hwnd), TCM_SETMINTABWIDTH, 0, x)
' (void)SNDMSG((hwnd), TCM_DESELECTALL, fExcludeFocus, 0)
' (BOOL)SNDMSG((hwnd), TCM_HIGHLIGHTITEM, (WPARAM)i, (LPARAM)MAKELONG (fHighlight, 0))
' (DWORD)SNDMSG((hwnd), TCM_SETEXTENDEDSTYLE, 0, dw)
' (DWORD)SNDMSG((hwnd), TCM_GETEXTENDEDSTYLE, 0, 0) 36: WA_
if (m.Msg == Win32.WM_ACTIVATE && m.HWnd == f.Handle 37: WINERROR
public const int ERROR_HWNDS_HAVE_DIFF_PARENT = 1441;
public const int OLE_E_INVALIDHWND = (int)(0x8004000F - 0x100000000);
public const int DRAGDROP_E_INVALIDHWND = (int)(0x80040102 - 0x100000000);
public const int OLEOBJ_S_INVALIDHWND = 0x00040182; irprops
static extern uint BluetoothAuthenticateDeviceEx(IntPtr hwndParentIn, IntPtr hRadioIn, ref BLUETOOTH_DEVICE_INFO pbtdiInout, BLUETOOTH_OOB_DATA pbtOobData, uint authenticationRequirement);
static extern uint BluetoothAuthenticateDeviceEx(IntPtr hwndParentIn, IntPtr hRadioIn, ref BLUETOOTH_DEVICE_INFO pbtdiInout, BLUETOOTH_OOB_DATA pbtOobData, uint authenticationRequirement); Structures40: BROWSEINFO
public IntPtr hwndOwner;
Public hwndOwner As IntPtr 41: BSMINFO
public IntPtr hwnd;
public IntPtr hwnd; // might be NULL (indicating no owner window) 43: COMBOBOXINFO
public IntPtr hwndCombo;
public IntPtr hwndEdit;
public IntPtr hwndList;
hwndCombo As Long
hwndEdit As Long
hwndList As Long 44: COPYDATASTRUCT
SendMessage(hWnd, WM_COPYDATA, IntPtr.Zero, copyDataBuff); 45: CREATESTRUCT
public IntPtr hwndParent;
Public hwndParent As IntPtr 46: CREDUI_INFO
public IntPtr hwndParent;
Public hwndParent As IntPtr
public IntPtr hwndApp;
Public hwndApp As IntPtr 48: CWPRETSTRUCT
IntPtr hWnd; 49: CWPSTRUCT
public IntPtr hwnd;
Public hWnd As IntPtr 50: EVENTMSG
public IntPtr hwnd;
Public hwnd As IntPtr 51: GUITHREADINFO
public IntPtr hwndActive;
public IntPtr hwndFocus;
public IntPtr hwndCapture;
public IntPtr hwndMenuOwner;
public IntPtr hwndMoveSize;
public IntPtr hwndCaret;
Public hwndActive As IntPtr
Public hwndFocus As IntPtr
Public hwndCapture As IntPtr
Public hwndMenuOwner As IntPtr
Public hwndMoveSize As IntPtr
Public hwndCaret As IntPtr 52: MOUSEHOOKSTRUCT
public IntPtr hwnd;
public IntPtr hwnd; 53: MSG
public IntPtr hwndOwner; 54: NMHDR
public IntPtr hwndFrom;
Public hwndFrom As IntPtr 55: NOTIFYICONDATA
/// taskbar status area. The Shell uses hWnd and uID to identify which icon to operate on
public IntPtr hwnd;
/// Application-defined identifier of the taskbar icon. The Shell uses hWnd and uID to identify
/// associated with a single hWnd by assigning each a different uID.
/// notifications to the window identified in hWnd.
public IntPtr hWnd;
Dim hWnd As IntPtr
public IntPtr hWnd; 57: OpenFileName
int hwndOwner;
Public hwndOwner As IntPtr
public IntPtr hwndOwner;
Public hwndOwner As IntPtr 59: PRINTDLG
public IntPtr hwndOwner;
public int hwndParent = 0; Cut off search results after 60. Please refine your search. |