home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / sysmgmt / setup / infinst / infdesc.h < prev    next >
C/C++ Source or Header  |  1997-10-05  |  2KB  |  63 lines

  1.  
  2. /******************************************************************************\
  3. *       This is a part of the Microsoft Source Code Samples. 
  4. *       Copyright (C) 1995-1997 Microsoft Corporation.
  5. *       All rights reserved. 
  6. *       This source code is only intended as a supplement to 
  7. *       Microsoft Development Tools and/or WinHelp documentation.
  8. *       See these sources for detailed information regarding the 
  9. *       Microsoft samples programs.
  10. \******************************************************************************/
  11.  
  12. //Header file for inf specific data
  13.  
  14. //
  15. // SetupApi helpers for the main exe
  16. // implemented in doinst.c
  17. //
  18. BOOL DoInstallation(HWND, INSTALLINFO*);
  19.  
  20. //
  21. // These are the custom DirIds for the inf
  22. // Doinst.c maps real install time strings
  23. // to these numbers.
  24. //
  25. // The ids are mapped exactly to the numbers in the inf
  26. // custom ids must be > 65536 (decimal)
  27. // 
  28. // I have chosen 65600 as a starting number at random
  29. //
  30. #define DESTINATION_DIR     65600
  31.  
  32. //
  33. // optional inf section names, in this sample these
  34. // are not platform speific -- like MS Word templates for examples
  35. //
  36. #define INF_OPTION2         TEXT("Option2Section")
  37. #define INF_OPTION3         TEXT("Option3Section")
  38. #define INF_OPTION4         TEXT("Option4Section")
  39.  
  40. //
  41. // Main inf section name, in this sample this
  42. // is platform speific -- say the executables for your
  43. // application
  44. //
  45. #ifdef _ALPHA_
  46. #define INF_OPTION1         TEXT("ProductInstall.Alpha")
  47. #else
  48.  
  49. #ifdef  _MIPS_
  50. #define INF_OPTION1         TEXT("ProductInstall.Mips")
  51. #else
  52.  
  53. #ifdef  _PPC_
  54. #define INF_OPTION1         TEXT("ProductInstall.PPC")
  55.  
  56. #else // default to X86
  57. #define INF_OPTION1         TEXT("ProductInstall")
  58. #endif
  59. #endif
  60. #endif
  61.  
  62.  
  63.