Changeset 1664 for trunk/dll/init.c


Ignore:
Timestamp:
Aug 5, 2012, 2:11:07 AM (13 years ago)
Author:
Gregg Young
Message:

Changes to use Unlock to unlock files if Unlock.exe is in path both from menu/toolbar and as part of copy, move and delete operations. Changes to allow copy and move over readonly files with a warning dialog; also added a warning dialog for delete of readonly files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/init.c

    r1654 r1664  
    109109  22 Oct 11 GKY Thread notes dialog now reopens on startup if it was open on shutdown.
    110110  08 Jan 12 GKY Add support for changing PresParams in the notify status window
     111  04 Aug 12 GKY Changes to use Unlock to unlock files if Unlock.exe is in path both from menu/toolbar and as part of
     112                copy, move and delete operations
     113  04 Aug 12 GKY Changes to allow copy and move over readonly files with a warning dialog; also added a warning dialog
     114                for delete of readonly files
    111115
    112116***********************************************************************/
     
    267271PCSZ PCSZ_FDISKPMEXE  = "FDISKPM.EXE";
    268272PCSZ PCSZ_LVMEXE      = "LVM.EXE";
     273PCSZ PCSZ_UNLOCKEXE   = "UNLOCK.EXE";
    269274PCSZ PCSZ_ARCCNR      = "ArcCnr";
    270275PCSZ PCSZ_COLLECTOR   = "Collector";
     
    11631168    fAutoAddDirs = fUseNewViewer = fDataToFore = fDataShowDrives = fDataMin =
    11641169    fSplitStatus = fDragndropDlg = fQuickArcFind = fKeepCmdLine =
    1165     fMoreButtons = fDrivebar = fCollapseFirst = fSwitchTree =
     1170    fMoreButtons = fDrivebar = fCollapseFirst = fSwitchTree = fWarnReadOnly =
    11661171    fSwitchTreeExpand = fNoSearch = fCustomFileDlg = fOtherHelp =
    11671172    fSaveMiniCmds = fUserComboBox = fFM2Deletes = fConfirmTarget =
     
    12211226    if (!xDosQueryAppType(PCSZ_LVMEXE, &ulAppType))
    12221227      fLVM = TRUE;
     1228
     1229    //Check for unlock.exe
     1230    if (!xDosQueryAppType(PCSZ_UNLOCKEXE, &ulAppType))
     1231      fUnlock = TRUE;
    12231232
    12241233    // Check to see if we are running protect only
     
    14931502  size = sizeof(BOOL);
    14941503  PrfQueryProfileData(fmprof, appname, "LinkSetsIcon", &fLinkSetsIcon, &size);
     1504  size = sizeof(BOOL);
     1505  PrfQueryProfileData(fmprof, appname, "WarnReadOnly", &fWarnReadOnly, &size);
    14951506  size = sizeof(INT);
    14961507  PrfQueryProfileData(fmprof, appname, "Sort", &sortFlags, &size);
Note: See TracChangeset for help on using the changeset viewer.