Main Page
    Cookbook/Overview     ImageMeister     the jcprops file     Licensing
    Binary Installation & Configuration [ Win · Mac · Nix · OSX ]     Changes
    Public API
    Source Code Main Page
        Java [ Common · Win · Mac · Nix ]     Native Code [ Common · Win · Mac · Nix ]     Manifest
        Native Code Overviews [ Common · Win · Mac · Nix · Strings ]     Macros [ General · Native Macros ]
        Walkthroughs [ Java only · Java and native ]     Building [ Win · Mac · Nix · OSX ]     Distribution Issues

All Packages  This Package  Class Hierarchy  Class Search  Index

Class com.jconfig.win.AppUtilsMSVM
java.lang.Object
   |
   +----com.jconfig.win.AppUtilsMSVM

  Summary

class  AppUtilsMSVM
     extends java.lang.Object
{
          // Fields 26
     static final int DATE_ACC_OFFSET;
     static final int DATE_CRE_OFFSET;
     static final int DATE_MOD_OFFSET;
     private static final String copyrightString;
     static final int kDateBundleArrayLen;
     static final int kFindFirstAttrHidden;
     static final int kFindFirstAttrSystem;
     private static final int kGVIIntArrayLen;
     private static final int kGVIIntFileSystemFlagsOffset;
     private static final int kGVIIntMaxComponentLengthOffset;
     private static final int kGVIIntSerialNumberOffset;
     private static final int kGVIStringArrayLen;
     private static final int kGVIStringFileSystemNameOffset;
     private static final int kGVIStringLabelOffset;
     private static final String kLinkExtension;
     static final int kMonitorInfoNumInts;
     static final int kResolveLinkFileNoUI;
     static final int kResolveLinkFileUI;
     private static final String[] kStandardBrowsers;
     private static final int kUnused;
     static final int kVolumeCapInfoCapacityOffset;
     static final int kVolumeCapInfoCapacityToUserOffset;
     static final int kVolumeCapInfoFreeSpaceOffset;
     static final int kVolumeCapInfoFreeSpaceToUserOffset;
     static final int kVolumeCapInfoLen;
     private static String tempDir;

          // Constructors 1
     private AppUtilsMSVM();

          // Methods 85
     static String adjustBadMSVM1ParentPath(String);
     static String adjustBadMSVM1Path(String);
     static int createFileAlias(String, String, int);
     static int createVolumeAlias(String, String, int);
     static String[] findAppsByExtension(String, int, int);
     static String[] findAppsByName(String, int, int);
     static int findClose(int);
     static int findFirstFile(String, int[], int[], String[]);
     static int findNextFile(int, int[], String[]);
     static int findVerbs(String[], String, int, int[], String[]);
     static int getAllMonitorInfo(int[], int, int[]);
     static int getAllProcessInfo(int[], int[], int[], int[], int[], int[], int[], int[], int[], int[], String[], int, int[]);
     static int getDriveDisplayName(String, String[]);
     static int getExecutableType(String, int[]);
     static int getExtIcon(String, int, int, int, int, int, int[]);
     static int getFileAttributes(String, int[]);
     static int getFileAttributesMask(String, int[]);
     static int getFileAttributesWriteMask(String, int[]);
     static int getFileDate(String, int[]);
     static int getFileIcon(String, int, int, int, int, int, int[]);
     static int getMainMonitorInfo(int[]);
     static int getShortPathName(String, String[]);
     static int getVolumeCapInfo(String, long[]);
     static int getVolumeDate(String, int[]);
     static int getVolumeFlags(String, int[]);
     static int getVolumeIcon(String, int, int, int, int, int, int[]);
     static int getVolumeLabel(String, String[]);
     static int getVolumeMaxFileNameLength(String, int[]);
     static int getVolumeReadFlagsMask(String, int[]);
     static int getVolumeReferenceNumber(String, int[]);
     static int getVolumes(int, int[], String[]);
     static void initialize(File);
     static boolean isDrivePath(File);
     private static boolean isDriveString(String);
     static boolean isLinkFile(File);
     static int launchApp(String, String, String, String, int[], int, String[]);
     static int launchURL(String, int, String[]);
     static int moveApp(int[], int, int);
     private static native int nativeCreateFileAlias(String, String, int);
     private static native int nativeCreateVolumeAlias(String, String, int);
     private static native int nativeFindAppsByExtension(String, String, int, int, int[], String[]);
     private static native int nativeFindAppsByName(String, int, int, int[], String[]);
     private static native int nativeFindClose(int);
     private static native int nativeFindFirstFile(String, int[], int[], String[]);
     private static native int nativeFindNextFile(int, int[], String[]);
     private static native int nativeFindVerbs(String[], String, int, int[], String[]);
     private static native int nativeGetAllMonitorInfo(int[], int, int[]);
     private static native int nativeGetAllProcessInfo(int[], int[], int[], int[], int[], int[], int[], int[], int[], int[], String[], int, int[]);
     private static native int nativeGetDriveDisplayName(String, String[]);
     private static native int nativeGetExecutableType(String, int[]);
     private static native int nativeGetExtIcon(String, int, int, int, int, int, int[]);
     private static native int nativeGetFileAttributes(String, int[]);
     private static native int nativeGetFileAttributesMask(String, int[]);
     private static native int nativeGetFileAttributesWriteMask(String, int[]);
     private static native int nativeGetFileDate(int, String, int[]);
     private static native int nativeGetFileIcon(String, int, int, int, int, int, int[]);
     private static native int nativeGetMainMonitorInfo(int[]);
     private static native int nativeGetShortPathName(String, String[]);
     private static native int nativeGetVolumeCapInfo(String, long[]);
     private static native int nativeGetVolumeDate(int, String, int[]);
     private static native int nativeGetVolumeFlags(String, int[]);
     private static native int nativeGetVolumeIcon(String, int, int, int, int, int, int[]);
     private static native int nativeGetVolumeInformation(String, String[], int[]);
     private static native int nativeGetVolumeReadFlagsMask(String, int[]);
     private static native int nativeGetVolumes(int, int[], String[]);
     private static native int nativeLaunchApp(String, String, String, String, int[], int, String[]);
     private static native int nativeLaunchURL(String, String, int, String[]);
     private static native int nativeMoveApp(int[], int, int);
     private static native int nativeQuitApp(int[], int);
     private static native int nativeResolveLinkFile(String, String[], int);
     private static native int nativeSetFileAttributes(String, int, int);
     private static native int nativeSetVolumeLabel(String, String);
     private static native int nativeVIPGetFileVersionInfoEnd(int);
     private static native int nativeVIPGetFileVersionInfoStart(String);
     private static native int nativeVIPVerQueryValue(int, String, String[]);
     private static native int nativeVerifyNativeAppData(int[]);
     static String pathToDriveName(File);
     static int quitApp(int[], int);
     static int resolveLinkFile(String, String[], int);
     static int setFileAttributes(String, int, int);
     static int setVolumeLabel(String, String);
     static int verifyNativeAppData(int[]);
     static int vipGetFileVersionInfoEnd(int);
     static int vipGetFileVersionInfoStart(String);
     static int vipVerQueryValue(int, String, String[]);

}

