Changeset 1505
- Timestamp:
- Apr 12, 2010, 12:29:56 AM (15 years ago)
- Location:
- trunk/dll
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/dll/cmdline.c ¶
r1498 r1505 105 105 else 106 106 MiniLoaded = TRUE; 107 BldFullPathName(pszCmdLine, pFM2SaveDirectory, (DoItYourself) ? PCSZ_CMDLINESDAT : PCSZ_CMDMINIDAT); 107 BldFullPathName(pszCmdLine, pFM2SaveDirectory, 108 (DoItYourself) ? PCSZ_CMDLINESDAT : PCSZ_CMDMINIDAT); 108 109 fp = _fsopen(pszCmdLine, "r", SH_DENYWR); 109 110 if (fp) { … … 158 159 if (!pszCmdLine) 159 160 return; 160 BldFullPathName(pszCmdLine, pFM2SaveDirectory, (DoItYourself) ? PCSZ_CMDLINESDAT : PCSZ_CMDMINIDAT); 161 BldFullPathName(pszCmdLine, pFM2SaveDirectory, 162 (DoItYourself) ? PCSZ_CMDLINESDAT : PCSZ_CMDMINIDAT); 161 163 if (CheckDriveSpaceAvail(pszCmdLine, ullDATFileSpaceNeeded, 1) == 2) 162 164 return; //already gave error msg -
TabularUnified trunk/dll/comp.c ¶
r1498 r1505 2200 2200 ULONG size = sizeof(SWP); 2201 2201 2202 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "CompDir.Position", (PVOID) &swp, &size);2202 PrfQueryProfileData(fmprof, FM3Str, "CompDir.Position", (PVOID) &swp, &size); 2203 2203 swp.fl &= ~SWP_SIZE; // 04 Feb 09 SHL ignore saved size 2204 2204 WinSetWindowPos(hwnd, … … 3123 3123 3124 3124 WinQueryWindowPos(hwnd, &swp); 3125 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "CompDir.Position", (PVOID) &swp,3125 PrfWriteProfileData(fmprof, FM3Str, "CompDir.Position", (PVOID) &swp, 3126 3126 size); 3127 3127 } … … 3141 3141 ULONG size = sizeof(SWP); 3142 3142 WinQueryWindowPos(hwnd, &swp); 3143 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "CompDir.Position", (PVOID) &swp,3143 PrfWriteProfileData(fmprof, FM3Str, "CompDir.Position", (PVOID) &swp, 3144 3144 size); 3145 3145 } -
TabularUnified trunk/dll/dirsize.c ¶
r1498 r1505 529 529 ULONG size = sizeof(SWP); 530 530 531 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "DirSizes.Position", (PVOID) &swp, &size);531 PrfQueryProfileData(fmprof, FM3Str, "DirSizes.Position", (PVOID) &swp, &size); 532 532 swp.fl &= ~SWP_SIZE; // 04 Feb 09 SHL ignore saved size 533 533 WinSetWindowPos(hwnd, … … 1019 1019 1020 1020 WinQueryWindowPos(hwnd, &swp); 1021 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "DirSizes.Position", (PVOID) &swp, size);1021 PrfWriteProfileData(fmprof, FM3Str, "DirSizes.Position", (PVOID) &swp, size); 1022 1022 } 1023 1023 pState = INSTDATA(hwnd); -
TabularUnified trunk/dll/extract.c ¶
r1498 r1505 121 121 QWL_USER, (PVOID) oldproc); 122 122 size = sizeof(BOOL); 123 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "RememberExt",123 PrfQueryProfileData(fmprof, FM3Str, "RememberExt", 124 124 (PVOID) & fRemember, &size); 125 125 size = sizeof(BOOL); 126 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "DirectoryExt",126 PrfQueryProfileData(fmprof, FM3Str, "DirectoryExt", 127 127 (PVOID) & fDirectory, &size); 128 128 size = sizeof(BOOL); 129 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "FileNamePathExt",129 PrfQueryProfileData(fmprof, FM3Str, "FileNamePathExt", 130 130 (PVOID) & fFileNameExtPath, &size); 131 131 WinCheckButton(hwnd, EXT_REMEMBER, fRemember); … … 177 177 CHAR textdir[CCHMAXPATH]; 178 178 179 PrfQueryProfileString(fmprof, (CHAR *)FM3Str, "Ext_ExtractDir", NULL, textdir, sizeof(textdir));179 PrfQueryProfileString(fmprof, FM3Str, "Ext_ExtractDir", NULL, textdir, sizeof(textdir)); 180 180 if (*textdir && !IsFile(textdir)) 181 181 strcpy(arcdata->extractdir, textdir); 182 PrfQueryProfileString(fmprof, (CHAR *)FM3Str, "Ext_Mask", NULL, textdir, sizeof(textdir));182 PrfQueryProfileString(fmprof, FM3Str, "Ext_Mask", NULL, textdir, sizeof(textdir)); 183 183 WinSetDlgItemText(hwnd, EXT_MASK, textdir); 184 184 } … … 224 224 fRemember = FALSE; 225 225 size = sizeof(BOOL); 226 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "Ext_WDirs",226 PrfQueryProfileData(fmprof, FM3Str, "Ext_WDirs", 227 227 (PVOID) &fRemember, &size); 228 228 if (fRemember) … … 250 250 BOOL fRemember = WinQueryButtonCheckstate(hwnd, EXT_REMEMBER); 251 251 size = sizeof(BOOL); 252 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "RememberExt",252 PrfWriteProfileData(fmprof, FM3Str, "RememberExt", 253 253 (PVOID) &fRemember, size); 254 254 WinSendDlgItemMsg(hwnd, EXT_FILENAMEEXT, BM_SETCHECK, … … 261 261 BOOL fDirectory = WinQueryButtonCheckstate(hwnd, EXT_AWDIRS); 262 262 size = sizeof(BOOL); 263 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "DirectoryExt",263 PrfWriteProfileData(fmprof, FM3Str, "DirectoryExt", 264 264 (PVOID) &fDirectory, size); 265 265 … … 282 282 BOOL fRemember = WinQueryButtonCheckstate(hwnd, EXT_REMEMBER); 283 283 size = sizeof(BOOL); 284 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "FileNamePathExt",284 PrfWriteProfileData(fmprof, FM3Str, "FileNamePathExt", 285 285 fRemember ? FALSE : (PVOID) &fFileNameExtPath, size); 286 286 if (fRemember) { … … 430 430 strcpy(lastextractpath, s); 431 431 if (fRemember) { 432 PrfWriteProfileString(fmprof, (CHAR *)FM3Str, "Ext_ExtractDir", s);432 PrfWriteProfileString(fmprof, FM3Str, "Ext_ExtractDir", s); 433 433 fRemember = WinQueryButtonCheckstate(hwnd, EXT_WDIRS); 434 434 size = sizeof(BOOL); 435 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "Ext_WDirs",435 PrfWriteProfileData(fmprof, FM3Str, "Ext_WDirs", 436 436 (PVOID) &fRemember, size); 437 437 fRemember = TRUE; … … 446 446 strcpy(arcdata->masks, s); 447 447 if (fRemember) 448 PrfWriteProfileString(fmprof, (CHAR *)FM3Str, "Ext_Mask", s);448 PrfWriteProfileString(fmprof, FM3Str, "Ext_Mask", s); 449 449 arcdata->ret = 1; 450 450 WinDismissDlg(hwnd, 1); -
TabularUnified trunk/dll/flesh.c ¶
r1498 r1505 371 371 GetPString(IDS_LANERROR2TEXT)); 372 372 NoBrokenNotify = 255; 373 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "NoBrokenNotify",373 PrfWriteProfileData(fmprof, FM3Str, "NoBrokenNotify", 374 374 &NoBrokenNotify, sizeof(ULONG)); 375 375 } … … 377 377 else { 378 378 NoBrokenNotify--; 379 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "NoBrokenNotify",379 PrfWriteProfileData(fmprof, FM3Str, "NoBrokenNotify", 380 380 &NoBrokenNotify, sizeof(ULONG)); 381 381 } … … 440 440 GetPString(IDS_FSDERROR2TEXT)); 441 441 NoBrokenNotify = 255; 442 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "NoBrokenNotify",442 PrfWriteProfileData(fmprof, FM3Str, "NoBrokenNotify", 443 443 &NoBrokenNotify, sizeof(ULONG)); 444 444 } … … 446 446 else { 447 447 NoBrokenNotify--; 448 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "NoBrokenNotify",448 PrfWriteProfileData(fmprof, FM3Str, "NoBrokenNotify", 449 449 &NoBrokenNotify, sizeof(ULONG)); 450 450 } -
TabularUnified trunk/dll/grep2.c ¶
r1498 r1505 263 263 GREP_MASK, EM_SETSEL, MPFROM2SHORT(0, 8192), MPVOID); 264 264 size = sizeof(BOOL); 265 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "RememberFlagsGrep",265 PrfQueryProfileData(fmprof, FM3Str, "RememberFlagsGrep", 266 266 (PVOID) & gRemember, &size); 267 267 WinCheckButton(hwnd, GREP_REMEMBERFLAGS, gRemember); 268 268 if (gRemember) { 269 269 size = sizeof(BOOL); 270 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "Grep_Recurse",270 PrfQueryProfileData(fmprof, FM3Str, "Grep_Recurse", 271 271 (PVOID) & recurse, &size); 272 272 size = sizeof(BOOL); 273 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "Grep_Absolute",273 PrfQueryProfileData(fmprof, FM3Str, "Grep_Absolute", 274 274 (PVOID) & absolute, &size); 275 275 size = sizeof(BOOL); 276 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "Grep_Case",276 PrfQueryProfileData(fmprof, FM3Str, "Grep_Case", 277 277 (PVOID) & sensitive, &size); 278 278 size = sizeof(BOOL); 279 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "Grep_Sayfiles",279 PrfQueryProfileData(fmprof, FM3Str, "Grep_Sayfiles", 280 280 (PVOID) & sayfiles, &size); 281 281 size = sizeof(BOOL); 282 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "Grep_Searchfiles",282 PrfQueryProfileData(fmprof, FM3Str, "Grep_Searchfiles", 283 283 (PVOID) & searchFiles, &size); 284 284 size = sizeof(BOOL); 285 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "Grep_SearchfEAs",285 PrfQueryProfileData(fmprof, FM3Str, "Grep_SearchfEAs", 286 286 (PVOID) & searchEAs, &size); 287 287 } … … 370 370 BOOL gRemember = WinQueryButtonCheckstate(hwnd, GREP_REMEMBERFLAGS); 371 371 372 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "RememberFlagsGrep",372 PrfWriteProfileData(fmprof, FM3Str, "RememberFlagsGrep", 373 373 (PVOID) & gRemember, sizeof(BOOL)); 374 374 } … … 856 856 gRemember = WinQueryButtonCheckstate(hwnd, GREP_REMEMBERFLAGS); 857 857 if (gRemember) { 858 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "Grep_Recurse",858 PrfWriteProfileData(fmprof, FM3Str, "Grep_Recurse", 859 859 (PVOID) & recurse, sizeof(BOOL)); 860 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "Grep_Absolute",860 PrfWriteProfileData(fmprof, FM3Str, "Grep_Absolute", 861 861 (PVOID) & absolute, sizeof(BOOL)); 862 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "Grep_Case",862 PrfWriteProfileData(fmprof, FM3Str, "Grep_Case", 863 863 (PVOID) & sensitive, sizeof(BOOL)); 864 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "Grep_Sayfiles",864 PrfWriteProfileData(fmprof, FM3Str, "Grep_Sayfiles", 865 865 (PVOID) & sayfiles, sizeof(BOOL)); 866 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "Grep_Searchfiles",866 PrfWriteProfileData(fmprof, FM3Str, "Grep_Searchfiles", 867 867 (PVOID) & searchFiles, sizeof(BOOL)); 868 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "Grep_SearchfEAs",868 PrfWriteProfileData(fmprof, FM3Str, "Grep_SearchfEAs", 869 869 (PVOID) & searchEAs, sizeof(BOOL)); 870 870 } -
TabularUnified trunk/dll/init.c ¶
r1498 r1505 474 474 DosFindClose(hdir); 475 475 PrfWriteProfileString(fmprof, 476 (CHAR *)FM3Str, "SwapperDat", SwapperDat);476 FM3Str, "SwapperDat", SwapperDat); 477 477 } 478 478 else … … 499 499 RGBGREY.bRed = RGBGREY.bGreen = RGBGREY.bBlue = (BYTE)204; 500 500 RGBGREY.fcOptions = 0; 501 FM3UL = *(ULONG *) (CHAR *)FM3Str;501 FM3UL = *(ULONG *) FM3Str; 502 502 break; 503 503 case 1: … … 688 688 /* give default appname if none set by caller */ 689 689 if (!*appname) 690 strcpy(appname, (CHAR *)FM3Str);690 strcpy(appname, FM3Str); 691 691 /* save appname; may be reset below */ 692 692 strcpy(realappname, appname); 693 if (!strcmp(appname, (CHAR *)FM3Str))693 if (!strcmp(appname, FM3Str)) 694 694 DosSetMaxFH(100); 695 695 else if (!strcmp(appname, "VDir") || … … 910 910 911 911 size = sizeof(BOOL); 912 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "SeparateParms",912 PrfQueryProfileData(fmprof, FM3Str, "SeparateParms", 913 913 &fSeparateParms, &size); 914 914 size = sizeof(BOOL); … … 916 916 &fSeparateParmsApp, &size); 917 917 if (!fSeparateParms && !fSeparateParmsApp) 918 strcpy(appname, (CHAR *)FM3Str);918 strcpy(appname, FM3Str); 919 919 920 920 /* start help */ … … 1210 1210 * Separate paramenters -- Please note that appname should be used in 1211 1211 * profile calls for user settings that work and are setable in more than one 1212 * miniapp; (CHAR *)FM3Str should be used for setting only relavent to FM/2 or that1212 * miniapp; FM3Str should be used for setting only relavent to FM/2 or that 1213 1213 * aren't user settable; realappname should be used for setting applicable to 1214 1214 * one or more miniapp but not to FM/2 … … 1291 1291 PrfQueryProfileData(fmprof, appname, "ThreadNotes", &fThreadNotes, &size); 1292 1292 size = sizeof(BOOL); 1293 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "Prnpagenums", &prnpagenums, &size);1294 size = sizeof(BOOL); 1295 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "Prnalt", &prnalt, &size);1296 size = sizeof(BOOL); 1297 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "Prnformat", &prnformat, &size);1298 size = sizeof(BOOL); 1299 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "Prnformfeedbefore", &prnformfeedbefore, &size);1300 size = sizeof(BOOL); 1301 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "Prnformfeedafter",&prnformfeedafter, &size);1293 PrfQueryProfileData(fmprof, FM3Str, "Prnpagenums", &prnpagenums, &size); 1294 size = sizeof(BOOL); 1295 PrfQueryProfileData(fmprof, FM3Str, "Prnalt", &prnalt, &size); 1296 size = sizeof(BOOL); 1297 PrfQueryProfileData(fmprof, FM3Str, "Prnformat", &prnformat, &size); 1298 size = sizeof(BOOL); 1299 PrfQueryProfileData(fmprof, FM3Str, "Prnformfeedbefore", &prnformfeedbefore, &size); 1300 size = sizeof(BOOL); 1301 PrfQueryProfileData(fmprof, FM3Str, "Prnformfeedafter",&prnformfeedafter, &size); 1302 1302 size = sizeof(ULONG); 1303 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "Prntabspaces", &prntabspaces, &size);1303 PrfQueryProfileData(fmprof, FM3Str, "Prntabspaces", &prntabspaces, &size); 1304 1304 size = sizeof(ULONG); 1305 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "Prnwidth", &prnwidth, &size);1305 PrfQueryProfileData(fmprof, FM3Str, "Prnwidth", &prnwidth, &size); 1306 1306 size = sizeof(ULONG); 1307 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "Prnlength", &prnlength, &size);1307 PrfQueryProfileData(fmprof, FM3Str, "Prnlength", &prnlength, &size); 1308 1308 size = sizeof(ULONG); 1309 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "Prntmargin", &prntmargin, &size);1309 PrfQueryProfileData(fmprof, FM3Str, "Prntmargin", &prntmargin, &size); 1310 1310 size = sizeof(ULONG); 1311 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "Prnbmargin", &prnbmargin, &size);1311 PrfQueryProfileData(fmprof, FM3Str, "Prnbmargin", &prnbmargin, &size); 1312 1312 size = sizeof(ULONG); 1313 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "Prnlmargin", &prnlmargin, &size);1313 PrfQueryProfileData(fmprof, FM3Str, "Prnlmargin", &prnlmargin, &size); 1314 1314 size = sizeof(ULONG); 1315 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "Prnrmargin", &prnrmargin, &size);1315 PrfQueryProfileData(fmprof, FM3Str, "Prnrmargin", &prnrmargin, &size); 1316 1316 size = sizeof(ULONG); 1317 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "Prnspacing", &prnspacing, &size);1317 PrfQueryProfileData(fmprof, FM3Str, "Prnspacing", &prnspacing, &size); 1318 1318 size = sizeof(BOOL); 1319 1319 PrfQueryProfileData(fmprof, appname, "NoDead", &fNoDead, &size); … … 1346 1346 if (strcmp(realappname, "FM/4")) { 1347 1347 size = sizeof(BOOL); 1348 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "MoreButtons", &fMoreButtons, &size);1348 PrfQueryProfileData(fmprof, FM3Str, "MoreButtons", &fMoreButtons, &size); 1349 1349 size = sizeof(BOOL); 1350 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "Drivebar", &fDrivebar, &size);1350 PrfQueryProfileData(fmprof, FM3Str, "Drivebar", &fDrivebar, &size); 1351 1351 } 1352 1352 size = sizeof(BOOL); … … 1389 1389 PrfQueryProfileData(fmprof, appname, "AutoAddAllDirs", &fAutoAddAllDirs, &size); 1390 1390 size = sizeof(BOOL); 1391 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "UserListSwitches", &fUserListSwitches, &size);1391 PrfQueryProfileData(fmprof, FM3Str, "UserListSwitches", &fUserListSwitches, &size); 1392 1392 size = sizeof(BOOL); 1393 1393 PrfQueryProfileData(fmprof, appname, "UseNewViewer", &fUseNewViewer, &size); … … 1395 1395 PrfQueryProfileData(fmprof, appname, "DefaultDeletePerm", &fDefaultDeletePerm, &size); 1396 1396 size = sizeof(BOOL); 1397 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "ExternalINIs", &fExternalINIs, &size);1398 size = sizeof(BOOL); 1399 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "ExternalCollector", &fExternalCollector, &size);1400 size = sizeof(BOOL); 1401 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "ExternalArcboxes", &fExternalArcboxes, &size);1402 size = sizeof(BOOL); 1403 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "ExternalViewer", &fExternalViewer, &size);1404 size = sizeof(BOOL); 1405 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "UseQProcStat", &fUseQProcStat, &size);1406 size = sizeof(BOOL); 1407 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "UseQSysState", &fUseQSysState, &size);1397 PrfQueryProfileData(fmprof, FM3Str, "ExternalINIs", &fExternalINIs, &size); 1398 size = sizeof(BOOL); 1399 PrfQueryProfileData(fmprof, FM3Str, "ExternalCollector", &fExternalCollector, &size); 1400 size = sizeof(BOOL); 1401 PrfQueryProfileData(fmprof, FM3Str, "ExternalArcboxes", &fExternalArcboxes, &size); 1402 size = sizeof(BOOL); 1403 PrfQueryProfileData(fmprof, FM3Str, "ExternalViewer", &fExternalViewer, &size); 1404 size = sizeof(BOOL); 1405 PrfQueryProfileData(fmprof, FM3Str, "UseQProcStat", &fUseQProcStat, &size); 1406 size = sizeof(BOOL); 1407 PrfQueryProfileData(fmprof, FM3Str, "UseQSysState", &fUseQSysState, &size); 1408 1408 size = sizeof(BOOL); 1409 1409 PrfQueryProfileData(fmprof, appname, "DataMin", &fDataMin, &size); … … 1415 1415 PrfQueryProfileData(fmprof, appname, "DataInclRemote", &fDataInclRemote, &size); 1416 1416 size = sizeof(BOOL); 1417 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "SplitStatus", &fSplitStatus, &size);1417 PrfQueryProfileData(fmprof, FM3Str, "SplitStatus", &fSplitStatus, &size); 1418 1418 size = sizeof(BOOL); 1419 1419 PrfQueryProfileData(fmprof, appname, "FolderAfterExtract", &fFolderAfterExtract, &size); … … 1425 1425 PrfQueryProfileData(fmprof, appname, "ConfirmDelete", &fConfirmDelete, &size); 1426 1426 size = sizeof(BOOL); 1427 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "SaveState", &fSaveState, &size);1427 PrfQueryProfileData(fmprof, FM3Str, "SaveState", &fSaveState, &size); 1428 1428 size = sizeof(BOOL); 1429 1429 PrfQueryProfileData(fmprof, appname, "SyncUpdates", &fSyncUpdates, &size); … … 1433 1433 PrfQueryProfileData(fmprof, appname, "UnHilite", &fUnHilite, &size); 1434 1434 size = sizeof(BOOL); 1435 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "TileBackwards", &fTileBackwards, &size);1435 PrfQueryProfileData(fmprof, FM3Str, "TileBackwards", &fTileBackwards, &size); 1436 1436 size = sizeof(BOOL); 1437 1437 PrfQueryProfileData(fmprof, appname, "LoadLongname", &fLoadLongnames, &size); … … 1517 1517 PrfQueryProfileData(fmprof, appname, "NoTreeGap", &fNoTreeGap, &size); 1518 1518 size = sizeof(BOOL); 1519 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "VTreeOpensWPS", &fVTreeOpensWPS, &size);1519 PrfQueryProfileData(fmprof, FM3Str, "VTreeOpensWPS", &fVTreeOpensWPS, &size); 1520 1520 size = sizeof(BOOL); 1521 1521 PrfQueryProfileData(fmprof, appname, "RemoteBug", &fRemoteBug, &size); … … 1539 1539 PrfQueryProfileData(fmprof, appname, "Drag&DropDlg", &fDragndropDlg, &size); 1540 1540 size = sizeof(BOOL); 1541 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "UserComboBox", &fUserComboBox, &size);1542 size = sizeof(BOOL); 1543 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "MinDirOnOpen", &fMinOnOpen, &size);1541 PrfQueryProfileData(fmprof, FM3Str, "UserComboBox", &fUserComboBox, &size); 1542 size = sizeof(BOOL); 1543 PrfQueryProfileData(fmprof, FM3Str, "MinDirOnOpen", &fMinOnOpen, &size); 1544 1544 size = sizeof(BOOL); 1545 1545 PrfQueryProfileData(fmprof, appname, "QuickArcFind", &fQuickArcFind, &size); … … 1547 1547 PrfQueryProfileData(fmprof, appname, "NoRemovableScan", &fNoRemovableScan, &size); 1548 1548 size = sizeof(ULONG); 1549 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "NoBrokenNotify", &NoBrokenNotify, &size);1549 PrfQueryProfileData(fmprof, FM3Str, "NoBrokenNotify", &NoBrokenNotify, &size); 1550 1550 size = sizeof(ULONG); 1551 1551 PrfQueryProfileData(fmprof, appname, "ContainerType", &ulCnrType, &size); -
TabularUnified trunk/dll/killproc.c ¶
r1498 r1505 389 389 case KILL_CHECKBOX: 390 390 fUseQProcStat = WinQueryButtonCheckstate(hwnd, KILL_CHECKBOX); 391 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "UseQProcStat",391 PrfWriteProfileData(fmprof, FM3Str, "UseQProcStat", 392 392 &fUseQProcStat, sizeof(BOOL)); 393 393 PostMsg(hwnd, WM_COMMAND, MPFROM2SHORT(KILL_RESCAN, 0), MPVOID); … … 401 401 case KILL2_CHECKBOX: 402 402 fUseQSysState = WinQueryButtonCheckstate(hwnd, KILL2_CHECKBOX); 403 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "UseQSysState",403 PrfWriteProfileData(fmprof, FM3Str, "UseQSysState", 404 404 &fUseQSysState, sizeof(BOOL)); 405 405 PostMsg(hwnd, WM_COMMAND, MPFROM2SHORT(KILL_RESCAN, 0), MPVOID); -
TabularUnified trunk/dll/misc.c ¶
r1498 r1505 1550 1550 1551 1551 strcpy(eos, "Pos");; 1552 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, s, NULL, 0);1552 PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0); 1553 1553 strcpy(eos, "Sort"); 1554 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, s, NULL, 0);1554 PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0); 1555 1555 strcpy(eos, "Filter"); 1556 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, s, NULL, 0);1556 PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0); 1557 1557 strcpy(eos, "View"); 1558 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, s, NULL, 0);1558 PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0); 1559 1559 strcpy(eos, "Dir"); 1560 PrfWriteProfileString(fmprof, (CHAR *)FM3Str, s, NULL);1560 PrfWriteProfileString(fmprof, FM3Str, s, NULL); 1561 1561 if (statename && strstr(s, ".0.")) { 1562 1562 strcpy(s, statename); … … 1564 1564 eos = &s[strlen(s)]; 1565 1565 strcpy(eos, "LastTreePos"); 1566 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, s, NULL, 0);1566 PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0); 1567 1567 strcpy(eos, "MySizeLastTime"); 1568 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, s, NULL, 0);1568 PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0); 1569 1569 strcpy(eos, "Toolbar"); 1570 PrfWriteProfileString(fmprof, (CHAR *)FM3Str, s, NULL);1570 PrfWriteProfileString(fmprof, FM3Str, s, NULL); 1571 1571 strcpy(eos, "TargetDir"); 1572 PrfWriteProfileString(fmprof, (CHAR *)FM3Str, s, NULL);1572 PrfWriteProfileString(fmprof, FM3Str, s, NULL); 1573 1573 } 1574 1574 … … 1583 1583 1584 1584 sprintf(szKey, "%sDirCnrPos.%lu", szPrefix, ulTemp); 1585 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, szKey, NULL, 0);1585 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0); 1586 1586 sprintf(szKey, "%sDirCnrSort.%lu", szPrefix, ulTemp); 1587 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, szKey, NULL, 0);1587 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0); 1588 1588 sprintf(szKey, "%sDirCnrFilter.%lu", szPrefix, ulTemp); 1589 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, szKey, NULL, 0);1589 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0); 1590 1590 sprintf(szKey, "%sDirCnrView.%lu", szPrefix, ulTemp); 1591 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, szKey, NULL, 0);1591 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0); 1592 1592 sprintf(szKey, "%sDirCnrDir.%lu", szPrefix, ulTemp); 1593 PrfWriteProfileString(fmprof, (CHAR *)FM3Str, szKey, NULL);1593 PrfWriteProfileString(fmprof, FM3Str, szKey, NULL); 1594 1594 sprintf(szKey, "%sDirCnr.%lu.", szPrefix, ulTemp); 1595 1595 } -
TabularUnified trunk/dll/notebook.c ¶
r1498 r1505 1437 1437 &fShowDriveLabelInTree, sizeof(BOOL)); 1438 1438 fVTreeOpensWPS = WinQueryButtonCheckstate(hwnd, CFGT_VTREEOPENSWPS); 1439 PrfWriteProfileData(fmprof, (CHAR *) (CHAR *)FM3Str, "VTreeOpensWPS", &fVTreeOpensWPS,1439 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "VTreeOpensWPS", &fVTreeOpensWPS, 1440 1440 sizeof(BOOL)); 1441 1441 fCollapseFirst = WinQueryButtonCheckstate(hwnd, CFGT_COLLAPSEFIRST); … … 1945 1945 if (fOldSyncUpdates != fSyncUpdates) { 1946 1946 fSyncUpdates = fOldSyncUpdates; 1947 if (hwndMain && !strcmp(realappname, (CHAR *)FM3Str)) {1947 if (hwndMain && !strcmp(realappname, FM3Str)) { 1948 1948 // Save state and restore to refresh windows with new settings 1949 1949 if (SaveDirCnrState(hwndMain, PCSZ_FM2TEMPTEXT) > 0) { … … 2100 2100 2101 2101 case WM_CLOSE: 2102 if (hwndMain && !strcmp(realappname, (CHAR *)FM3Str)) {2102 if (hwndMain && !strcmp(realappname, FM3Str)) { 2103 2103 if (fFreeTree != WinQueryButtonCheckstate(hwnd, CFGM_FREETREE)) 2104 2104 PostMsg(hwndMain, WM_COMMAND, MPFROM2SHORT(IDM_FREETREE, 0), MPVOID); … … 2108 2108 fSplitStatus = (fSplitStatus) ? FALSE : TRUE; 2109 2109 PostMsg(hwndMain, WM_COMMAND, MPFROM2SHORT(IDM_BLINK, 0), MPVOID); 2110 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "SplitStatus", &fSplitStatus,2110 PrfWriteProfileData(fmprof, FM3Str, "SplitStatus", &fSplitStatus, 2111 2111 sizeof(BOOL)); 2112 2112 } 2113 2113 } 2114 2114 fUserListSwitches = WinQueryButtonCheckstate(hwnd, CFGM_USERLISTSWITCHES); 2115 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "UserListSwitches",2115 PrfWriteProfileData(fmprof, FM3Str, "UserListSwitches", 2116 2116 (PVOID) & fUserListSwitches, sizeof(BOOL)); 2117 2117 fExternalINIs = WinQueryButtonCheckstate(hwnd, CFGM_EXTERNALINIS); 2118 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "ExternalINIs",2118 PrfWriteProfileData(fmprof, FM3Str, "ExternalINIs", 2119 2119 (PVOID) & fExternalINIs, sizeof(BOOL)); 2120 2120 fExternalArcboxes = WinQueryButtonCheckstate(hwnd, CFGM_EXTERNALARCBOXES); 2121 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "ExternalArcboxes",2121 PrfWriteProfileData(fmprof, FM3Str, "ExternalArcboxes", 2122 2122 (PVOID) & fExternalArcboxes, sizeof(BOOL)); 2123 2123 fExternalCollector = 2124 2124 WinQueryButtonCheckstate(hwnd, CFGM_EXTERNALCOLLECTOR); 2125 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "ExternalCollector",2125 PrfWriteProfileData(fmprof, FM3Str, "ExternalCollector", 2126 2126 (PVOID) & fExternalCollector, sizeof(BOOL)); 2127 2127 fExternalViewer = WinQueryButtonCheckstate(hwnd, CFGM_EXTERNALVIEWER); 2128 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "ExternalViewer",2128 PrfWriteProfileData(fmprof, FM3Str, "ExternalViewer", 2129 2129 (PVOID) & fExternalViewer, sizeof(BOOL)); 2130 2130 { … … 2150 2150 fSaveState = WinQueryButtonCheckstate(hwnd, CFGM_SAVESTATE); 2151 2151 PrfWriteProfileData(fmprof, 2152 (CHAR *)FM3Str,2152 FM3Str, 2153 2153 "SaveState", (PVOID) & fSaveState, sizeof(BOOL)); 2154 2154 fStartMinimized = WinQueryButtonCheckstate(hwnd, CFGM_STARTMIN); … … 2167 2167 fTileBackwards = WinQueryButtonCheckstate(hwnd, CFGM_TILEBACKWARDS); 2168 2168 PrfWriteProfileData(fmprof, 2169 (CHAR *)FM3Str,2169 FM3Str, 2170 2170 "TileBackwards", 2171 2171 (PVOID) & fTileBackwards, sizeof(BOOL)); … … 2695 2695 fExternalCollector = WinQueryButtonCheckstate(hwnd, 2696 2696 CFG5_EXTERNALCOLLECTOR); 2697 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "ExternalCollector",2697 PrfWriteProfileData(fmprof, FM3Str, "ExternalCollector", 2698 2698 &fExternalCollector, sizeof(BOOL)); 2699 2699 { … … 4100 4100 Runtime_Error(pszSrcFile, __LINE__, "bad menu id %lu", ulPageId); 4101 4101 else { 4102 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, pszIK_LastSettingsPage,4102 PrfWriteProfileData(fmprof, FM3Str, pszIK_LastSettingsPage, 4103 4103 (PVOID)&x, sizeof(x)); 4104 4104 hwndMenu = WinWindowFromID(hwndOwner, FID_MENU); -
TabularUnified trunk/dll/notify.c ¶
r1498 r1505 308 308 fThreadNotes = TRUE; 309 309 PrfWriteProfileData(fmprof, 310 (CHAR *)FM3Str,310 FM3Str, 311 311 "ThreadNotes", 312 312 &fThreadNotes, … … 345 345 346 346 if (PrfQueryProfileData(fmprof, 347 (CHAR *)FM3Str, "NoteWndSwp", (PVOID) & swp, &size)) {347 FM3Str, "NoteWndSwp", (PVOID) & swp, &size)) { 348 348 if (swp.fl & (SWP_HIDE | SWP_MINIMIZE)) { 349 349 fl |= SWP_MINIMIZE; … … 390 390 } 391 391 PrfWriteProfileData(fmprof, 392 (CHAR *)FM3Str, "NoteWndSwp", (PVOID) & swp, sizeof(SWP));392 FM3Str, "NoteWndSwp", (PVOID) & swp, sizeof(SWP)); 393 393 } 394 394 } … … 477 477 fThreadNotes = FALSE; // Remember not open 478 478 PrfWriteProfileData(fmprof, 479 (CHAR *)FM3Str, "ThreadNotes", &fThreadNotes, sizeof(BOOL));479 FM3Str, "ThreadNotes", &fThreadNotes, sizeof(BOOL)); 480 480 hwndNotify = (HWND)0; 481 481 } -
TabularUnified trunk/dll/printer.c ¶
r1498 r1505 478 478 else { 479 479 prnformat = WinQueryButtonCheckstate(hwnd, PRN_FORMAT); 480 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "Prnformat",480 PrfWriteProfileData(fmprof, FM3Str, "Prnformat", 481 481 (PVOID) & prnformat, sizeof(prnformat)); 482 482 prnalt = WinQueryButtonCheckstate(hwnd, PRN_ALT); 483 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "Prnalt",483 PrfWriteProfileData(fmprof, FM3Str, "Prnalt", 484 484 (PVOID) & prnalt, sizeof(prnalt)); 485 485 prnpagenums = WinQueryButtonCheckstate(hwnd, PRN_PAGENUMS); 486 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "Prnpagenums",486 PrfWriteProfileData(fmprof, FM3Str, "Prnpagenums", 487 487 (PVOID) & prnpagenums, sizeof(prnpagenums)); 488 488 prnformfeedbefore = WinQueryButtonCheckstate(hwnd, PRN_FORMBEFORE); 489 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "Prnformfeedbefore",489 PrfWriteProfileData(fmprof, FM3Str, "Prnformfeedbefore", 490 490 (PVOID) & prnformfeedbefore, 491 491 sizeof(prnformfeedbefore)); 492 492 prnformfeedafter = WinQueryButtonCheckstate(hwnd, PRN_FORMAFTER); 493 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "Prnformfeedafter",493 PrfWriteProfileData(fmprof, FM3Str, "Prnformfeedafter", 494 494 (PVOID) & prnformfeedafter, 495 495 sizeof(prnformfeedafter)); … … 506 506 } 507 507 prnwidth = atol(s); 508 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "Prnwidth",508 PrfWriteProfileData(fmprof, FM3Str, "Prnwidth", 509 509 (PVOID) & prnwidth, sizeof(prnwidth)); 510 510 *s = 0; … … 517 517 } 518 518 prnlength = atol(s); 519 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "Prnlength",519 PrfWriteProfileData(fmprof, FM3Str, "Prnlength", 520 520 (PVOID) & prnlength, sizeof(prnlength)); 521 521 *s = 0; … … 528 528 } 529 529 prnlmargin = atol(s); 530 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "Prnlmargin",530 PrfWriteProfileData(fmprof, FM3Str, "Prnlmargin", 531 531 (PVOID) & prnlmargin, sizeof(prnlmargin)); 532 532 *s = 0; … … 539 539 } 540 540 prnrmargin = atol(s); 541 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "Prnrmargin",541 PrfWriteProfileData(fmprof, FM3Str, "Prnrmargin", 542 542 (PVOID) & prnrmargin, sizeof(prnrmargin)); 543 543 *s = 0; … … 551 551 } 552 552 prntabspaces = atol(s); 553 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "Prntabspaces",553 PrfWriteProfileData(fmprof, FM3Str, "Prntabspaces", 554 554 (PVOID) & prntabspaces, sizeof(prntabspaces)); 555 555 *s = 0; … … 562 562 } 563 563 prntmargin = atol(s); 564 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "Prntmargin",564 PrfWriteProfileData(fmprof, FM3Str, "Prntmargin", 565 565 (PVOID) & prntmargin, sizeof(prntmargin)); 566 566 *s = 0; … … 573 573 } 574 574 prnbmargin = atol(s); 575 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "Prnbmargin",575 PrfWriteProfileData(fmprof, FM3Str, "Prnbmargin", 576 576 (PVOID) & prnbmargin, sizeof(prnbmargin)); 577 577 *s = 0; … … 585 585 } 586 586 prnspacing = atol(s); 587 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "Prnspacing",587 PrfWriteProfileData(fmprof, FM3Str, "Prnspacing", 588 588 (PVOID) & prnspacing, sizeof(prnspacing)); 589 589 WinQueryDlgItemText(hwnd, PRN_PRINTER, sizeof(printer), printer); -
TabularUnified trunk/dll/systemf.c ¶
r1498 r1505 656 656 657 657 memset(&ex, 0, sizeof(EXECARGS)); 658 //DbgMsg(pszSrcFile, __LINE__, "env %s", environment); 658 659 if (!environment) { 659 660 ULONG size; 660 661 661 662 size = ENVIRONMENT_SIZE; 662 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, command, ex.environment, &size);663 PrfQueryProfileData(fmprof, FM3Str, command, ex.environment, &size); 663 664 } 664 665 else -
TabularUnified trunk/dll/tools.c ¶
r1498 r1505 234 234 if (toolhead && filename && *filename) { 235 235 strcpy(lasttoolbar, filename); 236 PrfWriteProfileString(fmprof, (CHAR *)FM3Str, "LastToolbar", filename);236 PrfWriteProfileString(fmprof, FM3Str, "LastToolbar", filename); 237 237 } 238 238 if (!toolhead) { … … 1070 1070 } 1071 1071 } 1072 PrfWriteProfileString(fmprof, (CHAR *)FM3Str, "LastToolbar", lasttoolbar);1072 PrfWriteProfileString(fmprof, FM3Str, "LastToolbar", lasttoolbar); 1073 1073 } 1074 1074 WinDismissDlg(hwnd, 1); -
TabularUnified trunk/dll/viewer.c ¶
r1498 r1505 478 478 size = sizeof(BOOL); 479 479 PrfQueryProfileData(fmprof, 480 (CHAR *) (CHAR *)FM3Str, "MLEWrap", (PVOID) & vw->fWrap, &size);480 (CHAR *) FM3Str, "MLEWrap", (PVOID) & vw->fWrap, &size); 481 481 size = sizeof(BOOL); 482 482 PrfQueryProfileData(fmprof, 483 (CHAR *)FM3Str,483 FM3Str, 484 484 "MLEstriptrail", 485 485 (PVOID) & vw->fStripTrail, &size); 486 486 size = sizeof(BOOL); 487 487 PrfQueryProfileData(fmprof, 488 (CHAR *)FM3Str,488 FM3Str, 489 489 "MLEstriptraillines", 490 490 (PVOID) & vw->fStripTrailLines, &size); 491 491 size = sizeof(BOOL); 492 492 PrfQueryProfileData(fmprof, 493 (CHAR *)FM3Str,493 FM3Str, 494 494 "MLEInsensitve", 495 495 (PVOID) & vw->srch.fInsensitive, &size); 496 496 size = sizeof(INT); 497 497 PrfQueryProfileData(fmprof, 498 (CHAR *)FM3Str,498 FM3Str, 499 499 "MLEExpandTabs", (PVOID) & vw->ExpandTabs, &size); 500 500 size = sizeof(INT); 501 501 PrfQueryProfileData(fmprof, 502 (CHAR *)FM3Str,502 FM3Str, 503 503 "MLETabStops", (PVOID) & vw->TabStops, &size); 504 504 } … … 541 541 542 542 if (!PrfQueryProfileData(fmprof, 543 (CHAR *)FM3Str,543 FM3Str, 544 544 "MLEFont", 545 545 &vw->fattrs, … … 572 572 size = sizeof(ULONG); 573 573 PrfQueryProfileData(fmprof, 574 (CHAR *)FM3Str,574 FM3Str, 575 575 "MLEBackgroundcolor", 576 576 &Colors[COLORS_BACKGROUND], &size); 577 577 size = sizeof(ULONG); 578 578 PrfQueryProfileData(fmprof, 579 (CHAR *)FM3Str,579 FM3Str, 580 580 "MLEForegroundcolor", 581 581 &Colors[COLORS_FOREGROUND], &size); … … 753 753 MPVOID); 754 754 PrfWriteProfileData(fmprof, 755 (CHAR *)FM3Str,755 FM3Str, 756 756 "MLEForegroundcolor", 757 757 &Colors[COLORS_FOREGROUND], sizeof(LONG)); … … 761 761 MPVOID); 762 762 PrfWriteProfileData(fmprof, 763 (CHAR *)FM3Str,763 FM3Str, 764 764 "MLEBackgroundcolor", 765 765 &Colors[COLORS_BACKGROUND], sizeof(LONG)); … … 779 779 WinSendMsg(hwndMLE, MLM_SETFONT, MPFROMP(&vw->fattrs), MPVOID); 780 780 PrfWriteProfileData(fmprof, 781 (CHAR *)FM3Str, "MLEFont", &vw->fattrs, sizeof(FATTRS));781 FM3Str, "MLEFont", &vw->fattrs, sizeof(FATTRS)); 782 782 break; 783 783 … … 1007 1007 MLM_SETTABSTOP, MPFROMLONG(vw->TabStops), MPVOID); 1008 1008 PrfWriteProfileData(fmprof, 1009 (CHAR *)FM3Str,1009 FM3Str, 1010 1010 "MLETabStops", &vw->TabStops, sizeof(INT)); 1011 1011 } … … 1032 1032 SetMenuCheck(vw->hwndMenu, MLE_EXPANDTABS, &tempbool, FALSE, NULL); 1033 1033 PrfWriteProfileData(fmprof, 1034 (CHAR *)FM3Str,1034 FM3Str, 1035 1035 "MLEExpandTabs", &vw->ExpandTabs, sizeof(INT)); 1036 1036 } … … 1144 1144 SetMLEFont(hwndMLE, &vw->fattrs, 0); 1145 1145 PrfWriteProfileData(fmprof, 1146 (CHAR *)FM3Str, "MLEFont", &vw->fattrs, sizeof(FATTRS));1146 FM3Str, "MLEFont", &vw->fattrs, sizeof(FATTRS)); 1147 1147 break; 1148 1148 -
TabularUnified trunk/dll/viewinf.c ¶
r1498 r1505 193 193 key = "HLPPaths"; 194 194 repeating = TRUE; 195 if (PrfQueryProfileSize(fmprof, (CHAR *)FM3Str, key, &size) && size) {195 if (PrfQueryProfileSize(fmprof, FM3Str, key, &size) && size) { 196 196 holdenv = xmalloc(size + 2, pszSrcFile, __LINE__); 197 197 if (holdenv) { 198 if (!PrfQueryProfileData(fmprof, (CHAR *)FM3Str, key, holdenv, &size)) {198 if (!PrfQueryProfileData(fmprof, FM3Str, key, holdenv, &size)) { 199 199 Win_Error(hwnd, hwnd, pszSrcFile, __LINE__, 200 200 PCSZ_PRFQUERYPROFILEDATA); … … 521 521 bstrip(szBuffer); 522 522 PrfWriteProfileData(fmprof, 523 (CHAR *)FM3Str,523 FM3Str, 524 524 key, 525 525 (*szBuffer) ? szBuffer : NULL, strlen(szBuffer)); -
TabularUnified trunk/dll/walkem.c ¶
r1498 r1505 205 205 return; 206 206 207 if (!PrfQueryProfileSize(fmprof, (CHAR *)FM3Str, pszLastSetups, &ulDataBytes)) {207 if (!PrfQueryProfileSize(fmprof, FM3Str, pszLastSetups, &ulDataBytes)) { 208 208 // fixme to use generic hab 209 209 ERRORID eid = WinGetLastError((HAB)0); 210 210 if ((eid & 0xffff) != PMERR_NOT_IN_IDX) { 211 211 // Get error info back 212 PrfQueryProfileSize(fmprof, (CHAR *)FM3Str, pszLastSetups, &ulDataBytes);212 PrfQueryProfileSize(fmprof, FM3Str, pszLastSetups, &ulDataBytes); 213 213 Win_Error(HWND_DESKTOP, HWND_DESKTOP, pszSrcFile, __LINE__, PCSZ_PRFQUERYPROFILESIZE); 214 214 } … … 227 227 return; 228 228 l = ulDataBytes; 229 if (!PrfQueryProfileData(fmprof, (CHAR *)FM3Str, pszLastSetups, pszBuf, &l)) {229 if (!PrfQueryProfileData(fmprof, FM3Str, pszLastSetups, pszBuf, &l)) { 230 230 Win_Error(HWND_DESKTOP, HWND_DESKTOP, pszSrcFile, __LINE__, PCSZ_PRFQUERYPROFILEDATA); 231 231 free(pszBuf); … … 322 322 323 323 if (!PrfWriteProfileData(fmprof, 324 (CHAR *)FM3Str,324 FM3Str, 325 325 pszLastSetups, pszBuf, ulBufBytes)) { 326 326 ERRORID eid = WinGetLastError((HAB)0); … … 330 330 331 331 // Delete obsolete INI entry 332 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "LastSetup", NULL, 0);332 PrfWriteProfileData(fmprof, FM3Str, "LastSetup", NULL, 0); 333 333 } 334 334 … … 778 778 ULONG size = sizeof(SWP); 779 779 780 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "WalkDir.Position", (PVOID) &swp, &size);780 PrfQueryProfileData(fmprof, FM3Str, "WalkDir.Position", (PVOID) &swp, &size); 781 781 swp.fl &= ~SWP_SIZE; // 04 Feb 09 SHL ignore saved size 782 782 WinSetWindowPos(hwnd, … … 1269 1269 ULONG size = sizeof(SWP); 1270 1270 WinQueryWindowPos(hwnd, &swp); 1271 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "WalkDir.Position", (PVOID) &swp,1271 PrfWriteProfileData(fmprof, FM3Str, "WalkDir.Position", (PVOID) &swp, 1272 1272 size); 1273 1273 } … … 1290 1290 1291 1291 WinQueryWindowPos(hwnd, &swp); 1292 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "WalkDir.Position", (PVOID) &swp,1292 PrfWriteProfileData(fmprof, FM3Str, "WalkDir.Position", (PVOID) &swp, 1293 1293 size); 1294 1294 } … … 1404 1404 ULONG size = sizeof(SWP); 1405 1405 1406 PrfQueryProfileData(fmprof, (CHAR *)FM3Str, "WalkDir2.Position", (PVOID) &swp, &size);1406 PrfQueryProfileData(fmprof, FM3Str, "WalkDir2.Position", (PVOID) &swp, &size); 1407 1407 swp.fl &= ~SWP_SIZE; // 04 Feb 09 SHL ignore saved size 1408 1408 WinSetWindowPos(hwnd, … … 1686 1686 1687 1687 WinQueryWindowPos(hwnd, &swp); 1688 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "WalkDir2.Position", (PVOID) &swp,1688 PrfWriteProfileData(fmprof, FM3Str, "WalkDir2.Position", (PVOID) &swp, 1689 1689 size); 1690 1690 } … … 1705 1705 1706 1706 WinQueryWindowPos(hwnd, &swp); 1707 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "WalkDir2.Position", (PVOID) &swp,1707 PrfWriteProfileData(fmprof, FM3Str, "WalkDir2.Position", (PVOID) &swp, 1708 1708 size); 1709 1709 }
Note:
See TracChangeset
for help on using the changeset viewer.