ReactOS  0.4.14-dev-552-g2fad488
scrub.h
Go to the documentation of this file.
1 /* Copyright (c) Mark Harmstone 2017
2  *
3  * This file is part of WinBtrfs.
4  *
5  * WinBtrfs is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Lesser General Public Licence as published by
7  * the Free Software Foundation, either version 3 of the Licence, or
8  * (at your option) any later version.
9  *
10  * WinBtrfs is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Lesser General Public Licence for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public Licence
16  * along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
17 
18 #pragma once
19 
20 #include <windows.h>
21 #ifndef __REACTOS__
22 #include "../btrfs.h"
23 #include "../btrfsioctl.h"
24 #else
25 #include "btrfs.h"
26 #include "btrfsioctl.h"
27 #endif
28 
29 class BtrfsScrub {
30 public:
31  BtrfsScrub(const wstring& drive) {
32  fn = drive;
33  }
34 
36 
37 private:
38  void RefreshScrubDlg(HWND hwndDlg, bool first_time);
39  void UpdateTextBox(HWND hwndDlg, btrfs_query_scrub* bqs);
40  void StartScrub(HWND hwndDlg);
41  void PauseScrub(HWND hwndDlg);
42  void StopScrub(HWND hwndDlg);
43 
44  wstring fn;
48 };
void StartScrub(HWND hwndDlg)
Definition: scrub.cpp:356
void StopScrub(HWND hwndDlg)
Definition: scrub.cpp:410
INT_PTR CALLBACK ScrubDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: scrub.cpp:426
#define CALLBACK
Definition: compat.h:27
void RefreshScrubDlg(HWND hwndDlg, bool first_time)
Definition: scrub.cpp:267
wstring fn
Definition: scrub.h:44
UINT_PTR WPARAM
Definition: windef.h:207
int32_t INT_PTR
Definition: typedefs.h:62
uint32_t num_errors
Definition: scrub.h:47
WPARAM wParam
Definition: combotst.c:138
BtrfsScrub(const wstring &drive)
Definition: scrub.h:31
LONG_PTR LPARAM
Definition: windef.h:208
void PauseScrub(HWND hwndDlg)
Definition: scrub.cpp:384
uint32_t status
Definition: scrub.h:45
void UpdateTextBox(HWND hwndDlg, btrfs_query_scrub *bqs)
Definition: scrub.cpp:45
static char drive[2]
Definition: batch.c:28
UINT64 uint64_t
Definition: types.h:77
unsigned int UINT
Definition: ndis.h:50
UINT32 uint32_t
Definition: types.h:75
uint64_t chunks_left
Definition: scrub.h:46
LPARAM lParam
Definition: combotst.c:139