VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Progress.h
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-02-11 23:54:35 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-02-12 00:04:31 +0100
commitd7d4c98775e34c7cb723ca813e8a76fe83610013 (patch)
tree262b84c9543995c64a2c93296f3dfebd4e27d3f3 /src/Common/Progress.h
parent89d238bb3241fe8c285e9b748c0d99fa10b6a590 (diff)
downloadVeraCrypt-d7d4c98775e34c7cb723ca813e8a76fe83610013.tar.gz
VeraCrypt-d7d4c98775e34c7cb723ca813e8a76fe83610013.zip
Windows: Add colors (Red, Yellow, Green) to the collected randomness indicator depending on how much entropy was gathered. Code re-factoring.
Diffstat (limited to 'src/Common/Progress.h')
-rw-r--r--src/Common/Progress.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Common/Progress.h b/src/Common/Progress.h
index 27ee659c..9e80a086 100644
--- a/src/Common/Progress.h
+++ b/src/Common/Progress.h
@@ -15,6 +15,15 @@
extern "C" {
#endif
+#ifndef PBM_SETSTATE
+
+#define PBM_SETSTATE (WM_USER+16) // wParam = PBST_[State] (NORMAL, ERROR, PAUSED)
+#define PBST_NORMAL 0x0001
+#define PBST_ERROR 0x0002
+#define PBST_PAUSED 0x0003
+
+#endif
+
void InitProgressBar (__int64 totalBytes, __int64 bytesDone, BOOL bReverse, BOOL bIOThroughput, BOOL bDisplayStatus, BOOL bShowPercent);
BOOL UpdateProgressBar (__int64 byteOffset);
BOOL UpdateProgressBarProc (__int64 byteOffset);