This is the lowest Java layer, and contains the native methods as static private members. Many of the methods of this file are simply wrappers around the private native methods. Almost all of these methods return an error code; 0 means success, other values indicate some form of error.

The 'initialize' method should be called before calling any other methods of this class.

The term 'WANC' in the documentation means that that method is just a Wrapper Around Native Code.

Future directions: make sure this is the lowest layer, by moving methods which have knowledge of higher layers (e.g., createNewDiskObject) into other files.

Author:
Copyright (c) 1997-2002 Samizdat Productions. All Rights Reserved.




  Fields

· copyrightString

Summary  |  Top

   private static final String copyrightString


· kFindFirstAttrHidden

Summary  |  Top
   static final int kFindFirstAttrHidden

Atrribute returned by findFirstFile/findNextFile.


· kFindFirstAttrSystem

Summary  |  Top
   static final int kFindFirstAttrSystem

Atrribute returned by findFirstFile/findNextFile.


· kDateBundleArrayLen

Summary  |  Top
   static final int kDateBundleArrayLen

The getFileDate() and getVolumeDate() methods are passed an array of java ints, into which the native code puts the modification, creation and access dates. Each date takes 6 ints: year, month, day, hour, minute, and second. This defines the total length of the jint array.


· DATE_MOD_OFFSET

Summary  |  Top
   static final int DATE_MOD_OFFSET

The offset of the modification date in the array passed to getFileDate() and getVolumeDate().


· DATE_CRE_OFFSET

Summary  |  Top
   static final int DATE_CRE_OFFSET

The offset of the creation date in the array passed to getFileDate() and getVolumeDate().


· DATE_ACC_OFFSET

