home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: SysTools / SysTools.zip / insthint.zip / varsfp.h < prev   
Text File  |  1996-05-10  |  3KB  |  56 lines

  1. /*
  2. **                      SOFTWARE INSTALLER
  3. ** 5621-434 (C) COPYRIGHT IBM CORP. 1989, 1996. ALL RIGHTS RESERVED.
  4. **             LICENSED MATERIALS - PROPERTY OF IBM
  5. */
  6. /****************************************************************************/
  7. /*                                                                          */
  8. /* This file contains :                                                     */
  9. /*    constants                                                             */
  10. /*    data structures                                                       */
  11. /*    entry points                                                          */
  12. /* for the programming interfaces of the Software Installer.                */
  13. /*                                                                          */
  14. /****************************************************************************/
  15. #define PATH_DIR_LEN         128   /* max for paths */
  16. #define MAX_AUX_PATHS         18   /* max number of AUX paths supported */
  17.  
  18. /**********************************************************/
  19. /* This structure can be used to obtain the installation  */
  20. /* path information for a product installed with Software */
  21. /* Installer.  This structure would be used with the      */
  22. /* getproductdir() function to obtain the product         */
  23. /* directory information.                                 */
  24. /**********************************************************/
  25. typedef struct
  26. {
  27.   char szFilePath[PATH_DIR_LEN+1];
  28.   char szWorkPath[PATH_DIR_LEN+1];
  29.   char szAuxPath[MAX_AUX_PATHS][PATH_DIR_LEN+1];
  30. }PRODUCTDIR;
  31.  
  32.  
  33. unsigned long _System getvar (char *pszVarName, char *pszVarBuffer, unsigned long *pulBufferSize);
  34. unsigned long _System putvar (char *pszVarName, char *pszVarVal);
  35. unsigned long _System getowner(void);
  36. unsigned long _System disableentry(char *pDisabled);
  37. unsigned long _System getproductdir(char *pszProdName, char *pszProdNumber, char *pszProdFeature, PRODUCTDIR *pProductDir);
  38.  
  39.  
  40. /************************************************************
  41. ** From a user exit, to simulate having pressed the Stop
  42. ** button on the Progress dialog, use the following PM call:
  43. **    WinPostMsg(
  44. **       hWndProgress,
  45. **       WM_COMMAND,
  46. **       (MPARAM) ID_PROGRESS_STOP_BUTTON,
  47. **       (MPARAM) NULL);
  48. ** Use the getowner() function to get the handle of the
  49. ** progress dialog (hWndProgress).
  50. **
  51. ** By doing this call, an exit will be able to stop the
  52. ** installation.
  53. ************************************************************/
  54. #define  ID_PROGRESS_STOP_BUTTON  602  /* Window ID of Stop button on */
  55.                                        /* the Progress dialog         */
  56.