org.gudy.azureus2.platform.win32.access.impl
Class AEWin32AccessInterface

java.lang.Object
  extended by org.gudy.azureus2.platform.win32.access.impl.AEWin32AccessInterface

public class AEWin32AccessInterface
extends Object


Field Summary
static long BROADCAST_QUERY_DENY
           
static int ES_AWAYMODE_REQUIRED
           
static int ES_CONTINUOUS
           
static int ES_DISPLAY_REQUIRED
           
static int ES_SYSTEM_REQUIRED
           
static int ES_USER_PRESENT
           
static int HKEY_CLASSES_ROOT
           
static int HKEY_CURRENT_CONFIG
           
static int HKEY_CURRENT_USER
           
static int HKEY_LOCAL_MACHINE
           
static int PBT_APMQUERYSUSPEND
           
static int PBT_APMRESUMESUSPEND
           
static int PBT_APMSUSPEND
           
static int WM_ENDSESSION
           
static int WM_POWERBROADCAST
           
static int WM_QUERYENDSESSION
           
 
Constructor Summary
AEWin32AccessInterface()
           
 
Method Summary
static long callback(int msg, int param1, long param2)
           
static void copyPermission(String from_file_name, String to_file_name)
           
static void createProcess(String command_line, boolean inherit_handles)
           
protected static void deleteKey(int type, String subkey, boolean recursive)
           
protected static void deleteValue(int type, String subkey, String value_namae)
           
static List getAvailableDrives()
           
static Map getDriveInfo(char driveLetter)
           
protected static String getVersion()
           
protected static void initialise()
           
protected static boolean isEnabled(boolean check_if_disabled)
           
protected static void load(AEWin32AccessCallback _callback, boolean _fully_initialise)
           
static void moveToRecycleBin(String file_name)
           
protected static String readStringValue(int type, String subkey, String value_name)
           
protected static int readWordValue(int type, String subkey, String value_name)
           
static int setThreadExecutionState(int esFLAGS)
           
static int shellExecute(String operation, String file, String parameters, String directory, int sw_const)
           
static int shellExecuteAndWait(String file, String parameters)
           
static boolean testNativeAvailability(String name)
           
static void traceRoute(int trace_id, int source_address, int target_address, int pice_mode, AEWin32AccessCallback callback)
           
protected static void writeStringValue(int type, String subkey, String value_name, String value_value)
           