Summary  |  Top
   static final int DATE_ACC_OFFSET

The offset of the access date in the array passed to getFileDate() and getVolumeDate().


· kMonitorInfoNumInts

Summary  |  Top
   static final int kMonitorInfoNumInts

Used in retrieving monitor information; see the 'getAllMonitorInfo' method.


· kVolumeCapInfoLen

Summary  |  Top
   static final int kVolumeCapInfoLen

See the 'getVolumeCapInfo' method.


· kVolumeCapInfoCapacityOffset

Summary  |  Top
   static final int kVolumeCapInfoCapacityOffset

See the 'getVolumeCapInfo' method.


· kVolumeCapInfoFreeSpaceOffset

Summary  |  Top
   static final int kVolumeCapInfoFreeSpaceOffset

See the 'getVolumeCapInfo' method.


· kVolumeCapInfoCapacityToUserOffset

Summary  |  Top
   static final int kVolumeCapInfoCapacityToUserOffset

See the 'getVolumeCapInfo' method.


· kVolumeCapInfoFreeSpaceToUserOffset

Summary  |  Top
   static final int kVolumeCapInfoFreeSpaceToUserOffset

See the 'getVolumeCapInfo' method.


· kResolveLinkFileNoUI

Summary  |  Top
   static final int kResolveLinkFileNoUI

See the 'resolveLinkFile' method.


· kResolveLinkFileUI

Summary  |  Top
   static final int kResolveLinkFileUI

See the 'resolveLinkFile' method.


· kStandardBrowsers

Summary  |  Top
   private static final String[] kStandardBrowsers

See the 'launchURL' method.


· kGVIStringArrayLen

Summary  |  Top
   private static final int kGVIStringArrayLen

Used with calls to nativeGetVolumeInformation().


· kGVIIntArrayLen

Summary  |  Top
   private static final int kGVIIntArrayLen

Used with calls to nativeGetVolumeInformation().


· kGVIStringLabelOffset

Summary  |  Top
   private static final int kGVIStringLabelOffset

Used with calls to nativeGetVolumeInformation().


· kGVIStringFileSystemNameOffset

Summary  |  Top
   private static final int kGVIStringFileSystemNameOffset

Used with calls to nativeGetVolumeInformation().


· kGVIIntSerialNumberOffset

Summary  |  Top
   private static final int kGVIIntSerialNumberOffset

Used with calls to nativeGetVolumeInformation().


· kGVIIntMaxComponentLengthOffset

Summary  |  Top
   private static final int kGVIIntMaxComponentLengthOffset

Used with calls to nativeGetVolumeInformation().


· kGVIIntFileSystemFlagsOffset

Summary  |  Top
   private static final int kGVIIntFileSystemFlagsOffset

Used with calls to nativeGetVolumeInformation().


· kUnused

Summary  |  Top
   private static final int kUnused

Used for some unused arguments.


· kLinkExtension

Summary  |  Top
   private static final String kLinkExtension

The extension of shortcut files.


· tempDir

Summary  |  Top
   private static String tempDir

Holds the full path of a directory used to store temporary files.


  Constructors

· AppUtilsMSVM

Summary  |  Top

   private AppUtilsMSVM() 


  Methods

· initialize

Summary  |  Top
   static void initialize(File temp) 

Must be called before calling other methods of this class

Parameter Description
temp a writable directory in which temporary files will be created.



· adjustBadMSVM1ParentPath

Summary  |  Top
   static String adjustBadMSVM1ParentPath(String ss) 

Works around a problem with the IE3.0 VM



· adjustBadMSVM1Path

Summary  |  Top
   static String adjustBadMSVM1Path(String ss) 

Works around a problem with the IE3.0 VM



· isLinkFile

Summary  |  Top
   static boolean isLinkFile(File fl) 

Is 'fl' a shortcut?



· isDrivePath

Summary  |  Top
   static boolean isDrivePath(File fl) 

Is 'fl' a volume?



· pathToDriveName

Summary  |  Top
   static String pathToDriveName(File fl) 

Returns the volume which contains 'fl', or null if that information can't be obtained.



· isDriveString

Summary  |  Top
   private static boolean isDriveString(String drivePath) 

Is 'drivePath' a volume path, i.e., 'c:\'?



· getFileIcon

Summary  |  Top
   static int getFileIcon(String fullPath, 
                          int whichIcon, 
                          int w, 
                          int h, 
                          int xform, 
                          int align, 
                          int[] pData) 

