UtilUIAutomationSetWindowState(IntPtr, ProcessWindowStyle) Method
Set the visibility state of a 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 SetWindowState(
IntPtr hWnd,
ProcessWindowStyle state
)
Public Shared Function SetWindowState (
hWnd As IntPtr,
state As ProcessWindowStyle
) As Boolean
Dim hWnd As IntPtr
Dim state As ProcessWindowStyle
Dim returnValue As Boolean
returnValue = UtilUIAutomation.SetWindowState(hWnd,
state)
public:
static bool SetWindowState(
IntPtr hWnd,
ProcessWindowStyle state
)
static member SetWindowState :
hWnd : IntPtr *
state : ProcessWindowStyle -> bool
No code example is currently available or this language may not be supported.
- hWnd IntPtr
-
A handle to the window.
- state ProcessWindowStyle
-
The window state.
Boolean
If the window was previously visible, the return value is
.
If the window was previously hidden, the return value is
.
This is a code example.
No code example is currently available or this language may not be supported.
Dim hwnd As IntPtr = Process.GetProcessesByName("notepad").First.MainWindowHandle
SetWindowState(hwnd, ProcessWindowStyle.Hidden)
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.
InvalidEnumArgumentException
|
state
|