| java.lang.Object com.memoire.vainstall.JNIWindowsShortcut
JNIWindowsShortcut | public class JNIWindowsShortcut (Code) | | A means of creating Windows shortcuts using the JNI interface.
author: Dick Repasky |
Method Summary | |
final public static String | createShortcut(String targetname, String workingdir, String args, int openas, String linkname, int location, int forwhom, String iconfile, int iconoffset, String description) Create a Windows Shortcut using the information provided. | final public static int | getMaxPathlength() Return maximum allowable Win32 path length (i.e.,
value of the constant MAX_PATH). | final public static String | getShortcutDir(int location, int forwhom) Return the name of the directory that would contain
a link of the type give. | final public static String | getShortcutName(String linkname, int location, int forwhom) Return the name of the shortcut that would be created if
the following arguments were used. | public static void | loadLib() |
CUSTOM_LOCATION | final public static int CUSTOM_LOCATION(Code) | | Value for location.
If you use this value,
the value of linkname
should include the
full name of the
directory that will
contain the new link.
|
EVERYBODY | final public static int EVERYBODY(Code) | | Value for forwhom.
|
ON_DESKTOP | final public static int ON_DESKTOP(Code) | | Value for location.
|
ON_START_MENU | final public static int ON_START_MENU(Code) | | Value for location.
|
SHOW_MAX | final public static int SHOW_MAX(Code) | | Value for openas.
|
SHOW_MIN | final public static int SHOW_MIN(Code) | | Value for openas.
|
SHOW_NORMAL | final public static int SHOW_NORMAL(Code) | | Value for openas.
|
USER_ONLY | final public static int USER_ONLY(Code) | | Value for forwhom.
|
isDllLoaded_ | public static boolean isDllLoaded_(Code) | | |
createShortcut | final public static String createShortcut(String targetname, String workingdir, String args, int openas, String linkname, int location, int forwhom, String iconfile, int iconoffset, String description) throws IOException(Code) | | Create a Windows Shortcut using the information provided.
|
getMaxPathlength | final public static int getMaxPathlength()(Code) | | Return maximum allowable Win32 path length (i.e.,
value of the constant MAX_PATH).
|
getShortcutDir | final public static String getShortcutDir(int location, int forwhom)(Code) | | Return the name of the directory that would contain
a link of the type give.
|
getShortcutName | final public static String getShortcutName(String linkname, int location, int forwhom) throws IOException(Code) | | Return the name of the shortcut that would be created if
the following arguments were used. Arguments are as
for createShortcut.
exception: java.io.IOException - if full path name islonger than maximum allowed. |
loadLib | public static void loadLib()(Code) | | |
|
|