Gets the icon for a file.
WANC

Parameter Description
fullPath full path of the file
whichIcon either IconBundle.ICON_LARGE or IconBundle.ICON_SMALL
w the width of the icon
h the height of the icon
xform any transformation to be applied to the icon
align any alignment to be applied to the icon
pData an array of ints which will hold the Java format ARGB data for the icon This must have at least w * h elements



· getExtIcon

Summary  |  Top
   static int getExtIcon(String ext, 
                         int whichIcon, 
                         int w, 
                         int h, 
                         int xform, 
                         int align, 
                         int[] pData) 

Gets the icon for files ending in the given extension.
WANC

Parameter Description
ext the extension
whichIcon either IconBundle.ICON_LARGE or IconBundle.ICON_SMALL
w the width of the icon
h the height of the icon
xform any transformation to be applied to the icon
align any alignment to tbe applied to the icon
pData an array of ints which will hold the Java format ARGB data for the icon This must have at least w * h elements



· getVolumeIcon

Summary  |  Top
   static int getVolumeIcon(String driveName, 
                            int whichIcon, 
                            int w, 
                            int h, 
                            int xform, 
                            int align, 
                            int[] pData) 

Gets the icon for a volume
WANC

Parameter Description
driveName the voluem
whichIcon either IconBundle.ICON_LARGE or IconBundle.ICON_SMALL
w the width of the icon
h the height of the icon
xform any transformation to be applied to the icon
align any alignment to tbe applied to the icon
pData an array of ints which will hold the Java format ARGB data for the icon This must have at least w * h elements



· createVolumeAlias

Summary  |  Top
   static int createVolumeAlias(String driveName, 
                                String newAliasPath, 
                                int flags) 

Create an alias to a volume
WANC

Parameter Description
driveName the target
newAliasPath the full path to the new alias



· createFileAlias

Summary  |  Top
   static int createFileAlias(String targetPath, 
                              String newAliasPath, 
                              int flags) 

Create an alias to a file
WANC

Parameter Description
targetPath full path of the target
newAliasPath the full path to the new alias



· vipGetFileVersionInfoStart

Summary  |  Top
   static int vipGetFileVersionInfoStart(String fileName) 

Retrieves version information for a file.
WANC

Parameter Description
fileName the full path of the file

Returns:
0 if the file has no version information, otherwise a handle which is passed to 'vipVerQueryValue' and 'vipGetFileVersionInfoEnd'


· vipVerQueryValue

Summary  |  Top
   static int vipVerQueryValue(int versionH, 
                               String key, 
                               String[] value) 

Call this after calling 'vipGetFileVersionInfoStart' to get specific version information.
WANC

Parameter Description
versionH the value returned from 'vipGetFileVersionInfoStart'
key the name of the version information you wish to retrieve, e.g. "CompanyName"
value the value of that key will be returned at value[ 0 ]



· vipGetFileVersionInfoEnd

Summary  |  Top
   static int vipGetFileVersionInfoEnd(int versionH) 

Frees the handle returned from 'vipGetFileVersionInfoStart'.
WANC



· getVolumes

Summary  |  Top
   static int getVolumes(int maxToReturn, 
                         int[] numReturned, 
                         String[] driveNames) 

Retrieve a list of the mounted volumes.
WANC

Parameter Description
maxToReturn the maximum number of volumes to return
numReturned on return, the first element will contain the number of volumes in 'driveNames'
driveNames on return, contains an array of Strings representing each drive. Must have at least 'maxToReturn' elements.



· getVolumeLabel

Summary  |  Top
   static int getVolumeLabel(String driveName, 
                             String[] label) 

Uses WinAPI 'GetVolumeInformation()' to get the volume label

Parameter Description
driveName the drive name
label the drive label will be put at label[ 0 ]



· getVolumeMaxFileNameLength

Summary  |  Top
   static int getVolumeMaxFileNameLength(String driveName, 
                                         int[] nameLen) 

Uses WinAPI 'GetVolumeInformation()' to get the maximum file name length of a volume.

Parameter Description
driveName the drive name
nameLen the name length will be placed at nameLen[ 0 ]



· getVolumeReferenceNumber

Summary  |  Top
   static int getVolumeReferenceNumber(String driveName, 
                                       int[] refNum) 

Uses WinAPI 'GetVolumeInformation()' to get the reference number of a volume.

Parameter Description
driveName the drive name
nameLen the reference number will be placed at refNum[ 0 ]



