[beta 7]Bitlocker drive icon is not redrawn
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 15
- Joined: 2016-06-26, 13:39 UTC
[beta 7]Bitlocker drive icon is not redrawn
1. Open total commander and switch to any unencrypted drive.
2. Unlock locked drive by any method.
3. TC will continue to show LOCKED drive icon on
recently unlocked drive
2. Unlock locked drive by any method.
3. TC will continue to show LOCKED drive icon on
recently unlocked drive
- ghisler(Author)
- Site Admin
- Posts: 50550
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Sadly there are no user mode functions to check the status of bitlocker drives. The only public functions are in WMI, and it requires administrator privileges (elevation). There is also no notification when the bitlocker status changes.
The combobox is re-read every time you open it. There is no such trigger for the drive bar. Reloading it constantly every 5 seconds or so would eat a lot of CPU.
The combobox is re-read every time you open it. There is no such trigger for the drive bar. Reloading it constantly every 5 seconds or so would eat a lot of CPU.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- Junior Member
- Posts: 15
- Joined: 2016-06-26, 13:39 UTC
Please check your e-mail. I send clear solution, which can check bitlocker drive status very eazy and without admin rights.ghisler(Author) wrote:Sadly there are no user mode functions to check the status of bitlocker drives. The only public functions are in WMI, and it requires administrator privileges (elevation). There is also no notification when the bitlocker status changes.
The combobox is re-read every time you open it. There is no such trigger for the drive bar. Reloading it constantly every 5 seconds or so would eat a lot of CPU.
- ghisler(Author)
- Site Admin
- Posts: 50550
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Hmm, re-reading both panels already causes quite a slowdown, so it may not be such a good idea.You could refresh icons when TC gets focus
Well, it only allows to detect it while the drive is NOT unlocked. Then GetLastError after the failed FindFirstFile will return a specific error code, as you reported. But there is no way to detect an unlocked Bitlocker volume. Also when I show the drive buttonbar, I don't try to access each drive with FindFirstFile, I just call GetDriveType.I send clear solution, which can check bitlocker drive status very eazy and without admin rights.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- Junior Member
- Posts: 15
- Joined: 2016-06-26, 13:39 UTC
I don't know if this can be of any help, but
a) if a locked Bitlocker volume is shown in drive buttonbar, then the tooltip is empty (volume USB-connected)
b) if a unlocked Bitlocker volume is shown in drive buttonbar, then in the tooltip the name of volume is shown,
for example "TOSHIBA EXT" (see also properties of drive)
With right-click on drive in drive buttonbar one receives a menu window and can unlock Bitlocker-locked-drive.
OldDriveIcons=2
The icon in drive buttonbar is always the same if an USB-volume is connected and the volume is locked/unlocked with Bitlocker.
Regards
Karl
a) if a locked Bitlocker volume is shown in drive buttonbar, then the tooltip is empty (volume USB-connected)
b) if a unlocked Bitlocker volume is shown in drive buttonbar, then in the tooltip the name of volume is shown,
for example "TOSHIBA EXT" (see also properties of drive)
With right-click on drive in drive buttonbar one receives a menu window and can unlock Bitlocker-locked-drive.
OldDriveIcons=2
The icon in drive buttonbar is always the same if an USB-volume is connected and the volume is locked/unlocked with Bitlocker.
Regards
Karl
-
- Junior Member
- Posts: 15
- Joined: 2016-06-26, 13:39 UTC
How you detect ONLY bitlocker unlocked drive, but not simple not encrypted drive?tuska wrote:I don't know if this can be of any help, but
a) if a locked Bitlocker volume is shown in drive buttonbar, then the tooltip is empty (volume USB-connected)
b) if a unlocked Bitlocker volume is shown in drive buttonbar, then in the tooltip the name of volume is shown,
for example "TOSHIBA EXT" (see also properties of drive)
With right-click on drive in drive buttonbar one receives a menu window and can unlock Bitlocker-locked-drive.
OldDriveIcons=2
The icon in drive buttonbar is always the same if an USB-volume is connected and the volume is locked/unlocked with Bitlocker.
Regards
Karl
So this is useless
You said that drive icons for combobox are re-read every time you open it, and it shows up immediately, no visible slowdown at all. So re-reading icons when TC gets focus should not make any difference either.ghisler(Author) wrote:Hmm, re-reading both panels already causes quite a slowdown, so it may not be such a good idea.
- ghisler(Author)
- Site Admin
- Posts: 50550
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
-
- Junior Member
- Posts: 15
- Joined: 2016-06-26, 13:39 UTC