VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Mount/Mount.h
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-12-26 16:53:55 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-12-26 16:55:21 +0100
commit258ba629a2dc1af61b2fade1e040830080ffcc57 (patch)
treecb095dbf7cd4740518f358c353a8e122c0057ee2 /src/Mount/Mount.h
parentd90d9f0c401a21c85a525aaca0b97df8f7955db8 (diff)
downloadVeraCrypt-258ba629a2dc1af61b2fade1e040830080ffcc57.tar.gz
VeraCrypt-258ba629a2dc1af61b2fade1e040830080ffcc57.zip
Windows: workaround freezing of waiting dialog but setting its parent to the desktop and making all mount calls in a separate thread. DeviceIoControl is making our like hard because it doesn't behave as a normal system call and it blocks our window message loop even when called from a separate thread.
Diffstat (limited to 'src/Mount/Mount.h')
-rw-r--r--src/Mount/Mount.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Mount/Mount.h b/src/Mount/Mount.h
index e982de81..9b320a8c 100644
--- a/src/Mount/Mount.h
+++ b/src/Mount/Mount.h
@@ -113,8 +113,17 @@ static BOOL HandleDriveListMouseWheelEvent (UINT uMsg, WPARAM wParam, LPARAM lPa
#ifdef __cplusplus
}
+typedef struct
+{
+ BOOL systemFavorites;
+ BOOL logOnMount;
+ BOOL hotKeyMount;
+ VeraCrypt::FavoriteVolume* favoriteVolumeToMount;
+} mountFavoriteVolumeThreadParam;
+
void SetDriverConfigurationFlag (uint32 flag, BOOL state);
BOOL MountFavoriteVolumes (BOOL systemFavorites = FALSE, BOOL logOnMount = FALSE, BOOL hotKeyMount = FALSE, const VeraCrypt::FavoriteVolume &favoriteVolumeToMount = VeraCrypt::FavoriteVolume());
+void __cdecl mountFavoriteVolumeThreadFunction (void *pArg);
BOOL GetExecutableImageInformation (const string &path, string &version, string &description, string &companyName, string &productName);
#endif