· getVolumeCapInfo

Summary  |  Top
   static int getVolumeCapInfo(String driveName, 
                               long[] capInfo) 

Gets the free space and max capacity of the given drive.
WANC

Parameter Description
driveName the drive name.
capInfo must have at least kVolumeCapInfoLen elements. The max capacity will be placed at offset kVolumeCapInfoCapacityOffset, and the free space will be placed at offset kVolumeCapInfoFreeSpaceOffset.



· setVolumeLabel

Summary  |  Top
   static int setVolumeLabel(String driveName, 
                             String newLabel) 

Sets the volume label of a drive
WANC

Parameter Description
driveName the drive name
newLabel the new label



· getDriveDisplayName

Summary  |  Top
   static int getDriveDisplayName(String driveName, 
                                  String[] displayName) 

Gets the display name of a drive. This is the name that would be displayed to the user.
WANC

Parameter Description
driveName the drive name
displayName the display name will be placed at displayName[ 0 ]



· getVolumeFlags

Summary  |  Top
   static int getVolumeFlags(String driveName, 
                             int[] flags) 

Gets the flags for a volume. See DiskVolume for a description of the flags
WANC

Parameter Description
driveName the drive name
flags the flags will be placed at flags[ 0 ]



· getVolumeReadFlagsMask

Summary  |  Top
   static int getVolumeReadFlagsMask(String driveName, 
                                     int[] flags) 

Gets the read flags for a volume. See DiskVolume for a description of this.
WANC

Parameter Description
driveName the drive name
flags the flags will be placed at flags[ 0 ]



· resolveLinkFile

Summary  |  Top
   static int resolveLinkFile(String linkFilePath, 
                              String[] retPath, 
                              int flags) 

Resolves a shortcut (.lnk file.)
WANC

Parameter Description
linkFilePath the full path of the .lnk file
retPath the resolved full path will be placed at retPath[ 0 ]
flags either kResolveLinkFileNoUI or kResolveLinkFileUI



· getAllMonitorInfo

Summary  |  Top
   static int getAllMonitorInfo(int[] monitorInfo, 
                                int maxToReturn, 
                                int[] numReturned) 

Gets information on all the user's monitors. Info on each monitor will be placed into the 'monitorInfo' int array. Each monitor consumes 'kMonitorInfoNumInts' elements of this array. The format of each monitor is as described in the 'getMainMonitorInfo' method.
WANC

Parameter Description
montitorInfo must have at least 'maxToReturn' * kMonitorInfoNumInts elements.
maxToReturn the maximum number of monitors to return info on.
numReturned the number of monitors returned will be placed at numReturned[ 0 ]



· getMainMonitorInfo

Summary  |  Top
   static int getMainMonitorInfo(int[] monitorInfo) 

Stores information on the user's main monitor into the 'monitorInfo' array. This array must have at least 'kMonitorInfoNumInts' elements. The information on the monitor is stored at the 'kOffs???' offsets defined in 'MonitorMSVM.java':
WANC



· getExecutableType

Summary  |  Top
   static int getExecutableType(String fullPath, 
                                int[] val) 

Gets the type of the given executable.
WANC

Parameter Description
fullPath the full path of the executable
val the type will be placed at val[ 0 ], and will be one of the k???Exe values defined in 'AppFile.java': 'AF_W32', etc.



· getFileAttributes

Summary  |  Top
   static int getFileAttributes(String fullPath, 
                                int[] val) 

Gets the attributes of the given file.
WANC

Parameter Description
fullPath the full path of the file
val the attributes will be placed at val[ 0 ], and will be one of the attributes defined in 'DiskFile.java': 'FILE_EXECUTABLE', 'FILE_DIR', etc.



· getFileAttributesMask

Summary  |  Top
   static int getFileAttributesMask(String fullPath, 
                                    int[] val) 

Indicates which bits of the value returned from getFileAttributes are valid. See that method for more information.
WANC

Parameter Description
fullPath the full path of the file
val the mask will be placed at val[ 0 ]



· setFileAttributes

Summary  |  Top
   static int setFileAttributes(String thePath, 
                                int whichFlags, 
                                int newValues) 

Set the indicated flags.
WANC

Parameter Description
fullPath the full path of the file
whichFlags the mask indicating which bits in newValues are significant
newValues contains the bits to be set/reset.



· getFileAttributesWriteMask

Summary  |  Top
   static int getFileAttributesWriteMask(String thePath, 
                                         int[] val) 

