Class AEWin32AccessInterface
- java.lang.Object
-
- com.biglybt.platform.win32.access.impl.AEWin32AccessInterface
-
public class AEWin32AccessInterface extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static long
BROADCAST_QUERY_DENY
private static AEWin32AccessCallback
cb
private static boolean
enabled
private static boolean
enabled_set
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
Constructors Constructor Description AEWin32AccessInterface()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
callback(int msg, int param1, long param2)
static void
copyPermission(java.lang.String from_file_name, java.lang.String to_file_name)
static void
createProcess(java.lang.String command_line, boolean inherit_handles)
protected static void
deleteKey(int type, java.lang.String subkey, boolean recursive)
protected static void
deleteValue(int type, java.lang.String subkey, java.lang.String value_namae)
static java.util.List
getAvailableDrives()
static java.util.Map
getDriveInfo(char driveLetter)
protected static java.lang.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(java.lang.String file_name)
protected static java.lang.String
readStringValue(int type, java.lang.String subkey, java.lang.String value_name)
protected static int
readWordValue(int type, java.lang.String subkey, java.lang.String value_name)
static int
setThreadExecutionState(int esFLAGS)
static int
shellExecute(java.lang.String operation, java.lang.String file, java.lang.String parameters, java.lang.String directory, int sw_const)
static int
shellExecuteAndWait(java.lang.String file, java.lang.String parameters)
static boolean
testNativeAvailability(java.lang.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, java.lang.String subkey, java.lang.String value_name, java.lang.String value_value)
protected static void
writeWordValue(int type, java.lang.String subkey, java.lang.String value_name, int value_value)
-
-
-
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
-
enabled
private static boolean enabled
-
enabled_set
private static boolean enabled_set
-
cb
private static AEWin32AccessCallback cb
-
-
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 java.lang.String getVersion()
-
readStringValue
protected static java.lang.String readStringValue(int type, java.lang.String subkey, java.lang.String value_name) throws AEWin32AccessExceptionImpl
- Throws:
AEWin32AccessExceptionImpl
-
writeStringValue
protected static void writeStringValue(int type, java.lang.String subkey, java.lang.String value_name, java.lang.String value_value) throws AEWin32AccessExceptionImpl
- Throws:
AEWin32AccessExceptionImpl
-
readWordValue
protected static int readWordValue(int type, java.lang.String subkey, java.lang.String value_name) throws AEWin32AccessExceptionImpl
- Throws:
AEWin32AccessExceptionImpl
-
writeWordValue
protected static void writeWordValue(int type, java.lang.String subkey, java.lang.String value_name, int value_value) throws AEWin32AccessExceptionImpl
- Throws:
AEWin32AccessExceptionImpl
-
deleteKey
protected static void deleteKey(int type, java.lang.String subkey, boolean recursive) throws AEWin32AccessExceptionImpl
- Throws:
AEWin32AccessExceptionImpl
-
deleteValue
protected static void deleteValue(int type, java.lang.String subkey, java.lang.String value_namae) throws AEWin32AccessExceptionImpl
- Throws:
AEWin32AccessExceptionImpl
-
createProcess
public static void createProcess(java.lang.String command_line, boolean inherit_handles) throws AEWin32AccessException
- Throws:
AEWin32AccessException
-
moveToRecycleBin
public static void moveToRecycleBin(java.lang.String file_name) throws AEWin32AccessException
- Throws:
AEWin32AccessException
-
copyPermission
public static void copyPermission(java.lang.String from_file_name, java.lang.String to_file_name) throws AEWin32AccessException
- Throws:
AEWin32AccessException
-
testNativeAvailability
public static boolean testNativeAvailability(java.lang.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(java.lang.String operation, java.lang.String file, java.lang.String parameters, java.lang.String directory, int sw_const) throws AEWin32AccessExceptionImpl
- Throws:
AEWin32AccessExceptionImpl
-
shellExecuteAndWait
public static int shellExecuteAndWait(java.lang.String file, java.lang.String parameters) throws AEWin32AccessExceptionImpl
- Throws:
AEWin32AccessExceptionImpl
-
getAvailableDrives
public static java.util.List getAvailableDrives() throws AEWin32AccessExceptionImpl
- Throws:
AEWin32AccessExceptionImpl
-
getDriveInfo
public static java.util.Map getDriveInfo(char driveLetter) throws AEWin32AccessExceptionImpl
- Throws:
AEWin32AccessExceptionImpl
-
setThreadExecutionState
public static int setThreadExecutionState(int esFLAGS)
-
-