Changeset 1360 for trunk/dll/init.c


Ignore:
Timestamp:
Dec 28, 2008, 9:35:00 PM (17 years ago)
Author:
Gregg Young
Message:

Conditionally enable Refresh removable media and individual partition menu items based on availability of required tool in PATH. (Tickets 36 & 54)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/init.c

    r1358 r1360  
    6262  10 Dec 08 SHL Integrate exception handler support
    6363  25 Dec 08 GKY Add code to allow write verify to be turned off on a per drive basis
     64  28 Dec 08 GKY Check for LVM.EXE and remove Refresh removable media menu item as appropriate
     65  28 Dec 08 GKY Rework partition submenu to gray out unavailable items (check for existence of files)
     66                and have no default choice.
    6467
    6568***********************************************************************/
     
    12321235  *ThousandsSeparator = CtryInfo.szThousandsSeparator[0];
    12331236  }
     1237  { // Check for the existance of various partitioning tools to set up menu items
     1238    CHAR *FullPath;
     1239    ULONG ulAppType;
     1240
     1241    FullPath = searchapath("PATH", "LVMGUI.CMD");
     1242    if (*FullPath)
     1243      fLVMGui = TRUE;
     1244    if (!DosQueryAppType("DFSOS2.EXE", &ulAppType))
     1245      fDFSee = TRUE;
     1246    if (!DosQueryAppType("MINILVM.EXE", &ulAppType))
     1247      fMiniLVM = TRUE;
     1248    if (!DosQueryAppType("FDISK.EXE", &ulAppType))
     1249      fFDisk = TRUE;
     1250    if (!DosQueryAppType("LVM.EXE", &ulAppType))
     1251      fLVM = TRUE;
     1252  }
    12341253
    12351254  // load preferences from profile (INI) file
Note: See TracChangeset for help on using the changeset viewer.