"Fossies" - the Fresh Open Source Software Archive

Member "src/Mount/Hotkeys.h" (10 Oct 2018, 1358 Bytes) of package /windows/misc/VeraCrypt_1.23-Hotfix-2_Source.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "Hotkeys.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  Derived from source code of TrueCrypt 7.1a, which is
    3  Copyright (c) 2008-2012 TrueCrypt Developers Association and which is governed
    4  by the TrueCrypt License 3.0.
    5 
    6  Modifications and additions to the original source code (contained in this file)
    7  and all other portions of this file are Copyright (c) 2013-2017 IDRIX
    8  and are governed by the Apache License 2.0 the full text of which is
    9  contained in the file License.txt included in VeraCrypt binary and source
   10  code distribution packages.
   11 */
   12 
   13 #ifdef __cplusplus
   14 extern "C" {
   15 #endif
   16 
   17 enum
   18 {
   19     /* When adding/removing hot keys, update the following functions in Mount.c:
   20     DisplayHotkeyList()
   21     SaveSettings()
   22     LoadSettings()
   23     HandleHotKey()  */
   24 
   25     HK_AUTOMOUNT_DEVICES = 0,
   26     HK_CLOSE_SECURITY_TOKEN_SESSIONS,
   27     HK_DISMOUNT_ALL,
   28     HK_DISMOUNT_ALL_AND_WIPE,
   29     HK_FORCE_DISMOUNT_ALL_AND_WIPE,
   30     HK_FORCE_DISMOUNT_ALL_AND_WIPE_AND_EXIT,
   31     HK_MOUNT_FAVORITE_VOLUMES,
   32     HK_SHOW_HIDE_MAIN_WINDOW,
   33     HK_WIPE_CACHE,
   34     NBR_HOTKEYS
   35 };
   36 
   37 typedef struct
   38 {
   39     UINT vKeyCode;
   40     UINT vKeyModifiers;
   41 } TCHOTKEY;
   42 
   43 extern TCHOTKEY Hotkeys [NBR_HOTKEYS];
   44 
   45 BOOL CALLBACK HotkeysDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
   46 BOOL GetKeyName (UINT vKey, wchar_t *keyName);
   47 void UnregisterAllHotkeys (HWND hwndDlg, TCHOTKEY hotkeys[]);
   48 BOOL RegisterAllHotkeys (HWND hwndDlg, TCHOTKEY hotkeys[]);
   49 
   50 #ifdef __cplusplus
   51 }
   52 #endif