Annotation of mstools/h/wfext.h, revision 1.1.1.2

1.1       root        1: /*****************************************************************************\
                      2: *                                                                             *
                      3: * wfext.h -     Windows File Manager Extensions definitions (Win32 variant)   *
                      4: *                                                                             *
                      5: *               Version 3.10                                                  *
                      6: *                                                                             *
1.1.1.2 ! root        7: *               Copyright (c) 1991-1993, Microsoft Corp. All rights reserved. *
1.1       root        8: *                                                                             *
                      9: *******************************************************************************/
                     10: 
                     11: #ifndef _INC_WFEXT
                     12: #define _INC_WFEXT            /* #defined if wfext.h has been included */
                     13: 
                     14: #ifdef __cplusplus            /* Assume C declaration for C++ */
                     15: extern "C" {
                     16: #endif  /* __cplusplus */
                     17: 
                     18: #define MENU_TEXT_LEN           40
                     19: 
                     20: #define FMMENU_FIRST            1
                     21: #define FMMENU_LAST             99
                     22: 
                     23: #define FMEVENT_LOAD            100
                     24: #define FMEVENT_UNLOAD          101
                     25: #define FMEVENT_INITMENU        102
                     26: #define FMEVENT_USER_REFRESH    103
                     27: #define FMEVENT_SELCHANGE       104
                     28: #define FMEVENT_TOOLBARLOAD     105
1.1.1.2 ! root       29: #define FMEVENT_HELPSTRING      106
        !            30: #define FMEVENT_HELPMENUITEM    107
1.1       root       31: 
                     32: #define FMFOCUS_DIR             1
                     33: #define FMFOCUS_TREE            2
                     34: #define FMFOCUS_DRIVES          3
                     35: #define FMFOCUS_SEARCH          4
                     36: 
                     37: #define FM_GETFOCUS           (WM_USER + 0x0200)
                     38: #define FM_GETDRIVEINFO       (WM_USER + 0x0201)
                     39: #define FM_GETSELCOUNT        (WM_USER + 0x0202)
                     40: #define FM_GETSELCOUNTLFN     (WM_USER + 0x0203)  /* LFN versions are odd */
                     41: #define FM_GETFILESEL         (WM_USER + 0x0204)
                     42: #define FM_GETFILESELLFN      (WM_USER + 0x0205)  /* LFN versions are odd */
                     43: #define FM_REFRESH_WINDOWS    (WM_USER + 0x0206)
                     44: #define FM_RELOAD_EXTENSIONS  (WM_USER + 0x0207)
                     45: 
                     46: 
                     47: typedef struct _FMS_GETFILESEL {
                     48:    FILETIME ftTime ;
                     49:    DWORD dwSize;
                     50:    BYTE bAttr;
                     51:    CHAR  szName[260];               // always fully qualified
                     52: } FMS_GETFILESEL, FAR *LPFMS_GETFILESEL;
                     53: 
                     54: typedef struct _FMS_GETDRIVEINFO {       // for drive
                     55:    DWORD dwTotalSpace;
                     56:    DWORD dwFreeSpace;
                     57:    CHAR  szPath[260];                    // current directory
                     58:    CHAR  szVolume[14];                   // volume label
                     59:    CHAR  szShare[128];                   // if this is a net drive
                     60: } FMS_GETDRIVEINFO, FAR *LPFMS_GETDRIVEINFO;
                     61: 
                     62: typedef struct _FMS_LOAD {
                     63:    DWORD dwSize;                        // for version checks
                     64:    CHAR  szMenuName[MENU_TEXT_LEN];     // output
                     65:    HMENU hMenu;                         // output
                     66:    UINT  wMenuDelta;                    // input
                     67: } FMS_LOAD, FAR *LPFMS_LOAD;
                     68: 
                     69: 
                     70: // Toolbar definitions
                     71: 
                     72: typedef struct tagEXT_BUTTON {
                     73:    WORD idCommand;                 /* menu command to trigger */
                     74:    WORD idsHelp;                   /* help string ID */
                     75:    WORD fsStyle;                   /* button style */
                     76: } EXT_BUTTON, FAR *LPEXT_BUTTON;
                     77: 
                     78: typedef struct tagFMS_TOOLBARLOAD {
                     79:    DWORD dwSize;                   /* for version checks */
                     80:    LPEXT_BUTTON lpButtons;         /* output */
                     81:    WORD cButtons;                  /* output, 0==>no buttons */
                     82:    WORD cBitmaps;                  /* number of non-sep buttons */
                     83:    WORD idBitmap;                  /* output */
1.1.1.2 ! root       84:    HBITMAP hBitmap;                /* output if idBitmap==0 */
1.1       root       85: } FMS_TOOLBARLOAD, FAR *LPFMS_TOOLBARLOAD;
                     86: 
1.1.1.2 ! root       87: typedef struct tagFMS_HELPSTRING
        !            88: {
        !            89:    INT   idCommand;       /* input, -1==>the menu was selected */
        !            90:    HMENU hMenu;           /* input, the extensions menu */
        !            91:    CHAR  szHelp[128];     /* output, the help string */
        !            92: } FMS_HELPSTRING, FAR *LPFMS_HELPSTRING;
        !            93: 
1.1       root       94: typedef DWORD (APIENTRY *FM_EXT_PROC)(HWND, WORD, LONG);
                     95: typedef DWORD (APIENTRY *FM_UNDELETE_PROC)(HWND, LPSTR);
                     96: 
                     97: LONG WINAPI FMExtensionProc(HWND hwnd, WORD wEvent, LONG lParam);
                     98: 
                     99: #ifdef __cplusplus
                    100: }                  /* End of extern "C" { */
                    101: #endif             /* __cplusplus */
                    102: 
                    103: #endif             /* _INC_WFEXT */
                    104: 

unix.superglobalmegacorp.com

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