public interface Wtsapi32
extends com.sun.jna.platform.win32.Wtsapi32
| Modifier and Type | Interface and Description |
|---|---|
static class |
Wtsapi32.WTS_PROCESS_INFO_EX
Contains extended information about a process running on a Remote Desktop
Session Host (RD Session Host) server.
|
| Modifier and Type | Field and Description |
|---|---|
static Wtsapi32 |
INSTANCE |
static int |
WTS_ANY_SESSION
Specifies any-session (SessionId)
|
static com.sun.jna.platform.win32.WinNT.HANDLE |
WTS_CURRENT_SERVER_HANDLE
Specifies the current server
|
static int |
WTS_CURRENT_SESSION
Specifies the current session (SessionId)
|
static int |
WTS_PROCESS_INFO_LEVEL_0 |
static int |
WTS_PROCESS_INFO_LEVEL_1 |
NOTIFY_FOR_ALL_SESSIONS, NOTIFY_FOR_THIS_SESSION, WTS_CONSOLE_CONNECT, WTS_CONSOLE_DISCONNECT, WTS_REMOTE_CONNECT, WTS_REMOTE_DISCONNECT, WTS_SESSION_LOCK, WTS_SESSION_LOGOFF, WTS_SESSION_LOGON, WTS_SESSION_REMOTE_CONTROL, WTS_SESSION_UNLOCK| Modifier and Type | Method and Description |
|---|---|
boolean |
WTSEnumerateProcessesEx(com.sun.jna.platform.win32.WinNT.HANDLE hServer,
com.sun.jna.ptr.IntByReference pLevel,
int SessionID,
com.sun.jna.ptr.PointerByReference ppProcessInfo,
com.sun.jna.ptr.IntByReference pCount)
Retrieves information about the active processes on the specified Remote
Desktop Session Host (RD Session Host) server or Remote Desktop
Virtualization Host (RD Virtualization Host) server.
|
boolean |
WTSFreeMemoryEx(int WTSTypeClass,
com.sun.jna.Pointer pMemory,
int NumberOfEntries)
Frees memory that contains WTS_PROCESS_INFO_EX or WTS_SESSION_INFO_1
structures allocated by a Remote Desktop Services function.
|
static final Wtsapi32 INSTANCE
static final com.sun.jna.platform.win32.WinNT.HANDLE WTS_CURRENT_SERVER_HANDLE
static final int WTS_CURRENT_SESSION
static final int WTS_ANY_SESSION
static final int WTS_PROCESS_INFO_LEVEL_0
static final int WTS_PROCESS_INFO_LEVEL_1
boolean WTSEnumerateProcessesEx(com.sun.jna.platform.win32.WinNT.HANDLE hServer,
com.sun.jna.ptr.IntByReference pLevel,
int SessionID,
com.sun.jna.ptr.PointerByReference ppProcessInfo,
com.sun.jna.ptr.IntByReference pCount)
hServer - A handle to an RD Session Host server. Specify a handle opened
by the WTSOpenServer function, or specify
WTS_CURRENT_SERVER_HANDLE to indicate the server on which your
application is running.pLevel - A pointer to a DWORD variable that, on input, specifies the
type of information to return. To return an array of
WTS_PROCESS_INFO structures, specify zero. To return an array
of WTS_PROCESS_INFO_EX structures, specify one. If you do not
specify a valid value for this parameter, on output,
WTSEnumerateProcessesEx sets this parameter to one and returns
an error. Otherwise, on output, WTSEnumerateProcessesEx does
not change the value of this parameter.SessionID - The session for which to enumerate processes. To enumerate
processes for all sessions on the server, specify
WTS_ANY_SESSION.ppProcessInfo - A pointer to a variable that receives a pointer to an array of
WTS_PROCESS_INFO or WTS_PROCESS_INFO_EX structures. The type
of structure is determined by the value passed to the pLevel
parameter. Each structure in the array contains information
about an active process. When you have finished using the
array, free it by calling the WTSFreeMemoryEx function. You
should also set the pointer to NULL.pCount - A pointer to a variable that receives the number of structures
returned in the buffer referenced by the ppProcessInfo
parameter.boolean WTSFreeMemoryEx(int WTSTypeClass,
com.sun.jna.Pointer pMemory,
int NumberOfEntries)
WTSTypeClass - A value of the WTS_TYPE_CLASS enumeration type that specifies
the type of structures contained in the buffer referenced by
the pMemory parameter.pMemory - A pointer to the buffer to free.NumberOfEntries - The number of elements in the buffer referenced by the pMemory
parameter.Copyright © 2010–2018 oshi. All rights reserved.