Gets the mask which indicates which bits in the argument to 'setFileAttributes' can be set. Returns an error code, the mask is returned in the first element of val.
WANC

Parameter Description
fullPath the full path of the file



· launchApp

Summary  |  Top
   static int launchApp(String appPath, 
                        String verb, 
                        String regKey, 
                        String commandLine, 
                        int[] retData, 
                        int numArgs, 
                        String[] args) 

Launches the given app with a set of arguments.

The Java/native implementation of this method has changed as of 1.2.1. Previously, thus was a WANC: i.e., the arguments to this method were passed through to native code, which handled putting the arguments into the template. Now, this is handled in Java.

Now, only the appPath and retData arguments are used, and the rest are ignored.

Parameter Description
appPath the command line which will be passed to CreateProcess. Any arguments must be added to this command line Java-side.
retData on return, contains the AppData for the process. See AppProcessMSVM.java for a description of AppData.
allotherarguments ignored; set to 0 or null



· launchURL

Summary  |  Top
   static int launchURL(String url, 
                        int flags, 
                        String[] preferredBrowsers) 

Launches the given URL.

Parameter Description
url the fully qualified URL
flags currently ignored
preferredBrowsers currently ignored



· findAppsByName

Summary  |  Top
   static String[] findAppsByName(String appName, 
                                  int maxToReturn, 
                                  int flags) 

Returns the full paths of the apps which match the given name.

Parameter Description
appName the string to search for.
maxToReturn indicates the maximum number of AppFiles to return. NOTE: this is used as a hint only; the actual array size may be greater or less than this.
flags the lower two bits of this int indicate the level of searching which should be performed. 0 indicates only standard searching; 1, 2, and 3 indicate increasingly full searching The remaining bits of this int are reserved, and should be set to zero.



· findAppsByExtension

Summary  |  Top
   static String[] findAppsByExtension(String ext, 
                                       int maxToReturn, 
                                       int flags) 

Returns the full paths of the apps which are used to launch files with the given extension

Parameter Description
ext the extension being searched for: ".txt"
maxToReturn the maximum number to return. This is a hint only.
flags reserved; set to 0



· verifyNativeAppData

Summary  |  Top
   static int verifyNativeAppData(int[] appData) 

Indicates if the process with the given AppData is still running. See AppProcessMSVM.java for a description of AppData.
WANC



· quitApp

Summary  |  Top
   static int quitApp(int[] appData, 
                      int flags) 

Quits the given process.
WANC

Parameter Description
appData the AppData See AppProcessMSVM.java for a description of AppData.
flags ignored; set to 0



· moveApp

Summary  |  Top
   static int moveApp(int[] appData, 
                      int selector, 
                      int flags) 

Moves the given process.
WANC

Parameter Description
appData the AppData See AppProcessMSVM.java for a description of AppData.
selector one of the 'APP_MOVE_TOFRONT', etc. constants defined in AppProcess.java
flags ignored; set to 0



· findFirstFile

Summary  |  Top
   static int findFirstFile(String searchStr, 
                            int[] hFind, 
                            int[] attrs, 
                            String[] fileName) 

Wraps WinAPI FindFirstFile.
WANC

Parameter Description
searchStr the full path to be searched
hFind on return, hFind[ 0 ] will contain the search handle to be used with findNextFile and findClose You must call findClose when you are finished searching
attrs on return, attrs[ 0 ] will contain attributes for the file. See the kFindFirstAttr??? values above.
fileName on return fileName[ 0 ] will contain the first matching file name



· findNextFile

Summary  |  Top
   static int findNextFile(int findHandle, 
                           int[] attrs, 
                           String[] fileName) 

Wraps WinAPI FindNextFile.
WANC

Parameter Description
findHandle the search handle obtained from a previous call to findFirstFile.
attrs on return, attrs[ 0 ] will contain attributes for the file. See the kFindFirstAttr??? values above.
fileName on return fileName[ 0 ] will contain the next matching file name



· findClose

Summary  |  Top
   static int findClose(int findHandle) 

Wraps WinAPI FindClose.
WANC

Parameter Description
findHandle the search handle obtained from a previous call to findFirstFile. You must call this method when you are finished searching



· findVerbs

Summary  |  Top
   static int findVerbs(String[] fullPaths, 
                        String fileName, 
                        int maxToReturn, 
                        int[] numReturned, 
                        String[] triples) 

See the CommandLineUtilsMSVM.findVerbs() method.
WANC



