From c92d51e0405085208c2166780e822a0d113b2ed7 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sat, 27 Dec 2014 00:08:13 +0100 Subject: Windows: make the wait dialog mechanism more generic in order to reuse it more widely across VeraCrypt. --- src/Common/Dlgcode.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Common/Dlgcode.h') diff --git a/src/Common/Dlgcode.h b/src/Common/Dlgcode.h index 3781fd54..b3ec7501 100644 --- a/src/Common/Dlgcode.h +++ b/src/Common/Dlgcode.h @@ -528,6 +528,10 @@ std::string HarddiskVolumePathToPartitionPath (const std::string &harddiskVolume std::string FindLatestFileOrDirectory (const std::string &directory, const char *namePattern, bool findDirectory, bool findFile); std::string GetUserFriendlyVersionString (int version); +// Display a wait dialog while calling the provided callback with the given parameter +typedef void (CALLBACK* WaitThreadProc)(void* pArg, HWND hWaitDlg); +void ShowWaitDialog(HWND hwnd, BOOL bUseHwndAsParent, WaitThreadProc callback, void* pArg); + #endif // __cplusplus #endif // TC_HEADER_DLGCODE -- cgit v1.2.3