Desktop Functions: Smart Device Functions:
|
Search Results for "HWND" in [All]ole321: OleCreate
static extern void OleCreatePropertyFrame(IntPtr hwndOwner, int x, int y,
(ByVal hwndOwner As IntPtr, _
static extern int OleCreatePropertyFrame(IntPtr hwndOwner,
static extern void OleCreatePropertyFrame(IntPtr hwndOwner, uint x, uint y,
(ByVal hwndOwner As IntPtr, _
static extern int RegisterDragDrop(IntPtr hwnd, IDropTarget pDropTarget); DRAGDROP_E_INVALIDHWND = ?; static extern int RevokeDragDrop(IntPtr hwnd); 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 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); 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); 10: ExtEscape
11: ExtEscape
private static extern IntPtr GetDC(IntPtr hwnd); 12: 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, _ 13: 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, 14: 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); 15: GetDC
private static extern IntPtr GetDCCE(IntPtr hWnd); 16: GetDesktopWindow
private static extern bool SetForegroundWindow(IntPtr hWnd); 17: 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 18: 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 19: 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); 21: ImmSetOpenStatus
IntPtr hWnd= IntPtr.Zero;
hWnd= GetActiveWindow();
if(hWnd == IntPtr.Zero){
context= ImmGetContext(hWnd); //get IMEContext
ImmReleaseContext(hWnd, context); //Release IMEContext 22: MessageBox public static extern int MessageBoxW(int hWnd, String text, String caption, uint type);
Public Shared Function MessageBoxW(ByVal hWnd As Integer, _ 23: NOTIFYICONDATA
public IntPtr HWnd;
notdata.HWnd = this.Hwnd; 24: OpenClipboard private static extern bool OpenClipboard(IntPtr hWndNewOwner); !!!!VB Signature: 25: OpenClipboard
private static extern bool OpenClipboard(IntPtr hWndNewOwner);
<DllImport("coredll.dll")> Shared Function OpenClipboard(ByVal hWndNewOwner As Integer) As Boolean 26: PostKeybdMessage
internal static extern bool PostKeybdMessage(IntPtr hwnd, uint vKey, KeyStateFlags flags, uint cCharacters, KeyStateFlags[] pShiftStateBuffer, uint[] pCharacterBuffer); 27: ReleaseDC
private static extern int ReleaseDC(IntPtr hWnd, IntPtr hDC); 28: 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); 29: 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; 30: 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); 32: 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); 33: 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)) 34: 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, 35: 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); 37: 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. 38: 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); 39: waveOutOpen
IntPtr hwnd = IntPtr.Zero; msi40: 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); mapi3241: MAPILogon
uint error = MAPILogon(hwnd, null, null, MAPI_LOGON_UI, 0, ref session); 42: MAPISendMail
Private Shared Function MAPISendMail(ByVal sess As IntPtr, ByVal hwnd As IntPtr, ByVal message As MapiMessage,
static extern int MAPISendMail(IntPtr sess, IntPtr hwnd, MapiMessage message, int flg, int rsv); credui
public IntPtr hwndParent;
credui.hwndParent = this.Handle;
public IntPtr hwndParent; imm3245: ImmConfigureIME
IntPtr hWnd, 46: ImmGetContext
public static extern IntPtr ImmGetContext(IntPtr hWnd);
public static extern IntPtr ImmGetContext(IntPtr hwnd);
public static extern int ImmSimulateHotKey(IntPtr hwnd, int lngHotkey);
public string[] GetReverseConversion(IntPtr AHwnd,string AText)
IntPtr hIMC = ImmGetContext(AHwnd);
public static extern bool ImmReleaseContext(IntPtr hWnd,IntPtr hIMC); gdi3249: CombineRgn
static extern System.UInt16 SetWindowRgn(IntPtr hWnd, IntPtr hRgn, bool bRedraw); 50: CreateRectRgn
static extern IntPtr GetDC(IntPtr hWnd); 51: CreateSolidBrush
static extern IntPtr GetDC(IntPtr hWnd); 52: EnumFontFamilies
Graphics graphics = Graphics.FromHwnd(IntPtr.Zero);
Graphics graphics = Graphics.FromHwnd(IntPtr.Zero); 54: ExtFloodFill
Graphics vGraphics = Graphics.FromHwnd(Handle); 55: FillRgn
static extern IntPtr GetDC(IntPtr hWnd); 56: GetDC
static extern IntPtr GetDC(IntPtr hWnd);
Public Function GetDC(ByVal hwnd As IntPtr) As IntPtr
(ByVal hWnd As Long) As Long Use GetWindowDC(IntPtr hWnd); for taking the dc for the whole window since this function only gets the client area of the window. Use IntPtr.Zero for hWnd to get a dc for the whole screen(Thanks to Mr.Charles Petzold.). IntPtr dc = GetDC(hWnd); 57: 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); 59: 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); Cut off search results after 60. Please refine your search. |