· getVolumeDate

Summary  |  Top
   static int getVolumeDate(String driveName, 
                            int[] datesArray) 

Gets the creation/modification/access dates of a volume.

Parameter Description
driveName Needs to be documented
datesArray on return, the dates will be placed in this array at the offsets defined by the kXXXDateOffset constants. This array must have at least kDateBundleArrayLen elements.
WANC



· getFileDate

Summary  |  Top
   static int getFileDate(String path, 
                          int[] datesArray) 

Gets the creation/modification/access dates of a file/folder.

Parameter Description
path the full path of the file/folder
datesArray on return, the dates will be placed in this array at the offsets defined by the kXXXDateOffset constants. This array must have at least kDateBundleArrayLen elements.
WANC



· getAllProcessInfo

Summary  |  Top
   static int getAllProcessInfo(int[] cntUsageArray, 
                                int[] th32ProcessIDArray, 
                                int[] th32DefaultHeapIDArray, 
                                int[] th32ModuleIDArray, 
                                int[] cntThreadsArray, 
                                int[] th32ParentProcessIDArray, 
                                int[] pcPriClassBaseArray, 
                                int[] dwFlagsArray, 
                                int[] dwThreadIDArray, 
                                int[] hWndArray, 
                                String[] fullPathArray, 
                                int maxToReturn, 
                                int[] numReturned) 


WANC



· getShortPathName

Summary  |  Top
   static int getShortPathName(String inFileName, 
                               String[] outFileName) 


WANC



· nativeLaunchApp

Summary  |  Top
   private static native int nativeLaunchApp(String appPath, 
                                             String verb, 
                                             String regKey, 
                                             String commandLine, 
                                             int[] retData, 
                                             int numArgs, 
                                             String[] args) 


· nativeGetVolumeDate

Summary  |  Top
   private static native int nativeGetVolumeDate(int unused, 
                                                 String driveName, 
                                                 int[] datesArray) 


· nativeGetFileDate

Summary  |  Top
   private static native int nativeGetFileDate(int unused, 
                                               String path, 
                                               int[] datesArray) 


· nativeVerifyNativeAppData

Summary  |  Top
   private static native int nativeVerifyNativeAppData(int[] appData) 


· nativeQuitApp

Summary  |  Top
   private static native int nativeQuitApp(int[] appData, 
                                           int flags) 


· nativeMoveApp

Summary  |  Top
   private static native int nativeMoveApp(int[] appData, 
                                           int selector, 
                                           int flags) 


· nativeFindAppsByName

Summary  |  Top
   private static native int nativeFindAppsByName(String appName, 
                                                  int maxToReturn, 
                                                  int flags, 
                                                  int[] numReturned, 
                                                  String[] paths) 


· nativeFindAppsByExtension

Summary  |  Top
   private static native int nativeFindAppsByExtension(String appName, 
                                                       String tempDir, 
                                                       int maxToReturn, 
                                                       int flags, 
                                                       int[] numReturned, 
                                                       String[] paths) 


· nativeFindVerbs

Summary  |  Top
   private static native int nativeFindVerbs(String[] fullPaths, 
                                             String fileName, 
                                             int maxToReturn, 
                                             int[] numReturned, 
                                             String[] triples) 


· nativeLaunchURL

Summary  |  Top
   private static native int nativeLaunchURL(String url, 
                                             String tempDir, 
                                             int flags, 
                                             String[] preferredBrowsers) 


· nativeResolveLinkFile

Summary  |  Top
   private static native int nativeResolveLinkFile(String linkFilePath, 
                                                   String[] retPath, 
                                                   int flags) 


· nativeGetExecutableType

Summary  |  Top
   private static native int nativeGetExecutableType(String fullPath, 
                                                     int[] val) 


· nativeGetFileAttributes

Summary  |  Top
   private static native int nativeGetFileAttributes(String fullPath, 
                                                     int[] val) 


· nativeGetFileAttributesMask

Summary  |  Top
   private static native int nativeGetFileAttributesMask(String fullPath, 
                                                         int[] val) 


· nativeSetFileAttributes

Summary  |  Top
   private static native int nativeSetFileAttributes(String thePath, 
                                                     int whichFlags, 
                                                     int newValues) 


· nativeGetFileAttributesWriteMask

Summary  |  Top
   private static native int nativeGetFileAttributesWriteMask(String thePath, 
                                                              int[] val) 


· nativeGetAllMonitorInfo

