Class WinNative
java.lang.Object
javaforce.jni.WinNative
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intadd(int x, int y) static voidchangerClose(long handle) static String[]changerList(long handle) static booleanchangerMove(long handle, String src, String transport, String dst) static longchangerOpen(String name) static voidcloseSession(long token) static voidcomClose(long handle) static longstatic intcomRead(long handle, byte[] buf) static intcomWrite(long handle, byte[] buf) static booleanstatic voidstatic voidstatic longexecuteSession(String cmd, String[] args) static Stringstatic int[]static int[]static StringgetLog()static intstatic booleangetWindowRect(String name, int[] rect) static voidhold(int[] a, int ms) static booleanimpersonateUser(String domain, String user, String passwd) static voidpeAddIcon(long handle, byte[] data) static voidpeAddString(long handle, int name, int idx, byte[] data) static longstatic booleanstatic voidpeEnd(long handle) static charstatic voidstatic booleansetSessionID(long token, int sid) static voidstatic voidtapeClose(long handle) static booleantapeDrive(long handle) static intstatic intstatic intstatic booleantapeFormat(long handle, int blocksize) static longtapeGetpos(long handle) static intstatic booleantapeMedia(long handle) static intstatic booleanstatic longstatic longstatic inttapeRead(long handle, byte[] buf, int offset, int length) static booleantapeSetpos(long handle, long pos) static inttapeWrite(long handle, byte[] buf, int offset, int length) static booleanvssCreateShadow(String drv) static booleanvssCreateShadow(String drv, String mount) static booleanvssDeleteShadow(String shadowID) static booleanstatic booleanvssInit()static String[][]static String[]static booleanvssMountShadow(String mount, String shadowVol) static booleanvssUnmountShadow(String mount) static voidwriteConsole(int ch) static voidwriteConsoleArray(byte[] ch, int off, int len)
-
Constructor Details
-
WinNative
public WinNative()
-
-
Method Details
-
comOpen
-
comClose
public static void comClose(long handle) -
comRead
public static int comRead(long handle, byte[] buf) -
comWrite
public static int comWrite(long handle, byte[] buf) -
getWindowRect
-
getLog
-
executeSession
-
simulateCtrlAltDel
public static void simulateCtrlAltDel() -
setInputDesktop
public static void setInputDesktop() -
getSessionID
public static int getSessionID() -
setSessionID
public static boolean setSessionID(long token, int sid) -
closeSession
public static void closeSession(long token) -
peBegin
-
peAddIcon
public static void peAddIcon(long handle, byte[] data) -
peAddString
public static void peAddString(long handle, int name, int idx, byte[] data) -
peEnd
public static void peEnd(long handle) -
impersonateUser
-
createProcessAsUser
-
findJDKHome
-
enableConsoleMode
public static void enableConsoleMode() -
disableConsoleMode
public static void disableConsoleMode() -
getConsoleSize
public static int[] getConsoleSize() -
getConsolePos
public static int[] getConsolePos() -
readConsole
public static char readConsole() -
peekConsole
public static boolean peekConsole() -
writeConsole
public static void writeConsole(int ch) -
writeConsoleArray
public static void writeConsoleArray(byte[] ch, int off, int len) -
tapeOpen
-
tapeClose
public static void tapeClose(long handle) -
tapeFormat
public static boolean tapeFormat(long handle, int blocksize) -
tapeRead
public static int tapeRead(long handle, byte[] buf, int offset, int length) -
tapeWrite
public static int tapeWrite(long handle, byte[] buf, int offset, int length) -
tapeSetpos
public static boolean tapeSetpos(long handle, long pos) -
tapeGetpos
public static long tapeGetpos(long handle) -
tapeMedia
public static boolean tapeMedia(long handle) -
tapeMediaSize
public static long tapeMediaSize() -
tapeMediaBlockSize
public static int tapeMediaBlockSize() -
tapeMediaReadOnly
public static boolean tapeMediaReadOnly() -
tapeDrive
public static boolean tapeDrive(long handle) -
tapeDriveMinBlockSize
public static int tapeDriveMinBlockSize() -
tapeDriveMaxBlockSize
public static int tapeDriveMaxBlockSize() -
tapeDriveDefaultBlockSize
public static int tapeDriveDefaultBlockSize() -
tapeLastError
public static int tapeLastError() -
changerOpen
-
changerClose
public static void changerClose(long handle) -
changerList
-
changerMove
-
vssInit
public static boolean vssInit() -
vssListVols
-
vssListShadows
-
vssCreateShadow
-
vssCreateShadow
-
vssDeleteShadow
-
vssDeleteShadowAll
public static boolean vssDeleteShadowAll() -
vssMountShadow
-
vssUnmountShadow
-
add
public static int add(int x, int y) -
hold
public static void hold(int[] a, int ms)
-