Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
1.3 KiB

  1. /*
  2. * inifile.h - Initialization file processing module description.
  3. */
  4. /* Types
  5. ********/
  6. #ifdef DEBUG
  7. /* .ini switch types */
  8. typedef enum _iniswitchtype
  9. {
  10. IST_BOOL,
  11. IST_DEC_INT,
  12. IST_UNS_DEC_INT
  13. }
  14. INISWITCHTYPE;
  15. DECLARE_STANDARD_TYPES(INISWITCHTYPE);
  16. /* boolean .ini switch */
  17. typedef struct _booliniswitch
  18. {
  19. INISWITCHTYPE istype; /* must be IST_BOOL */
  20. LPCTSTR pcszKeyName;
  21. PDWORD pdwParentFlags;
  22. DWORD dwFlag;
  23. }
  24. BOOLINISWITCH;
  25. DECLARE_STANDARD_TYPES(BOOLINISWITCH);
  26. /* decimal integer .ini switch */
  27. typedef struct _decintiniswitch
  28. {
  29. INISWITCHTYPE istype; /* must be IST_DEC_INT */
  30. LPCTSTR pcszKeyName;
  31. PINT pnValue;
  32. }
  33. DECINTINISWITCH;
  34. DECLARE_STANDARD_TYPES(DECINTINISWITCH);
  35. /* unsigned decimal integer .ini switch */
  36. typedef struct _unsdecintiniswitch
  37. {
  38. INISWITCHTYPE istype; /* must be IST_UNS_DEC_INT */
  39. LPCTSTR pcszKeyName;
  40. PUINT puValue;
  41. }
  42. UNSDECINTINISWITCH;
  43. DECLARE_STANDARD_TYPES(UNSDECINTINISWITCH);
  44. #endif
  45. /* Global Variables
  46. *******************/
  47. #ifdef DEBUG
  48. /* defined by client */
  49. extern LPCTSTR GpcszIniFile;
  50. extern LPCTSTR GpcszIniSection;
  51. #endif
  52. /* Prototypes
  53. *************/
  54. #ifdef DEBUG
  55. /* inifile.c */
  56. extern BOOL SetIniSwitches(const PCVOID *, UINT);
  57. #endif