Summary  |  Top
   private static native int nativeGetAllMonitorInfo(int[] monitorInfo, 
                                                     int maxToReturn, 
                                                     int[] numReturned) 


· nativeGetMainMonitorInfo

Summary  |  Top
   private static native int nativeGetMainMonitorInfo(int[] monitorInfo) 


· nativeSetVolumeLabel

Summary  |  Top
   private static native int nativeSetVolumeLabel(String driveName, 
                                                  String newLabel) 


· nativeGetDriveDisplayName

Summary  |  Top
   private static native int nativeGetDriveDisplayName(String driveName, 
                                                       String[] displayName) 


· nativeGetVolumeFlags

Summary  |  Top
   private static native int nativeGetVolumeFlags(String driveName, 
                                                  int[] flags) 


· nativeGetVolumeReadFlagsMask

Summary  |  Top
   private static native int nativeGetVolumeReadFlagsMask(String driveName, 
                                                          int[] flags) 


· nativeGetVolumeCapInfo

Summary  |  Top
   private static native int nativeGetVolumeCapInfo(String driveName, 
                                                    long[] capInfo) 


· nativeGetVolumeInformation

Summary  |  Top
   private static native int nativeGetVolumeInformation(String driveName, 
                                                        String[] infoStr, 
                                                        int[] infoInt) 


· nativeGetVolumes

Summary  |  Top
   private static native int nativeGetVolumes(int maxToReturn, 
                                              int[] numReturned, 
                                              String[] driveNames) 


· nativeCreateVolumeAlias

Summary  |  Top
   private static native int nativeCreateVolumeAlias(String driveName, 
                                                     String newAliasPath, 
                                                     int flags) 


· nativeCreateFileAlias

Summary  |  Top
   private static native int nativeCreateFileAlias(String targetPath, 
                                                   String newAliasPath, 
                                                   int flags) 


· nativeVIPGetFileVersionInfoStart

Summary  |  Top
   private static native int nativeVIPGetFileVersionInfoStart(String fileName) 


· nativeVIPVerQueryValue

Summary  |  Top
   private static native int nativeVIPVerQueryValue(int versionH, 
                                                    String key, 
                                                    String[] value) 


· nativeVIPGetFileVersionInfoEnd

Summary  |  Top
   private static native int nativeVIPGetFileVersionInfoEnd(int versionH) 


· nativeGetFileIcon

Summary  |  Top
   private static native int nativeGetFileIcon(String fullPath, 
                                               int whichIcon, 
                                               int w, 
                                               int h, 
                                               int xform, 
                                               int align, 
                                               int[] pData) 


· nativeGetExtIcon

Summary  |  Top
   private static native int nativeGetExtIcon(String ext, 
                                              int whichIcon, 
                                              int w, 
                                              int h, 
                                              int xform, 
                                              int align, 
                                              int[] pData) 


· nativeGetVolumeIcon

Summary  |  Top
   private static native int nativeGetVolumeIcon(String driveName, 
                                                 int whichIcon, 
                                                 int w, 
                                                 int h, 
                                                 int xform, 
                                                 int align, 
                                                 int[] pData) 


· nativeFindFirstFile

Summary  |  Top
   private static native int nativeFindFirstFile(String searchStr, 
                                                 int[] hFind, 
                                                 int[] attrs, 
                                                 String[] fileName) 


· nativeFindNextFile

Summary  |  Top
   private static native int nativeFindNextFile(int findHandle, 
                                                int[] attrs, 
                                                String[] fileName) 


· nativeFindClose

Summary  |  Top
   private static native int nativeFindClose(int findHandle) 


· nativeGetAllProcessInfo

Summary  |  Top
   private static native int nativeGetAllProcessInfo(int[] cntUsageArray, 
                                                     int[] th32ProcessIDArray, 
                                                     int[] th32DefaultHeapIDArray, 
                                                     int[] th32ModuleIDArray, 
                                                     int[] cntThreadsArray, 
                                                     int[] th32ParentProcessIDArray, 
                                                     int[] pcPriClassBaseArray, 
                                                     int[] dwFlagsArray, 
                                                     int[] dwThreadIDArray, 
                                                     int[] hWndArray, 
                                                     String[] fullPathArray, 
                                                     int maxToReturn, 
                                                     int[] numReturned) 


· nativeGetShortPathName

Summary  |  Top
   private static native int nativeGetShortPathName(String inFileName, 
                                                    String[] outFileName) 


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7