home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast.iso / pcmag / vol12n13.zip / FIND.ZIP / FINSRC.ZIP / FIND.H < prev    next >
C/C++ Source or Header  |  1993-05-02  |  2KB  |  76 lines

  1. //===========================================================
  2. // FIND.H -- Header File 
  3. // Copyright (c) 1993 Douglas Boling
  4. //===========================================================
  5. //-----------------------------------------------------------
  6. // Generic defines and data types
  7. //-----------------------------------------------------------
  8. #if !defined(WIN32)
  9.   #define WIN16     TRUE
  10.   #define WIN31
  11.  
  12.   #define INT       int
  13.   #define UINT      WORD
  14.   #define APIENTRY  PASCAL
  15.   #define WNDPROC   FARPROC
  16. #else
  17.   #define WIN16     FALSE
  18. #endif
  19.  
  20. struct decodeUINT {                         // structure associates
  21.     UINT Code;                              // messages 
  22.     LONG (*Fxn)(HWND, UINT, UINT, LONG);    // with a function
  23. }; 
  24. struct decodeCMD {
  25.     UINT Code;
  26.     LONG (*Fxn)(HWND, UINT, HWND, UINT);
  27. };
  28. //struct decodeDLG {
  29. //   UINT Code;
  30. //    BOOL (*Fxn)(HWND, UINT, UINT, LONG);
  31. //}; 
  32. struct decodeFMEXT {
  33.     UINT Code;
  34.     LONG (*Fxn)(HWND, UINT, LONG);
  35. };
  36.  
  37. typedef struct find_t FIND_T;
  38. //
  39. // Function prototypes used by generic template
  40. //
  41. INT  APIENTRY WinMain(HANDLE, HANDLE, LPSTR, INT);
  42. INT  InitApp(HANDLE);
  43. INT  InitInstance(HANDLE, LPSTR, INT);
  44. INT  TermInstance(HANDLE, INT);
  45. LONG CALLBACK MainWndProc(HWND, UINT, UINT, LONG);
  46. BOOL CALLBACK AboutDlgProc (HWND, UINT, UINT, LONG);
  47. INT  MyDisplayDialog (HINSTANCE, LPCSTR, HWND, WNDPROC, LPARAM);
  48. BOOL MyWritePrivateProfileInt (char *, char *, int, int, char *);
  49. //
  50. // Profile String Names
  51. //
  52. #define     PRO_CASE     "ChkCase"
  53. #define     PRO_INC      "IncFlags"
  54. #define     PRO_CHKDIRS  "ChkDirs"
  55. #define     PRO_MENUNAME "MenuName"
  56. //
  57. // Resource Idendifiers.  Additions to the File Manager 
  58. // menu items must range from 1 to 99.
  59. //
  60. #define     IDM_FIND       1
  61. #define     IDM_FFIND      2
  62. #define     IDM_ABOUT      3
  63.  
  64. #define     IDD_SRCHTEXT   201
  65. #define     IDD_FILESPEC   202
  66. #define     IDD_OUTLIST    203
  67. #define     IDD_NOCHKCASE  204
  68. #define     IDD_RECURSE    205
  69. #define     IDD_FIND       206
  70. #define     IDD_CONFIG     207
  71.  
  72. #define     IDD_INCRDONLY  301
  73. #define     IDD_INCARC     302
  74. #define     IDD_INCHIDDEN  303
  75. #define     IDD_INCSYSTEM  304
  76.