Desktop Functions: Smart Device Functions:
|
Search Results for "HWND" in [All]printui
private static extern void PrintUIEntryW(IntPtr hwnd, IntPtr hinst, string lpszCmdLine, int nCmdShow); Constants2: 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, 5: 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 6: HWND_MESSAGE public static IntPtr HWND_MESSAGE = new IntPtr(-3); 7: 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) 8: WA_
if (m.Msg == Win32.WM_ACTIVATE && m.HWnd == f.Handle 9: 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); 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 15: 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); 16: 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); 17: ExtEscape
18: ExtEscape
private static extern IntPtr GetDC(IntPtr hwnd); 19: 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, _ 20: 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, 21: 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); 22: GetDC
private static extern IntPtr GetDCCE(IntPtr hWnd); 23: GetDesktopWindow
private static extern bool SetForegroundWindow(IntPtr hWnd); 24: 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 25: 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 26: 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); 28: ImmSetOpenStatus
IntPtr hWnd= IntPtr.Zero;
hWnd= GetActiveWindow();
if(hWnd == IntPtr.Zero){
context= ImmGetContext(hWnd); //get IMEContext
ImmReleaseContext(hWnd, context); //Release IMEContext 29: MessageBox public static extern int MessageBoxW(int hWnd, String text, String caption, uint type);
Public Shared Function MessageBoxW(ByVal hWnd As Integer, _ 30: NOTIFYICONDATA
public IntPtr HWnd;
notdata.HWnd = this.Hwnd; 31: OpenClipboard private static extern bool OpenClipboard(IntPtr hWndNewOwner); !!!!VB Signature: 32: OpenClipboard
private static extern bool OpenClipboard(IntPtr hWndNewOwner);
<DllImport("coredll.dll")> Shared Function OpenClipboard(ByVal hWndNewOwner As Integer) As Boolean 33: PostKeybdMessage
internal static extern bool PostKeybdMessage(IntPtr hwnd, uint vKey, KeyStateFlags flags, uint cCharacters, KeyStateFlags[] pShiftStateBuffer, uint[] pCharacterBuffer); 34: ReleaseDC
private static extern int ReleaseDC(IntPtr hWnd, IntPtr hDC); 35: 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); 36: 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; 37: 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); 39: 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); 40: 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)) 41: 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, 42: 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); 44: 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. 45: 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); 46: waveOutOpen
IntPtr hwnd = IntPtr.Zero; credui
public IntPtr hwndParent;
credui.hwndParent = this.Handle;
public IntPtr hwndParent; wtsapi32
static extern bool WTSRegisterSessionNotification(IntPtr hWnd, [MarshalAs(UnmanagedType.U4)] int dwFlags);
Declare Function WTSRegisterSessionNotification Lib "wtsapi32.dll" (ByVal hWnd as IntPtr, ByVal dwFlags as Int32) As Boolean
private static extern bool WTSRegisterSessionNotification(IntPtr hWnd, [MarshalAs(UnmanagedType.U4)]int dwFlags);
private static extern bool WTSUnRegisterSessionNotification(IntPtr hWnd); odbc3250: SQLDriverConnect
IntPtr hwnd,
Private Shared Function SQLDriverConnect(ByVal hdbc As IntPtr, ByVal hwnd As IntPtr, ByVal szConnStrIn As String, _ rasapi3251: RasDial
public IntPtr hwndOwner; 52: RasDialDlg
public IntPtr hwndOwner; wininet53: InternetDial private static extern Int32 InternetDial(IntPtr hwndParent, string lpszConnectoid, Int32 dwFlags, ref Int32 lpdwConnection, Int32 dwReserved); psapi
IntPtr hWnd = WindowFromPoint(pt);
GetWindowThreadProcessId(hWnd, out pid); mpr
private static extern int WNetAddConnection3(IntPtr hWndOwner,
''' <param name="hWndOwner"></param>
Private Shared Function WNetAddConnection3(ByVal hWndOwner As IntPtr, _
WNetAddConnection3(hWnd, ref ConnInf, null, null,
private static extern int WNetAddConnection3(IntPtr hWndOwner,
''' <param name="hWndOwner"></param>
Private Shared Function WNetAddConnection3(ByVal hWndOwner As IntPtr, _
WNetAddConnection3(hWnd, ref ConnInf, null, null,
IntPtr hwndOwner, Enums
///<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>
/// below the window identified by hWnd.</summary>
/// above the window identified by hWnd.</summary>
/// set to the upper-left corner of the window identified by hWnd.</summary>
''' below the window identified by hWnd.</summary>
''' above the window identified by hWnd.</summary>
''' set to the upper-left corner of the window identified by hWnd.</summary>
public static extern int DwmSetWindowAttribute(IntPtr hwnd, DWMWINDOWATTRIBUTE attr, ref int attrValue, int attrSize);
Public Shared Function DwmSetWindowAttribute(hwnd As IntPtr, attr As DWMWINDOWATTRIBUTE, ByRef attrValue As Integer, attrSize As Integer) As Integer Cut off search results after 60. Please refine your search. |