protected static void writeWordValue(int type, String subkey, String value_name, int value_value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HKEY_CLASSES_ROOT

public static final int HKEY_CLASSES_ROOT
See Also:
Constant Field Values

HKEY_CURRENT_CONFIG

public static final int HKEY_CURRENT_CONFIG
See Also:
Constant Field Values

HKEY_LOCAL_MACHINE

public static final int HKEY_LOCAL_MACHINE
See Also:
Constant Field Values

HKEY_CURRENT_USER

public static final int HKEY_CURRENT_USER
See Also:
Constant Field Values

WM_QUERYENDSESSION

public static final int WM_QUERYENDSESSION
See Also:
Constant Field Values

WM_ENDSESSION

public static final int WM_ENDSESSION
See Also:
Constant Field Values

WM_POWERBROADCAST

public static final int WM_POWERBROADCAST
See Also:
Constant Field Values

PBT_APMQUERYSUSPEND

public static final int PBT_APMQUERYSUSPEND
See Also:
Constant Field Values

PBT_APMSUSPEND

public static final int PBT_APMSUSPEND
See Also:
Constant Field Values

PBT_APMRESUMESUSPEND

public static final int PBT_APMRESUMESUSPEND
See Also:
Constant Field Values

BROADCAST_QUERY_DENY

public static final long BROADCAST_QUERY_DENY
See Also:
Constant Field Values

ES_SYSTEM_REQUIRED

public static final int ES_SYSTEM_REQUIRED
See Also:
Constant Field Values

ES_DISPLAY_REQUIRED

public static final int ES_DISPLAY_REQUIRED
See Also:
Constant Field Values

ES_USER_PRESENT

public static final int ES_USER_PRESENT
See Also:
Constant Field Values

ES_AWAYMODE_REQUIRED

public static final int ES_AWAYMODE_REQUIRED
See Also:
Constant Field Values

ES_CONTINUOUS

public static final int ES_CONTINUOUS
See Also:
Constant Field Values
Constructor Detail

AEWin32AccessInterface

public AEWin32AccessInterface()
Method Detail

isEnabled

protected static boolean isEnabled(boolean check_if_disabled)

load

protected static void load(AEWin32AccessCallback _callback,
                           boolean _fully_initialise)

callback

public static long callback(int msg,
                            int param1,
                            long param2)

initialise

protected static void initialise()
                          throws AEWin32AccessExceptionImpl
Throws:
AEWin32AccessExceptionImpl

getVersion

protected static String getVersion()

readStringValue

protected static String readStringValue(int type,
                                        String subkey,
                                        String value_name)
                                 throws AEWin32AccessExceptionImpl
Throws:
AEWin32AccessExceptionImpl

writeStringValue

protected static void writeStringValue(int type,
                                       String subkey,
                                       String value_name,
                                       String value_value)
                                throws AEWin32AccessExceptionImpl
Throws:
AEWin32AccessExceptionImpl

readWordValue

protected static int readWordValue(int type,
                                   String subkey,
                                   String value_name)
                            throws AEWin32AccessExceptionImpl
Throws:
AEWin32AccessExceptionImpl

writeWordValue

protected static void writeWordValue(int type,
                                     String subkey,
                                     String value_name,
                                     int value_value)
                              throws AEWin32AccessExceptionImpl
Throws:
AEWin32AccessExceptionImpl

deleteKey

protected static void deleteKey(int type,
                                String subkey,
                                boolean recursive)
                         throws AEWin32AccessExceptionImpl
Throws:
AEWin32AccessExceptionImpl

deleteValue

protected static void deleteValue(int type,
                                  String subkey,
                                  String value_namae)
                           throws AEWin32AccessExceptionImpl
Throws:
AEWin32AccessExceptionImpl

createProcess

public static void createProcess(String command_line,
                                 boolean inherit_handles)
                          throws AEWin32AccessException
Throws:
AEWin32AccessException

moveToRecycleBin

public static void moveToRecycleBin(String file_name)
                             throws AEWin32AccessException
Throws:
AEWin32AccessException

copyPermission

public static void copyPermission(String from_file_name,
                                  String to_file_name)
                           throws AEWin32AccessException
Throws:
AEWin32AccessException

testNativeAvailability

public static boolean testNativeAvailability(String name)
                                      throws AEWin32AccessException
Throws:
AEWin32AccessException

traceRoute

public static void traceRoute(int trace_id,
                              int source_address,
                              int target_address,
                              int pice_mode,
                              AEWin32AccessCallback callback)
                       throws AEWin32AccessException
Throws:
AEWin32AccessException

shellExecute

public static int shellExecute(String operation,
                               String file,
                               String parameters,
                               String directory,
                               int sw_const)
                        throws AEWin32AccessExceptionImpl
Throws:
AEWin32AccessExceptionImpl

shellExecuteAndWait

public static int shellExecuteAndWait(String file,
                                      String parameters)
                               throws AEWin32AccessExceptionImpl
Throws:
AEWin32AccessExceptionImpl

getAvailableDrives

public static List getAvailableDrives()
                               throws AEWin32AccessExceptionImpl
Throws:
AEWin32AccessExceptionImpl

getDriveInfo

public static Map getDriveInfo(char driveLetter)
                        throws AEWin32AccessExceptionImpl
Throws:
AEWin32AccessExceptionImpl

setThreadExecutionState

public static int setThreadExecutionState(int esFLAGS)