Changeset 1333 for trunk/dll/init.c
- Timestamp:
- Dec 12, 2008, 10:56:35 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/init.c
r1328 r1333 1185 1185 sizeof(PVOID)); 1186 1186 1187 if (DosCreateMutexSem( "\\SEM\\GLOBAL1", &hmtxFM2Globals, 0L, FALSE))1187 if (DosCreateMutexSem(NULL, &hmtxFM2Globals, 0L, FALSE)) 1188 1188 Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__, 1189 1189 "DosCreateMutexSem"); 1190 if (DosCreateMutexSem( "\\SEM\\DELETE1", &hmtxFM2Delete, 0L, FALSE))1190 if (DosCreateMutexSem(NULL, &hmtxFM2Delete, 0L, FALSE)) 1191 1191 Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__, 1192 1192 "DosCreateMutexSem"); … … 1210 1210 MaxComLineStrg = MAXCOMLINESTRGDEFAULT; 1211 1211 AutoviewHeight = 48; 1212 strcpy(printer, "PRN");1212 //strcpy(printer, "PRN"); 1213 1213 prnwidth = 80; 1214 1214 prnlength = 66; … … 1250 1250 MaxComLineStrg = 1024; 1251 1251 MaxComLineChecked = TRUE; 1252 PrfWriteProfileData(fmprof, appname, "MaxComLineChecked", &MaxComLineChecked, size );1252 PrfWriteProfileData(fmprof, appname, "MaxComLineChecked", &MaxComLineChecked, sizeof(BOOL)); 1253 1253 } 1254 1254 } … … 1290 1290 if (!pszTreeEnvVarList) 1291 1291 return 0; //already complained 1292 size = sizeof(BOOL); 1292 1293 PrfQueryProfileData(fmprof, appname, "ShowTarget", &fShowTarget, &size); 1294 size = sizeof(BOOL); 1293 1295 PrfQueryProfileData(fmprof, appname, "CheckMM", &fCheckMM, &size); 1296 size = sizeof(BOOL); 1294 1297 PrfQueryProfileData(fmprof, appname, "ChangeTarget", &fChangeTarget, &size); 1298 size = sizeof(BOOL); 1295 1299 PrfQueryProfileData(fmprof, appname, "ConfirmTarget", &fConfirmTarget, &size); 1300 size = sizeof(BOOL); 1296 1301 PrfQueryProfileData(fmprof, FM3Str, "CustomFileDlg", &fCustomFileDlg, &size); 1302 size = sizeof(BOOL); 1297 1303 PrfQueryProfileData(fmprof, FM3Str, "SaveMiniCmds", &fSaveMiniCmds, &size); 1304 size = sizeof(BOOL); 1298 1305 PrfQueryProfileData(fmprof, appname, "SaveBigCmds", &fSaveBigCmds, &size); 1306 size = sizeof(BOOL); 1299 1307 PrfQueryProfileData(fmprof, appname, "NoFoldMenu", &fNoFoldMenu, &size); 1308 size = sizeof(BOOL); 1300 1309 PrfQueryProfileData(fmprof, FM3Str, "ThreadNotes", &fThreadNotes, &size); 1310 size = sizeof(BOOL); 1301 1311 PrfQueryProfileData(fmprof, FM3Str, "Prnpagenums", &prnpagenums, &size); 1312 size = sizeof(BOOL); 1302 1313 PrfQueryProfileData(fmprof, FM3Str, "Prnalt", &prnalt, &size); 1314 size = sizeof(BOOL); 1303 1315 PrfQueryProfileData(fmprof, FM3Str, "Prnformat", &prnformat, &size); 1304 PrfQueryProfileData(fmprof, FM3Str, "Prnformfeedbefore",1305 1306 PrfQueryProfileData(fmprof, FM3Str,1307 1316 size = sizeof(BOOL); 1317 PrfQueryProfileData(fmprof, FM3Str, "Prnformfeedbefore", &prnformfeedbefore, &size); 1318 size = sizeof(BOOL); 1319 PrfQueryProfileData(fmprof, FM3Str, "Prnformfeedafter",&prnformfeedafter, &size); 1308 1320 size = sizeof(ULONG); 1309 1321 PrfQueryProfileData(fmprof, FM3Str, "Prntabspaces", &prntabspaces, &size); 1322 size = sizeof(ULONG); 1310 1323 PrfQueryProfileData(fmprof, FM3Str, "Prnwidth", &prnwidth, &size); 1324 size = sizeof(ULONG); 1311 1325 PrfQueryProfileData(fmprof, FM3Str, "Prnlength", &prnlength, &size); 1326 size = sizeof(ULONG); 1312 1327 PrfQueryProfileData(fmprof, FM3Str, "Prntmargin", &prntmargin, &size); 1328 size = sizeof(ULONG); 1313 1329 PrfQueryProfileData(fmprof, FM3Str, "Prnbmargin", &prnbmargin, &size); 1330 size = sizeof(ULONG); 1314 1331 PrfQueryProfileData(fmprof, FM3Str, "Prnlmargin", &prnlmargin, &size); 1332 size = sizeof(ULONG); 1315 1333 PrfQueryProfileData(fmprof, FM3Str, "Prnrmargin", &prnrmargin, &size); 1334 size = sizeof(ULONG); 1316 1335 PrfQueryProfileData(fmprof, FM3Str, "Prnspacing", &prnspacing, &size); 1317 1336 size = sizeof(BOOL); 1318 1337 PrfQueryProfileData(fmprof, FM3Str, "NoDead", &fNoDead, &size); 1338 size = sizeof(BOOL); 1319 1339 PrfQueryProfileData(fmprof, FM3Str, "NoFinger", &fNoFinger, &size); 1340 size = sizeof(BOOL); 1320 1341 PrfQueryProfileData(fmprof, appname, "SwitchTree", &fSwitchTree, &size); 1321 PrfQueryProfileData(fmprof, appname, "SwitchTreeExpand", 1322 &fSwitchTreeExpand, &size); 1323 PrfQueryProfileData(fmprof, appname, "SwitchTreeOnFocus", 1324 &fSwitchTreeOnFocus, &size); 1325 PrfQueryProfileData(fmprof, appname, "CollapseFirst", 1326 &fCollapseFirst, &size); 1327 PrfQueryProfileData(fmprof, appname, "FilesInTree", 1328 &fFilesInTree, &size); 1342 size = sizeof(BOOL); 1343 PrfQueryProfileData(fmprof, appname, "SwitchTreeExpand", &fSwitchTreeExpand, &size); 1344 size = sizeof(BOOL); 1345 PrfQueryProfileData(fmprof, appname, "SwitchTreeOnFocus", &fSwitchTreeOnFocus, &size); 1346 size = sizeof(BOOL); 1347 PrfQueryProfileData(fmprof, appname, "CollapseFirst", &fCollapseFirst, &size); 1348 size = sizeof(BOOL); 1349 PrfQueryProfileData(fmprof, appname, "FilesInTree", &fFilesInTree, &size); 1350 size = sizeof(BOOL); 1329 1351 PrfQueryProfileData(fmprof, FM3Str, "TopDir", &fTopDir, &size); 1352 size = sizeof(BOOL); 1330 1353 PrfQueryProfileData(fmprof, FM3Str, "LookInDir", &fLookInDir, &size); 1331 PrfQueryProfileString(fmprof, appname, "DefArc", NULL, szDefArc, 1332 sizeof(szDefArc)); 1354 PrfQueryProfileString(fmprof, appname, "DefArc", NULL, szDefArc, sizeof(szDefArc)); 1333 1355 size = sizeof(ULONG); 1334 1356 PrfQueryProfileData(fmprof, FM3Str, "AutoviewHeight", … … 1337 1359 PrfQueryProfileData(fmprof, FM3Str, "KeepCmdLine", &fKeepCmdLine, &size); 1338 1360 if (strcmp(realappname, "FM/4")) { 1361 size = sizeof(BOOL); 1339 1362 PrfQueryProfileData(fmprof, FM3Str, "MoreButtons", &fMoreButtons, &size); 1363 size = sizeof(BOOL); 1340 1364 PrfQueryProfileData(fmprof, FM3Str, "Drivebar", &fDrivebar, &size); 1341 1365 } 1342 1366 else 1343 1367 fDrivebar = fMoreButtons = TRUE; 1368 size = sizeof(BOOL); 1344 1369 PrfQueryProfileData(fmprof, appname, "NoSearch", &fNoSearch, &size); 1370 size = sizeof(BOOL); 1345 1371 PrfQueryProfileData(fmprof, appname, "GuessType", &fGuessType, &size); 1372 size = sizeof(BOOL); 1346 1373 PrfQueryProfileData(fmprof, appname, "ViewChild", &fViewChild, &size); 1374 size = sizeof(BOOL); 1347 1375 PrfQueryProfileData(fmprof, appname, "ShowEnv", &fShowEnv, &size); 1348 size = MaxComLineStrg;1349 PrfQueryProfileData(fmprof, appname, "TreeEnvVarList", pszTreeEnvVarList, &size);1376 PrfQueryProfileString(fmprof, appname, "TreeEnvVarList", "PATH;DPATH;LIBPATH;HELP;BOOKSHELF;", 1377 pszTreeEnvVarList, MaxComLineStrg); 1350 1378 size = sizeof(BOOL); 1351 1379 PrfQueryProfileData(fmprof, appname, "LeaveTree", &fLeaveTree, &size); 1380 size = sizeof(BOOL); 1352 1381 PrfQueryProfileData(fmprof, FM3Str, "Comments", &fComments, &size); 1353 1382 size = sizeof(ULONG); … … 1356 1385 fwsAnimate = WS_ANIMATE; 1357 1386 size = sizeof(BOOL); 1358 PrfQueryProfileData(fmprof, appname, "SelectedAlways", 1359 &fSelectedAlways, &size);1387 PrfQueryProfileData(fmprof, appname, "SelectedAlways", &fSelectedAlways, &size); 1388 size = sizeof(BOOL); 1360 1389 PrfQueryProfileData(fmprof, FM3Str, "ToolbarHelp", &fToolbarHelp, &size); 1390 size = sizeof(BOOL); 1361 1391 PrfQueryProfileData(fmprof, FM3Str, "OtherHelp", &fOtherHelp, &size); 1392 size = sizeof(BOOL); 1362 1393 PrfQueryProfileData(fmprof, FM3Str, "DrivebarHelp", &fDrivebarHelp, &size); 1394 size = sizeof(BOOL); 1363 1395 PrfQueryProfileData(fmprof, appname, "AutoAddDirs", &fAutoAddDirs, &size); 1364 PrfQueryProfileData(fmprof, appname, 1365 "AutoAddAllDirs", &fAutoAddAllDirs, &size); 1366 PrfQueryProfileData(fmprof, FM3Str, "UserListSwitches", 1367 &fUserListSwitches, &size); 1368 PrfQueryProfileData(fmprof, appname, "UseNewViewer", 1369 &fUseNewViewer, &size); 1370 PrfQueryProfileData(fmprof, appname, "DefaultDeletePerm", 1371 &fDefaultDeletePerm, &size); 1372 PrfQueryProfileData(fmprof, FM3Str, "ExternalINIs", 1373 &fExternalINIs, &size); 1374 PrfQueryProfileData(fmprof, FM3Str, "ExternalCollector", 1375 &fExternalCollector, &size); 1376 PrfQueryProfileData(fmprof, FM3Str, "ExternalArcboxes", 1377 &fExternalArcboxes, &size); 1378 PrfQueryProfileData(fmprof, FM3Str, "ExternalViewer", 1379 &fExternalViewer, &size); 1380 PrfQueryProfileData(fmprof, FM3Str, "UseQProcStat", 1381 &fUseQProcStat, &size); 1382 PrfQueryProfileData(fmprof, FM3Str, "UseQSysState", 1383 &fUseQSysState, &size); 1396 size = sizeof(BOOL); 1397 PrfQueryProfileData(fmprof, appname, "AutoAddAllDirs", &fAutoAddAllDirs, &size); 1398 size = sizeof(BOOL); 1399 PrfQueryProfileData(fmprof, FM3Str, "UserListSwitches", &fUserListSwitches, &size); 1400 size = sizeof(BOOL); 1401 PrfQueryProfileData(fmprof, appname, "UseNewViewer", &fUseNewViewer, &size); 1402 size = sizeof(BOOL); 1403 PrfQueryProfileData(fmprof, appname, "DefaultDeletePerm", &fDefaultDeletePerm, &size); 1404 size = sizeof(BOOL); 1405 PrfQueryProfileData(fmprof, FM3Str, "ExternalINIs", &fExternalINIs, &size); 1406 size = sizeof(BOOL); 1407 PrfQueryProfileData(fmprof, FM3Str, "ExternalCollector", &fExternalCollector, &size); 1408 size = sizeof(BOOL); 1409 PrfQueryProfileData(fmprof, FM3Str, "ExternalArcboxes", &fExternalArcboxes, &size); 1410 size = sizeof(BOOL); 1411 PrfQueryProfileData(fmprof, FM3Str, "ExternalViewer", &fExternalViewer, &size); 1412 size = sizeof(BOOL); 1413 PrfQueryProfileData(fmprof, FM3Str, "UseQProcStat", &fUseQProcStat, &size); 1414 size = sizeof(BOOL); 1415 PrfQueryProfileData(fmprof, FM3Str, "UseQSysState", &fUseQSysState, &size); 1416 size = sizeof(BOOL); 1384 1417 PrfQueryProfileData(fmprof, FM3Str, "DataMin", &fDataMin, &size); 1418 size = sizeof(BOOL); 1385 1419 PrfQueryProfileData(fmprof, appname, "DataToFore", &fDataToFore, &size); 1386 PrfQueryProfileData(fmprof, appname, "DataShowDrives", 1387 &fDataShowDrives, &size); 1388 PrfQueryProfileData(fmprof, appname, "DataInclRemote", 1389 &fDataInclRemote, &size); 1420 size = sizeof(BOOL); 1421 PrfQueryProfileData(fmprof, appname, "DataShowDrives", &fDataShowDrives, &size); 1422 size = sizeof(BOOL); 1423 PrfQueryProfileData(fmprof, appname, "DataInclRemote", &fDataInclRemote, &size); 1424 size = sizeof(BOOL); 1390 1425 PrfQueryProfileData(fmprof, FM3Str, "SplitStatus", &fSplitStatus, &size); 1391 PrfQueryProfileData(fmprof, appname, "FolderAfterExtract", 1392 &fFolderAfterExtract, &size); 1426 size = sizeof(BOOL); 1427 PrfQueryProfileData(fmprof, appname, "FolderAfterExtract", &fFolderAfterExtract, &size); 1428 size = sizeof(BOOL); 1393 1429 PrfQueryProfileData(fmprof, FM3Str, "DullDatabar", &fDullMin, &size); 1430 size = sizeof(BOOL); 1394 1431 PrfQueryProfileData(fmprof, appname, "BlueLED", &fBlueLED, &size); 1395 PrfQueryProfileData(fmprof, appname, "ConfirmDelete", 1396 &fConfirmDelete, &size); 1432 size = sizeof(BOOL); 1433 PrfQueryProfileData(fmprof, appname, "ConfirmDelete", &fConfirmDelete, &size); 1434 size = sizeof(BOOL); 1397 1435 PrfQueryProfileData(fmprof, FM3Str, "SaveState", &fSaveState, &size); 1398 1436 if (fSaveState) { … … 1420 1458 size = sizeof(BOOL); 1421 1459 PrfQueryProfileData(fmprof, appname, "SyncUpdates", &fSyncUpdates, &size); 1460 size = sizeof(BOOL); 1422 1461 PrfQueryProfileData(fmprof, appname, "LoadSubject", &fLoadSubject, &size); 1462 size = sizeof(BOOL); 1423 1463 PrfQueryProfileData(fmprof, appname, "UnHilite", &fUnHilite, &size); 1464 size = sizeof(BOOL); 1424 1465 PrfQueryProfileData(fmprof, FM3Str, "TileBackwards", &fTileBackwards, &size); 1466 size = sizeof(BOOL); 1425 1467 PrfQueryProfileData(fmprof, appname, "LoadLongname", &fLoadLongnames, &size); 1468 size = sizeof(BOOL); 1426 1469 PrfQueryProfileData(fmprof, appname, "VerifyWrites", &fVerify, &size); 1427 1470 DosSetVerify(fVerify); 1471 size = sizeof(BOOL); 1428 1472 PrfQueryProfileData(fmprof, appname, "DontMoveMouse", &fDontMoveMouse, &size); 1473 size = sizeof(BOOL); 1429 1474 PrfQueryProfileData(fmprof, appname, "NoIconsFiles", &fNoIconsFiles, &size); 1475 size = sizeof(BOOL); 1430 1476 PrfQueryProfileData(fmprof, appname, "NoIconsDirs", &fNoIconsDirs, &size); 1477 size = sizeof(BOOL); 1431 1478 PrfQueryProfileData(fmprof, appname, "ForceUpper", &fForceUpper, &size); 1479 size = sizeof(BOOL); 1432 1480 PrfQueryProfileData(fmprof, appname, "ForceLower", &fForceLower, &size); 1481 size = sizeof(BOOL); 1433 1482 PrfQueryProfileData(fmprof, FM3Str, "TextTools", &fTextTools, &size); 1483 size = sizeof(BOOL); 1434 1484 PrfQueryProfileData(fmprof, FM3Str, "ToolTitles", &fToolTitles, &size); 1485 size = sizeof(BOOL); 1435 1486 PrfQueryProfileData(fmprof, appname, "DoubleClickOpens", &fDCOpens, &size); 1487 size = sizeof(BOOL); 1436 1488 PrfQueryProfileData(fmprof, appname, "LinkSetsIcon", &fLinkSetsIcon, &size); 1437 1489 size = sizeof(INT); 1438 1490 PrfQueryProfileData(fmprof, appname, "Sort", &sortFlags, &size); 1491 size = sizeof(INT); 1439 1492 PrfQueryProfileData(fmprof, appname, "TreeSort", &TreesortFlags, &size); 1440 PrfQueryProfileData(fmprof, appname, 1441 "CollectorSort", &CollectorsortFlags, &size); 1442 size = sizeof(targetdir); 1443 PrfQueryProfileData(fmprof, appname, "Targetdir", targetdir, &size); 1493 size = sizeof(INT); 1494 PrfQueryProfileData(fmprof, appname, "CollectorSort", &CollectorsortFlags, &size); 1495 PrfQueryProfileString(fmprof, appname, "Targetdir", NULL, targetdir, sizeof(targetdir)); 1444 1496 if (!IsValidDir(targetdir)) 1445 1497 *targetdir = 0; 1446 size = sizeof(extractpath); 1447 PrfQueryProfileData(fmprof, appname, "ExtractPath", extractpath, &size); 1498 PrfQueryProfileString(fmprof, appname, "ExtractPath", NULL, extractpath, sizeof(extractpath)); 1448 1499 size = sizeof(BOOL); 1449 1500 PrfQueryProfileData(fmprof, FM3Str, "FileNamePathCnr", &fFileNameCnrPath, &size); 1450 size = sizeof(printer); 1451 PrfQueryProfileData(fmprof, appname, "Printer", printer, &size); 1452 size = MaxComLineStrg; 1453 PrfQueryProfileData(fmprof, appname, "DirCompare", dircompare, 1454 &size); 1455 size = MaxComLineStrg; 1456 PrfQueryProfileData(fmprof, appname, "Viewer", viewer, &size); 1457 size = MaxComLineStrg; 1458 PrfQueryProfileData(fmprof, appname, "Editor", editor, &size); 1459 size = MaxComLineStrg; 1460 PrfQueryProfileData(fmprof, appname, "BinView", binview, &size); 1461 size = MaxComLineStrg; 1462 PrfQueryProfileData(fmprof, appname, "BinEd", bined, &size); 1463 size = MaxComLineStrg; 1464 PrfQueryProfileData(fmprof, appname, "Compare", compare, &size); 1465 size = MaxComLineStrg; 1466 PrfQueryProfileData(fmprof, appname, "Virus", virus, &size); 1501 PrfQueryProfileString(fmprof, appname, "Printer", "PRN", printer, sizeof(printer)); 1502 PrfQueryProfileString(fmprof, appname, "DirCompare", NULL, dircompare, MaxComLineStrg); 1503 PrfQueryProfileString(fmprof, appname, "Viewer", NULL, viewer, MaxComLineStrg); 1504 PrfQueryProfileString(fmprof, appname, "Editor", NULL, editor, MaxComLineStrg); 1505 PrfQueryProfileString(fmprof, appname, "BinView", NULL, binview, MaxComLineStrg); 1506 PrfQueryProfileString(fmprof, appname, "BinEd", NULL, bined, MaxComLineStrg); 1507 PrfQueryProfileString(fmprof, appname, "Compare", NULL, compare, MaxComLineStrg); 1508 PrfQueryProfileString(fmprof, appname, "Virus", NULL, virus, MaxComLineStrg); 1467 1509 size = sizeof(BOOL); 1468 1510 PrfQueryProfileData(fmprof, appname, "FtpRunWPSDefault", &fFtpRunWPSDefault, &size); 1469 size = MaxComLineStrg; 1470 PrfQueryProfileData(fmprof, appname, "FTPRun", ftprun, &size); 1511 PrfQueryProfileString(fmprof, appname, "FTPRun", NULL, ftprun, MaxComLineStrg); 1471 1512 if (!*ftprun) 1472 1513 fFtpRunWPSDefault = TRUE; 1473 1514 size = sizeof(BOOL); 1474 1515 PrfQueryProfileData(fmprof, appname, "HttpRunWPSDefault", &fHttpRunWPSDefault, &size); 1475 size = MaxComLineStrg; 1476 PrfQueryProfileData(fmprof, appname, "HTTPRun", httprun, &size); 1516 PrfQueryProfileString(fmprof, appname, "HTTPRun", NULL, httprun, MaxComLineStrg); 1477 1517 if (!*httprun) 1478 1518 fHttpRunWPSDefault = TRUE; 1479 size = MaxComLineStrg; 1480 PrfQueryProfileData(fmprof, appname, "MailRun", mailrun, &size); 1481 size = sizeof(ftprundir); 1482 PrfQueryProfileData(fmprof, appname, "FtpRunDir", ftprundir, &size); 1483 size = sizeof(httprundir); 1484 PrfQueryProfileData(fmprof, appname, "HttpRunDir", httprundir, &size); 1485 size = sizeof(mailrundir); 1486 PrfQueryProfileData(fmprof, appname, "MailRunDir", mailrundir, &size); 1487 size = sizeof(lasttoolbar); 1488 PrfQueryProfileData(fmprof, appname, "LastToolbar", lasttoolbar, 1489 &size); 1490 size = sizeof(BOOL); 1491 PrfQueryProfileData(fmprof, appname, "LibPathStrictHttpRun", &fLibPathStrictHttpRun, 1492 &size); 1493 PrfQueryProfileData(fmprof, appname, "LibPathStrictFtpRun", &fLibPathStrictFtpRun, 1494 &size); 1495 PrfQueryProfileData(fmprof, appname, "LibPathStrictMailRun", &fLibPathStrictMailRun, 1496 &size); 1497 PrfQueryProfileData(fmprof, appname, "NoMailtoMailRun", &fNoMailtoMailRun, 1498 &size); 1499 PrfQueryProfileData(fmprof, appname, "FollowTree", &fFollowTree, 1500 &size); 1501 PrfQueryProfileData(fmprof, appname, "StartMaximized", 1502 &fStartMaximized, &size); 1519 PrfQueryProfileString(fmprof, appname, "MailRun", NULL, mailrun, MaxComLineStrg); 1520 PrfQueryProfileString(fmprof, appname, "FtpRunDir", NULL, ftprundir, sizeof(ftprundir)); 1521 PrfQueryProfileString(fmprof, appname, "HttpRunDir", NULL, httprundir, sizeof(httprundir)); 1522 PrfQueryProfileString(fmprof, appname, "MailRunDir", NULL, mailrundir, sizeof(mailrundir)); 1523 PrfQueryProfileString(fmprof, appname, "LastToolbar", NULL, lasttoolbar, sizeof(lasttoolbar)); 1524 size = sizeof(BOOL); 1525 PrfQueryProfileData(fmprof, appname, "LibPathStrictHttpRun", &fLibPathStrictHttpRun, &size); 1526 size = sizeof(BOOL); 1527 PrfQueryProfileData(fmprof, appname, "LibPathStrictFtpRun", &fLibPathStrictFtpRun, &size); 1528 size = sizeof(BOOL); 1529 PrfQueryProfileData(fmprof, appname, "LibPathStrictMailRun", &fLibPathStrictMailRun, &size); 1530 size = sizeof(BOOL); 1531 PrfQueryProfileData(fmprof, appname, "NoMailtoMailRun", &fNoMailtoMailRun, &size); 1532 size = sizeof(BOOL); 1533 PrfQueryProfileData(fmprof, appname, "FollowTree", &fFollowTree, &size); 1534 size = sizeof(BOOL); 1535 PrfQueryProfileData(fmprof, appname, "StartMaximized", &fStartMaximized, &size); 1503 1536 if (!fStartMaximized) { 1504 PrfQueryProfileData(fmprof, appname, "StartMinimized", 1505 &fStartMinimized, &size); 1506 } 1537 size = sizeof(BOOL); 1538 PrfQueryProfileData(fmprof, appname, "StartMinimized", &fStartMinimized, &size); 1539 } 1540 size = sizeof(BOOL); 1507 1541 PrfQueryProfileData(fmprof, appname, "DefaultCopy", &fCopyDefault, &size); 1542 size = sizeof(BOOL); 1508 1543 PrfQueryProfileData(fmprof, appname, "IdleCopy", &fRealIdle, &size); 1509 PrfQueryProfileData(fmprof, appname, "ArcStuffVisible", 1510 &fArcStuffVisible, &size); 1544 size = sizeof(BOOL); 1545 PrfQueryProfileData(fmprof, appname, "ArcStuffVisible", &fArcStuffVisible, &size); 1546 size = sizeof(BOOL); 1511 1547 PrfQueryProfileData(fmprof, FM3Str, "NoTreeGap", &fNoTreeGap, &size); 1512 PrfQueryProfileData(fmprof, FM3Str, "VTreeOpensWPS", 1513 &fVTreeOpensWPS, &size); 1548 size = sizeof(BOOL); 1549 PrfQueryProfileData(fmprof, FM3Str, "VTreeOpensWPS", &fVTreeOpensWPS, &size); 1550 size = sizeof(BOOL); 1514 1551 PrfQueryProfileData(fmprof, appname, "RemoteBug", &fRemoteBug, &size); 1515 PrfQueryProfileData(fmprof, appname, "Drag&DropDlg", 1516 &fDragndropDlg, &size); 1552 size = sizeof(BOOL); 1553 PrfQueryProfileData(fmprof, appname, "Drag&DropDlg", &fDragndropDlg, &size); 1554 size = sizeof(BOOL); 1517 1555 PrfQueryProfileData(fmprof, FM3Str, "UserComboBox", &fUserComboBox, &size); 1556 size = sizeof(BOOL); 1518 1557 PrfQueryProfileData(fmprof, FM3Str, "MinDirOnOpen", &fMinOnOpen, &size); 1519 PrfQueryProfileData(fmprof, appname, "QuickArcFind",1520 1521 PrfQueryProfileData(fmprof, FM3Str, "NoRemovableScan",1522 1558 size = sizeof(BOOL); 1559 PrfQueryProfileData(fmprof, appname, "QuickArcFind", &fQuickArcFind, &size); 1560 size = sizeof(BOOL); 1561 PrfQueryProfileData(fmprof, FM3Str, "NoRemovableScan", &fNoRemovableScan, &size); 1523 1562 size = sizeof(ULONG); 1524 PrfQueryProfileData(fmprof, FM3Str, "NoBrokenNotify", 1525 &NoBrokenNotify, &size);1526 PrfQueryProfileData(fmprof, appname, "ContainerType", &ulCnrType, 1527 &size);1563 PrfQueryProfileData(fmprof, FM3Str, "NoBrokenNotify", &NoBrokenNotify, &size); 1564 size = sizeof(ULONG); 1565 PrfQueryProfileData(fmprof, appname, "ContainerType", &ulCnrType, &size); 1566 size = sizeof(ULONG); 1528 1567 PrfQueryProfileData(fmprof, appname, "FilesToGet", &FilesToGet, &size); 1529 1568 if (FilesToGet < FILESTOGET_MIN) … … 1533 1572 size = sizeof(BOOL); 1534 1573 PrfQueryProfileData(fmprof, FM3Str, "AutoView", &fAutoView, &size); 1574 size = sizeof(BOOL); 1535 1575 PrfQueryProfileData(fmprof, FM3Str, "FM2Deletes", &fFM2Deletes, &size); 1576 size = sizeof(BOOL); 1536 1577 PrfQueryProfileData(fmprof, FM3Str, "TrashCan", &fTrashCan, &size); 1537 1578
Note:
See TracChangeset
for help on using the changeset viewer.