UtilUIAutomationFlashWindow(IntPtr, FlashWindowFlags, UInt32, UInt32) Method
Flashes a Window and/or it's button in the TaskBar.
It does not change the active state of the window.
Namespace: DevCase.Core.Diagnostics.ProcessesAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static bool FlashWindow(
IntPtr hWnd,
FlashWindowFlags flashFlags,
uint flashCount = 4294967295,
uint flashDelay = 0
)
Public Shared Function FlashWindow (
hWnd As IntPtr,
flashFlags As FlashWindowFlags,
Optional flashCount As UInteger = 4294967295,
Optional flashDelay As UInteger = 0
) As Boolean
Dim hWnd As IntPtr
Dim flashFlags As FlashWindowFlags
Dim flashCount As UInteger
Dim flashDelay As UInteger
Dim returnValue As Boolean
returnValue = UtilUIAutomation.FlashWindow(hWnd,
flashFlags, flashCount, flashDelay)
public:
static bool FlashWindow(
IntPtr hWnd,
FlashWindowFlags flashFlags,
unsigned int flashCount = 4294967295,
unsigned int flashDelay = 0
)
static member FlashWindow :
hWnd : IntPtr *
flashFlags : FlashWindowFlags *
?flashCount : uint32 *
?flashDelay : uint32
(* Defaults:
let _flashCount = defaultArg flashCount 4294967295
let _flashDelay = defaultArg flashDelay 0
*)
-> bool
No code example is currently available or this language may not be supported.
- hWnd IntPtr
-
A handle to the window to flash.
- flashFlags FlashWindowFlags
-
The flash flags.
- flashCount UInt32 (Optional)
-
The number of times to flash the window.
- flashDelay UInt32 (Optional)
-
The rate at which the window is to be flashed, in milliseconds.
If flashDelay is zero, the function uses the default cursor blink rate.
Boolean
The return value specifies the window's state before the call to the
FlashWindowEx(FlashWindowInfo) function.
If the window caption was drawn as active before the call, the return value is nonzero.
Otherwise, the return value is zero.
This is a code example.
No code example is currently available or this language may not be supported.
' Flash the Button TaskBar until the window becomes active.
FlashWindow(Me.Handle, FlashWindowFlags.TaskBar Or FlashWindowFlags.UntilForeground)
' Flash the Caption and the Button TaskBar until the "Stop" flag is set.
FlashWindow(Me.Handle, FlashWindowFlags.All Or FlashWindowFlags.UntilStop)
' Set the "Stop" flag to stop flashing.
FlashWindow(Me.Handle, FlashWindowFlags.Stop)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.