• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/unzip60/wince/

Lines Matching defs:pei

270 void UpdateProgress(EXTRACT_INFO *pei, BOOL fFull);
2922 static EXTRACT_INFO *pei;
2930 pei = (EXTRACT_INFO*)lParam;
2933 pei->fRestorePaths = GetOptionInt(TEXT("RestorePaths"), TRUE);
2934 pei->overwriteMode = (OVERWRITE_MODE)GetOptionInt(TEXT("OverwriteMode"), OM_PROMPT);
2941 SetDlgItemText(hDlg, IDC_FILE_COUNT, FormatValue(szPath, pei->dwFileCount));
2942 SetDlgItemText(hDlg, IDC_BYTE_COUNT, FormatValue(szPath, pei->uzByteCount));
2943 CheckDlgButton(hDlg, IDC_RESTORE_PATHS, pei->fRestorePaths);
2944 CheckDlgButton(hDlg, IDC_OVERWRITE_PROMPT, pei->overwriteMode == OM_PROMPT);
2945 CheckDlgButton(hDlg, IDC_OVERWRITE_NEWER, pei->overwriteMode == OM_NEWER);
2946 CheckDlgButton(hDlg, IDC_OVERWRITE_ALWAYS, pei->overwriteMode == OM_ALWAYS);
2947 CheckDlgButton(hDlg, IDC_OVERWRITE_NEVER, pei->overwriteMode == OM_NEVER);
2976 pei->fRestorePaths = IsDlgButtonChecked(hDlg, IDC_RESTORE_PATHS);
2977 pei->overwriteMode =
2983 WriteOptionInt(TEXT("RestorePaths"), pei->fRestorePaths);
2984 WriteOptionInt(TEXT("OverwriteMode"), pei->overwriteMode);
3216 static EXTRACT_INFO *pei;
3229 pei = (EXTRACT_INFO*)lParam;
3278 pei->hWndEditFile = GetDlgItem(hDlg, IDC_FILE);
3279 pei->hWndProgFile = GetDlgItem(hDlg, IDC_FILE_PROGRESS);
3280 pei->hWndProgTotal = GetDlgItem(hDlg, IDC_TOTAL_PROGRESS);
3281 pei->hWndPercentage = GetDlgItem(hDlg, IDC_PERCENTAGE);
3282 pei->hWndFilesProcessed = GetDlgItem(hDlg, IDC_FILES_PROCESSED);
3283 pei->hWndBytesProcessed = GetDlgItem(hDlg, IDC_BYTES_PROCESSED);
3285 if (pei->fExtract) {
3294 ShowWindow(pei->hWndProgFile, SW_HIDE);
3298 SendMessage(pei->hWndProgFile, PBM_SETRANGE, 0,
3300 SendMessage(pei->hWndProgTotal, PBM_SETRANGE, 0,
3305 FormatValue(szBuffer, pei->dwFileCount));
3307 FormatValue(szBuffer, pei->uzByteCount));
3310 DoExtractOrTestFiles(g_szZipFile, pei);
3319 if ((pei->result == PK_OK) || (pei->result == PK_WARN)) {
3322 SendMessage(pei->hWndProgFile, PBM_SETPOS, PROGRESS_MAX, 0);
3323 SendMessage(pei->hWndProgTotal, PBM_SETPOS, PROGRESS_MAX, 0);
3324 SetWindowText(pei->hWndPercentage, TEXT("100%"));
3326 FormatValue(szBuffer, pei->dwFileCount));
3328 FormatValue(szBuffer, pei->uzByteCount));
3332 SetWindowText(pei->hWndEditFile,
3333 (pei->result == PK_OK) ? TEXT("Completed. There were no warnings or errors.") :
3334 (pei->result == PK_WARN) ? TEXT("Completed. There was one or more warnings.") :
3335 (pei->result == PK_ABORTED) ? TEXT("Aborted. There may be warnings or errors.") :
3349 if ((pei->result != PK_OK) && (pei->result != PK_WARN)) {
3350 MessageBox(hDlg, GetZipErrorString(pei->result),
3363 if (!fComplete && !pei->fAbort) {
3364 pei->fAbort = TRUE;
3387 static EXTRACT_INFO *pei;
3397 pei = (EXTRACT_INFO*)lParam;
3403 pei->hWndProgFile = GetDlgItem(hDlg, IDC_FILE_PROGRESS);
3410 DoExtractOrTestFiles(g_szZipFile, pei);
3426 if ((LOWORD(wParam) == IDCANCEL) && !pei->fAbort) {
3427 pei->fAbort = TRUE;
3438 void UpdateProgress(EXTRACT_INFO *pei, BOOL fFull) {
3444 if (pei->uzBytesTotalThisFile) {
3446 (DWORDLONG)pei->uzBytesWrittenThisFile) /
3447 (DWORDLONG)pei->uzBytesTotalThisFile);
3453 SendMessage(pei->hWndProgFile, PBM_SETPOS, dwFile, 0);
3456 if (!pei->hWndProgTotal) {
3462 (DWORDLONG)(pei->uzBytesWrittenPreviousFiles +
3463 pei->uzBytesWrittenThisFile +
3464 pei->dwFile)) /
3465 (DWORDLONG)(pei->uzByteCount +
3466 pei->dwFileCount));
3470 SendMessage(pei->hWndProgTotal, PBM_SETPOS, dwTotal, 0);
3474 SetWindowText(pei->hWndPercentage, szBuffer);
3477 FormatValue(szBuffer, pei->dwFile - 1);
3478 SetWindowText(pei->hWndFilesProcessed, szBuffer);
3479 FormatValue(szBuffer, pei->uzBytesWrittenPreviousFiles +
3480 pei->uzBytesWrittenThisFile);
3481 SetWindowText(pei->hWndBytesProcessed, szBuffer);
3487 _tcscpy(szBuffer, pei->fExtract ? TEXT("Extract") : TEXT("Test"));
3489 MBSTOTSTR(szBuffer+preflen, pei->szFile,countof(szBuffer)-preflen);
3495 SetWindowText(pei->hWndEditFile, szBuffer);