Class WinNative

java.lang.Object
javaforce.jni.WinNative

public class WinNative extends Object
Windows Native API
Author:
pquiring
  • Constructor Details

    • WinNative

      public WinNative()
  • Method Details

    • comOpen

      public static long comOpen(String name, int baud)
    • 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

      public static boolean getWindowRect(String name, int[] rect)
    • getLog

      public static String getLog()
    • executeSession

      public static long executeSession(String cmd, String[] args)
    • 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

      public static long peBegin(String file)
    • 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

      public static boolean impersonateUser(String domain, String user, String passwd)
    • createProcessAsUser

      public static boolean createProcessAsUser(String domain, String user, String passwd, String app, String cmdline)
    • findJDKHome

      public static String 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

      public static long tapeOpen(String name)
    • 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

      public static long changerOpen(String name)
    • changerClose

      public static void changerClose(long handle)
    • changerList

      public static String[] changerList(long handle)
    • changerMove

      public static boolean changerMove(long handle, String src, String transport, String dst)
    • vssInit

      public static boolean vssInit()
    • vssListVols

      public static String[] vssListVols()
    • vssListShadows

      public static String[][] vssListShadows()
    • vssCreateShadow

      public static boolean vssCreateShadow(String drv)
    • vssCreateShadow

      public static boolean vssCreateShadow(String drv, String mount)
    • vssDeleteShadow

      public static boolean vssDeleteShadow(String shadowID)
    • vssDeleteShadowAll

      public static boolean vssDeleteShadowAll()
    • vssMountShadow

      public static boolean vssMountShadow(String mount, String shadowVol)
    • vssUnmountShadow

      public static boolean vssUnmountShadow(String mount)
    • add

      public static int add(int x, int y)
    • hold

      public static void hold(int[] a, int ms)