home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / frlnch.zip / source.frl / frldll.h < prev    next >
C/C++ Source or Header  |  1995-03-09  |  2KB  |  60 lines

  1. /*
  2.    FreeLaunch InstallationDll header (c) Thomas Blummer 1995
  3.    $Id: frldll.h 1.2 1995/03/09 22:28:22 thomas Exp $
  4. */
  5. #ifndef _FRLDLL_
  6. #define _FRLDLL_
  7.  
  8. #define INCL_WIN
  9. #include <os2.h>
  10.  
  11. /*
  12. **      This entry is called by FreeLaunch
  13. **      Parameters :
  14. **                hab : Anchor Block
  15. **                frame : Window handle of the top level frame
  16. **                state : one of the FLST_ macros below
  17. **                dir : installation directory
  18. **                param : additional parameter to the state if required.
  19. **      Return Values :
  20. **              TRUE : all right.
  21. **              FALSE : see per state below.
  22. */ 
  23.  
  24. BOOL _System frlentry (HAB hab, HWND frame, ULONG state, const char *dir, ULONG param);
  25.  
  26. typedef BOOL (_System FRLENTRY)(HAB, HWND, ULONG, const char *, ULONG);
  27. typedef FRLENTRY *PFRLENTRY;
  28.  
  29. /* 
  30. ** frlentry is called with this state AFTER FreeLaunch completed
  31. ** the installation procedure.
  32. ** This entry is NOT called if FreeLaunch failed to install the product.
  33. ** const char *dir : ASCIZ destination directory
  34. ** ULONG param : combination of the FLP_ macros below
  35. ** Return value : no matter.
  36. */
  37. #define FLST_INSTALLDONE 1
  38.  
  39.  
  40. /*
  41. ** flrentry is called with this state BEFORE FreeLaunch attempts to remove the product. 
  42. ** const char *dir : ASCIZ installation directory
  43. ** ULONG param : combination of the FLDONE_ macros
  44. ** return value : FALSE stop removal.
  45. */
  46. #define FLST_REMOVESTART 2
  47.  
  48. /*
  49. ** Macros for param
  50. ** they represent the options the user requested.
  51. */
  52. #define FLP_CONFIG     0x00000001
  53. #define FLP_DESKTOP    0x00000002
  54. #define FLP_INI        0x00000004
  55. #define FLP_ALLFILES   0x00000008
  56. #define FLP_OLDERFILES 0x00000010
  57. #define FLP_KEEPFILES  0x00000020
  58.  
  59. #endif /* _FRLDLL_ */
  60.