Changeset 1444 for trunk/dll/init.c


Ignore:
Timestamp:
Jul 23, 2009, 1:24:23 AM (16 years ago)
Author:
Gregg Young
Message:

Rework of drivebar to rescan all drives and refresh media buttons and menu items grey out inappropriate menu items. Streamline Tree scan code and use semaphores to serialize access. Add NOEASUPPORT and LOCALHD driveflag; .LONGNAME usage fixes; (Tickets 377-386)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/init.c

    r1439 r1444  
    8282  28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code.
    8383  12 Jul 09 GKY Add xDosQueryAppType and xDoxAlloc... to allow FM/2 to load in high memory
     84  22 Jul 09 GKY Code changes to use semaphores to serialize drive scanning
     85  22 Jul 09 GKY Fix failure to restore the notebook setting for saving container states or not
    8486
    8587***********************************************************************/
     
    180182HMTX hmtxFM2Delete;
    181183HMTX hmtxFM2Globals;
     184HMTX hmtFillingTreeCnr;
     185HEV  hevInitialCnrScanComplete;
    182186ULONG OS2ver[2];
    183187PFNWP PFNWPCnr;
     
    10881092  if (DosCreateMutexSem(NULL, &hmtxFM2Delete, 0L, FALSE))
    10891093    Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__,
    1090               PCSZ_DOSCREATEMUTEXSEM);
     1094              PCSZ_DOSCREATEMUTEXSEM);
     1095  if (DosCreateMutexSem(NULL, &hmtFillingTreeCnr, 0L, FALSE))
     1096    Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__,
     1097              PCSZ_DOSCREATEMUTEXSEM);
     1098  if (DosCreateEventSem(NULL, &hevInitialCnrScanComplete, 0L, FALSE))
     1099    Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__,
     1100              PCSZ_DOSCREATEMUTEXSEM);
    10911101
    10921102  /*
     
    13821392  size = sizeof(BOOL);
    13831393  PrfQueryProfileData(fmprof, appname, "ConfirmDelete", &fConfirmDelete, &size);
    1384   /*size = sizeof(BOOL);   Replaced by UM_SHOWME check 3/14/09 GKY
     1394  size = sizeof(BOOL); 
    13851395  PrfQueryProfileData(fmprof, FM3Str, "SaveState", &fSaveState, &size);
    1386   if (fSaveState && (fSwitchTreeOnFocus || fSwitchTree) &&
    1387       (!strcmp(realappname, FM3Str) || !strcmp(realappname, "FM/4"))) {
    1388     CHAR szKey[STATE_NAME_MAX_BYTES + 80];
    1389     CHAR szDir[CCHMAXPATH];
    1390     ULONG drvNum;
    1391 
    1392     if (!strcmp(realappname, "FM/4"))
    1393       strcpy(szKey, "FM/4 Dir1");
    1394     else
    1395       sprintf(szKey, "%s.DirCnrDir.0", PCSZ_SHUTDOWNSTATE);
    1396     size = sizeof(szDir);
    1397     if (PrfQueryProfileData(fmprof, appname, szKey, szDir, &size)) {
    1398       drvNum = toupper(*szDir) - 'A';
    1399       fDrivetoSkip[drvNum] = TRUE;
    1400     }
    1401   } */
    14021396  size = sizeof(BOOL);
    14031397  PrfQueryProfileData(fmprof, appname, "SyncUpdates", &fSyncUpdates, &size);
Note: See TracChangeset for help on using the changeset viewer.