Windows NT 4.0 source code leak
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.

121 lines
4.0 KiB

4 years ago
  1. #ifndef HC_H
  2. #include "hc.h"
  3. #endif
  4. #ifndef _FC_H
  5. #define _FC_H
  6. #define RAWHIDE
  7. /*****************************************************************************
  8. * *
  9. * FC.H *
  10. * *
  11. * Copyright (C) Microsoft Corporation 1990. *
  12. * All Rights reserved. *
  13. * *
  14. ******************************************************************************
  15. * *
  16. * Module Intent *
  17. * *
  18. * Exports the FC manager function calls. *
  19. * *
  20. ******************************************************************************
  21. * *
  22. * Testing Notes *
  23. * *
  24. ******************************************************************************
  25. * *
  26. * Current Owner: KevynCT *
  27. * *
  28. ******************************************************************************
  29. * *
  30. * Released by Development: *
  31. * *
  32. *****************************************************************************/
  33. /*****************************************************************************
  34. *
  35. * Revision History: Created by RobertBu
  36. *
  37. * 10/29/90 RobertBu Added pszEntryMacro to the TOP structure
  38. * 11/04/90 Tomsn Use new VA address type (enabling zeck compression).
  39. * 02/04/91 Maha changed ints to INT
  40. *
  41. *****************************************************************************/
  42. /*****************************************************************************
  43. * *
  44. * Typedefs *
  45. * *
  46. *****************************************************************************/
  47. typedef HANDLE HFC; // Handle to a full context
  48. typedef HANDLE HHF; // Help file handle
  49. typedef struct {
  50. int cbTopic; /* Length of the topic. This field
  51. * will be -1 until the first call to
  52. * CbTopicQde() (where it is initialized).
  53. */
  54. BOOL fITO; /* TRUE if next and prev are given by ITO, */
  55. /* FALSE if they are PAs (temporary: FCLs) */
  56. MTOP mtop; /* MTOP structure, containing next and prev */
  57. /* values, as well as the unique ID. */
  58. PSTR pszTitle; // Handle to title data
  59. int cbTitle; // Size of title
  60. PSTR pszEntryMacro; /* Macro to execute on entry to topic */
  61. VA vaCurr; /* The VA which was asked for when this TOP
  62. * struct was filled with HfcNear. We use this
  63. * value to determine which layout sub-region
  64. * we are in (NSR or SR) when printing or
  65. * doing anything where looking at the DE type
  66. * will not tell us what sub-region we are in.
  67. */
  68. } TOP, *QTOP;
  69. /*****************************************************************************
  70. * *
  71. * Defines *
  72. * *
  73. *****************************************************************************/
  74. #define FC_CLEAR
  75. #define FC_MIDDLE 0
  76. #define FC_FIRST 1
  77. #define FC_LAST 2
  78. #define FC_UNDEF 4
  79. #define FC_ERROR 8
  80. #define FCNULL 0L
  81. #define hhfNil (HANDLE) 0 // Nil help file handle
  82. #define tnNil (TN) 0
  83. #define HfcNear(qde, vaPos, qtop, hphr, qwErr) \
  84. HfcFindPrevFc(qde, vaPos, qtop, hphr, qwErr)
  85. #define HfcNextHfc(hfc, qwErr, qde, vaMarkTop, vaMarkBottom) \
  86. HfcNextPrevHfc(hfc, TRUE, qde, qwErr, vaMarkTop, vaMarkBottom)
  87. #define HfcPrevHfc(hfc, qwErr, qde, vaMarkTop, vaMarkBottom) \
  88. HfcNextPrevHfc(hfc, FALSE, qde, qwErr, vaMarkTop, vaMarkBottom)
  89. /*****************************************************************************
  90. * *
  91. * Prototypes *
  92. * *
  93. *****************************************************************************/
  94. VOID STDCALL UnlockHfc (HFC);
  95. VOID STDCALL FreeHfc (HFC);
  96. VOID STDCALL CloseHhf (HHF);
  97. int STDCALL TnNextHhf (HFC, int);
  98. int STDCALL CbDiskHfc (HFC);
  99. int STDCALL CbTextHfc (HFC);
  100. VOID STDCALL FlushCache(void);
  101. #endif