mirror of
https://github.com/reactos/reactos.git
synced 2024-08-30 07:08:19 +00:00
49 lines
1.4 KiB
C++
49 lines
1.4 KiB
C++
/* Copyright (c) Mark Harmstone 2017
|
|
*
|
|
* This file is part of WinBtrfs.
|
|
*
|
|
* WinBtrfs is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public Licence as published by
|
|
* the Free Software Foundation, either version 3 of the Licence, or
|
|
* (at your option) any later version.
|
|
*
|
|
* WinBtrfs is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Lesser General Public Licence for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public Licence
|
|
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
|
|
|
|
#pragma once
|
|
|
|
#include <windows.h>
|
|
#ifndef __REACTOS__
|
|
#include "../btrfs.h"
|
|
#include "../btrfsioctl.h"
|
|
#else
|
|
#include "btrfs.h"
|
|
#include "btrfsioctl.h"
|
|
#endif
|
|
|
|
class BtrfsScrub {
|
|
public:
|
|
BtrfsScrub(WCHAR* drive) {
|
|
wcscpy(fn, drive);
|
|
}
|
|
|
|
INT_PTR CALLBACK ScrubDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
private:
|
|
void RefreshScrubDlg(HWND hwndDlg, BOOL first_time);
|
|
void UpdateTextBox(HWND hwndDlg, btrfs_query_scrub* bqs);
|
|
void StartScrub(HWND hwndDlg);
|
|
void PauseScrub(HWND hwndDlg);
|
|
void StopScrub(HWND hwndDlg);
|
|
|
|
WCHAR fn[MAX_PATH];
|
|
UINT32 status;
|
|
UINT64 chunks_left;
|
|
UINT32 num_errors;
|
|
};
|