Changeset 1354 for trunk/dll/info.c
- Timestamp:
- Dec 25, 2008, 11:43:34 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/dll/info.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/info.c
r1347 r1354 982 982 ((driveflags[drive] & DRIVE_INCLUDEFILES) != 0)); 983 983 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)); 985 989 } 986 990 return 0; … … 1022 1026 driveflags[drive] |= DRIVE_NOSTATS; 1023 1027 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); 1025 1037 { 1026 1038 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')); 1030 1042 flags = driveflags[drive]; 1031 1043 flags &= (~(DRIVE_REMOVABLE | DRIVE_NOTWRITEABLE | 1032 1044 DRIVE_IGNORE | DRIVE_CDROM | 1033 DRIVE_NOLONGNAMES | DRIVE_REMOTE|1045 DRIVE_REMOTE | DRIVE_RSCANNED | 1034 1046 DRIVE_BOOT | DRIVE_INVALID | DRIVE_ZIPSTREAM | 1035 1047 DRIVE_VIRTUAL | DRIVE_RAMDISK)); 1036 PrfWriteProfileData(fmprof, appname, s, &flags, sizeof(ULONG));1048 PrfWriteProfileData(fmprof, appname, FlagKey, &flags, sizeof(ULONG)); 1037 1049 } 1038 1050 }
Note:
See TracChangeset
for help on using the changeset viewer.
