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