1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2026-01-06 21:58:11 -06:00

Windows: make the wait dialog mechanism more generic in order to reuse it more widely across VeraCrypt.

This commit is contained in:
Mounir IDRASSI
2014-12-27 00:08:13 +01:00
parent 258ba629a2
commit c92d51e040
2 changed files with 65 additions and 29 deletions

View File

@@ -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