Changeset 1354 for trunk/dll/info.c


Ignore:
Timestamp:
Dec 25, 2008, 11:43:34 PM (17 years ago)
Author:
Gregg Young
Message:

Added driveflags to over ride write verify for USB removable drives that fail when it is on (Ticket 323); A flag to prevent directory name from being broadcast to drives in the tree cnr prior to a recursive scan of the drive (causes dbl directory names Ticket 321) Add option for multithreaded recursive scan of user selected drives at startup (Ticket 322).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/info.c

    r1347 r1354  
    982982                     ((driveflags[drive] & DRIVE_INCLUDEFILES) != 0));
    983983      WinCheckButton(hwnd,DVS_NOSTATS,
    984                      ((driveflags[drive] & DRIVE_NOSTATS) != 0));
     984                     ((driveflags[drive] & DRIVE_NOSTATS) != 0));
     985      WinCheckButton(hwnd,DVS_WRITEVERIFYOFF,
     986                     ((driveflags[drive] & DRIVE_WRITEVERIFYOFF) != 0));
     987      WinCheckButton(hwnd,DVS_RSCANNED,
     988                     ((driveflags[drive] & DRIVE_RSCANNED) != 0));
    985989    }
    986990    return 0;
     
    10221026          driveflags[drive] |= DRIVE_NOSTATS;
    10231027        else
    1024           driveflags[drive] &= (~DRIVE_NOSTATS);
     1028          driveflags[drive] &= (~DRIVE_NOSTATS);
     1029        if (WinQueryButtonCheckstate(hwnd,DVS_WRITEVERIFYOFF))
     1030          driveflags[drive] |= DRIVE_WRITEVERIFYOFF;
     1031        else
     1032          driveflags[drive] &= (~DRIVE_WRITEVERIFYOFF);
     1033        if (WinQueryButtonCheckstate(hwnd,DVS_RSCANNED))
     1034          driveflags[drive] |= DRIVE_RSCANNED;
     1035        else
     1036          driveflags[drive] &= (~DRIVE_RSCANNED);
    10251037        {
    10261038          ULONG flags;
    1027           CHAR s[80];
    1028 
    1029           sprintf(s, "%c.DriveFlags", (CHAR) (drive + 'A'));
     1039          CHAR FlagKey[80];
     1040
     1041          sprintf(FlagKey, "%c.DriveFlags", (CHAR) (drive + 'A'));
    10301042          flags = driveflags[drive];
    10311043          flags &= (~(DRIVE_REMOVABLE | DRIVE_NOTWRITEABLE |
    10321044                      DRIVE_IGNORE | DRIVE_CDROM |
    1033                       DRIVE_NOLONGNAMES | DRIVE_REMOTE |
     1045                      DRIVE_REMOTE | DRIVE_RSCANNED |
    10341046                      DRIVE_BOOT | DRIVE_INVALID | DRIVE_ZIPSTREAM |
    10351047                      DRIVE_VIRTUAL  | DRIVE_RAMDISK));
    1036           PrfWriteProfileData(fmprof, appname, s, &flags, sizeof(ULONG));
     1048          PrfWriteProfileData(fmprof, appname, FlagKey, &flags, sizeof(ULONG));
    10371049        }
    10381050      }
Note: See TracChangeset for help on using the changeset viewer.