Source code of Windows XP (NT5)
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.

130 lines
1.7 KiB

  1. #ifndef _WINSTMM_
  2. #define _WINSTMM_
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /*++
  7. Copyright (c) 1989 Microsoft Corporation
  8. Module Name:
  9. winstmm.h
  10. Abstract:
  11. This is the header file for calling winstmm.c functions
  12. Functions:
  13. Portability:
  14. This header is portable.
  15. Author:
  16. Pradeep Bahl (PradeepB) Feb-1993
  17. Revision History:
  18. Modification Date Person Description of Modification
  19. ------------------ ------- ---------------------------
  20. --*/
  21. /*
  22. includes
  23. */
  24. #include "wins.h"
  25. #include "winsque.h"
  26. #include "nmsdb.h"
  27. /*
  28. defines
  29. */
  30. #define PAD 10
  31. #define WINSTMM_MAX_SET_TMM_REQS NMSDB_MAX_OWNERS_INITIALLY + PAD //use a pad
  32. #if (WINSTMM_MAX_SET_TMM_REQS < NMSDB_MAX_OWNERS_INITIALLY + PAD)
  33. #error("Your WINSTMM_MAX_SET_TMM_REQS is not set properly:)
  34. #endif
  35. /*
  36. macros
  37. */
  38. /*
  39. externs
  40. */
  41. extern HANDLE WinsTmmHeapHdl;
  42. /*
  43. typedef definitions
  44. */
  45. //
  46. // structure used to keep track of handles to set timer requests made
  47. // by a component
  48. //
  49. //
  50. FUTURES("Use this in the future")
  51. typedef struct _WINSTMM_TIMER_REQ_ACCT_T {
  52. DWORD NoOfSetTimeReqs;
  53. LPDWORD pSetTimeReqHdl;
  54. } WINSTMM_TIMER_REQ_ACCT_T, *PWINSTMM_TIMER_REQ_ACCT_T;
  55. /*
  56. function declarations
  57. */
  58. extern
  59. VOID
  60. WinsTmmInsertEntry(
  61. PQUE_TMM_REQ_WRK_ITM_T pPassedWrkItm,
  62. WINS_CLIENT_E Client_e,
  63. QUE_CMD_TYP_E CmdTyp_e,
  64. BOOL fResubmit,
  65. time_t AbsTime,
  66. DWORD TimeInt,
  67. PQUE_HD_T pRspQueHd,
  68. LPVOID pClientCtx,
  69. DWORD MagicNo,
  70. PWINSTMM_TIMER_REQ_ACCT_T pSetTimerReqs //not used currently
  71. );
  72. extern
  73. VOID
  74. WinsTmmInit(
  75. VOID
  76. );
  77. //
  78. // called when reconfiguring WINS
  79. //
  80. extern
  81. VOID
  82. WinsTmmDeleteReqs(
  83. WINS_CLIENT_E WinsClient_e
  84. );
  85. extern
  86. VOID
  87. WinsTmmDeallocReq(
  88. PQUE_TMM_REQ_WRK_ITM_T pWrkItm
  89. );
  90. #ifdef __cplusplus
  91. }
  92. #endif
  93. #endif