Annotation of mstools/samples/filer/globals.h, revision 1.1.1.1

1.1       root        1: /******************************Module*Header*******************************\
                      2: * Module Name: globals.h
                      3: *
                      4: * Header file
                      5: *
                      6: * Created: 5-05-92
                      7: * Author: Colin Stuart []
                      8: *
                      9: * Copyright (c) 1992 Microsoft Corporation
                     10: *
                     11: *
                     12: *
                     13: * Dependencies:
                     14: *
                     15: \**************************************************************************/
                     16: #include<windows.h>
                     17: 
                     18: //
                     19: // Accellerator IDs
                     20: //
                     21: #define ACCEL_ID        1001
                     22: 
                     23: //
                     24: // Icon IDs
                     25: //
                     26: #define UI_FILERICON    2001
                     27: 
                     28: //
                     29: // DialogBox IDs
                     30: //
                     31: #define SB_OK           3001
                     32: #define SB_CANCEL       3002
                     33: #define SB_ACTION       3003
                     34: #define SB_TOFROM       3004
                     35: #define SB_SOURCE       3005
                     36: #define SB_DEST         3006
                     37: #define SB_STATIC       3007
                     38: 
                     39: //
                     40: // String Table IDs
                     41: //
                     42: #define STR_EXE         2001
                     43: #define STR_COM         2002
                     44: #define STR_CMD         2003
                     45: #define STR_BAT         2004
                     46: 
                     47: #define STR_DEF_EDITOR  2101
                     48: 
                     49: //
                     50: // Bitmap IDs
                     51: //
                     52: #define UB_BMP_MARKER   5001    // This should be the same as the first bitmap.
                     53: #define UB_FLOPPY1      5001    // THESE BITMAP IDs MUST BE CONTIGUOUS AND
                     54: #define UB_FLOPPY2      5002    //   IN THIS ORDER!  For 'ease of loading'.
                     55: #define UB_REMOTE1      5003
                     56: #define UB_REMOTE2      5004
                     57: #define UB_CD1          5005
                     58: #define UB_CD2          5006
                     59: #define UB_FIXED1       5007
                     60: #define UB_FIXED2       5008
                     61: 
                     62: //
                     63: // Drv-CHILD child window IDs
                     64: //
                     65: #define TEXT_WINDOW_ID  6001
                     66: #define LISTL_ID        6002
                     67: #define LISTR_ID        6003
                     68: 
                     69: //
                     70: // Internal Main window IDs
                     71: //
                     72: #define MM_FILLDIR      7001
                     73: #define MM_FILLFILE     7002
                     74: 
                     75: //
                     76: // Menu ID's, VKEYs, & other WM_COMMAND messages
                     77: //
                     78: #define MM_OPEN         8001
                     79: #define MM_COPY         8002
                     80: #define MM_DELETE       8003
                     81: #define MM_MOVE         8004
                     82: #define MM_RENAME       8005
                     83: #define MM_MKDIR        8006
                     84: #define MM_DELDIR       8007
                     85: 
                     86: #define MM_REFRESH      8101
                     87: #define MM_ACTIVEDRV    8102
                     88: #define MM_TAB          8103
                     89: #define MM_SWAP         8104
                     90: #define MM_ORIENT       8105
                     91: 
                     92: #define MM_ESCAPE       8112
                     93: #define MM_TOGGLE       8113
                     94: 
                     95: #define MM_ABOUT        8201
                     96: 
                     97: #define MM_DRIVE_NUM    8301       // ...Through 8226, one for each drive letter
                     98:                     //   .
                     99:                     //   .
                    100:                     //  8326
                    101: 
                    102: 
                    103: //
                    104: // constants
                    105: //
                    106: #define MAIN_WIDTH          605    // Default width and height of main window
                    107: #define MAIN_HEIGHT         400
                    108: 
                    109: #define DRIVE_BITMAP_WIDTH  23     // Width and height of drive toolbar bitmaps
                    110: #define DRIVE_BITMAP_HEIGHT 14     //   assoc. w/ bitmap IDs above.
                    111: #define DRIVE_LETTER_SPACING 2     // Space between drv bmp and drv letter label
                    112: #define DRIVE_BITMAP_SPACING 6     // Space on either side of drv bitmap-labels
                    113: #define NUM_BITMAPS          8     // Number of Drive Bitmaps to be loaded.
                    114: 
                    115: #define DIRECTORY_STRING_SIZE 100  // Size of max allowable direcory path
                    116: 
                    117: #define LIST_BORDER         2      // Space between listbox and Drv child frame
                    118: 
                    119: #define DRIVE_MENU_NUM      2      // This is the 'Drives' submenu
                    120: 
                    121: #define LISTBOX_TAB_SIZE    8      // Size of the tabs in the Drv child LBs
                    122: 
                    123: #define OVER_UNDER          0      // Relative positions of Drv children
                    124: #define SIDE_BY_SIDE        1
                    125: 
                    126: #define BOLD_FONT           700    // GetDeviceCaps sez this value is for bold
                    127:                                    //   in the lfWeight LOGFONT member
                    128: 
                    129: #define NUM_EXTENSION_STRINGS   4  // Lists number of file ext. in stringtable
                    130: #define EXTENSION_LENGTH        5  // Tot. number of characters in extension,
                    131:                                    //  including '\0' char.
                    132: 
                    133: #define FILE_SYSTEM_STRING_SIZE         20      // Must be >= 8
                    134: 
                    135: #define NUM_POSSIBLE_REMOVABLE_DRIVES   26      // A-Z
                    136: 
                    137: #define MSEC_WAIT_RD                    3000    // Msecs to wait for
                    138: 
                    139: 
                    140: 
                    141: //
                    142: // Drive enumeration strucure
                    143: //
                    144: typedef struct _PerDriveInfo {
                    145:     char    DriveLetter;
                    146:     LPSTR   DriveName;
                    147:     char    FileSystem[FILE_SYSTEM_STRING_SIZE];
                    148:     UINT    DriveType;
                    149:     struct _PerDriveInfo *next;
                    150: } DRVINFO, *LPDINFO;
                    151: 
                    152: //
                    153: // Instance data for each Drv child window
                    154: //
                    155: typedef struct _PerWndInfo {
                    156:     HWND    hParent;
                    157:     HWND    hTextWnd;
                    158:     HWND    hwndLL;
                    159:     HWND    hwndLR;
                    160:     HANDLE  hDirThread;
                    161:     BOOL    fAlive;
                    162:     CRITICAL_SECTION    CritSecL;
                    163:     CRITICAL_SECTION    CritSecR;
                    164:     LPDINFO lpDriveInfo;
                    165:     CHAR    CaptionBarText[DIRECTORY_STRING_SIZE];
                    166: } DRVCHILDINFO, *LPCINFO;
                    167: 
                    168: typedef struct _PerButtonInfo {
                    169:     HANDLE          hButton;
                    170:     BOOL            fButtonDown;
                    171:     LPDINFO         lpDrive;
                    172:     struct _PerButtonInfo  *next;
                    173: }   BINFO, *LPBINFO;
                    174: 
                    175: typedef struct _SelectDlgInfo {
                    176:     HWND    hwnd;
                    177:     DWORD   dwAction;
                    178:     LPSTR   szAction;
                    179:     LPSTR   szToFrom;
                    180: } SELECTINFO, *LPSINFO;

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.