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.

108 lines
1.7 KiB

  1. #ifndef _RPLPUSH_
  2. #define _RPLPUSH_
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /*++
  7. Copyright (c) 1989 Microsoft Corporation
  8. Module Name:
  9. rplpush.h
  10. Abstract:
  11. Functions:
  12. Portability:
  13. This header is portable.
  14. Author:
  15. Pradeep Bahl (PradeepB) Jan-1993
  16. Revision History:
  17. Modification Date Person Description of Modification
  18. ------------------ ------- ---------------------------
  19. --*/
  20. /*
  21. includes
  22. */
  23. #include "wins.h"
  24. /*
  25. defines
  26. */
  27. /*
  28. macros
  29. */
  30. //
  31. // If NmsNmhMyMaxVersNo counter is > 0, check if we need to
  32. // send Push notifications at init time. If no, initialize
  33. // all push records such that their LastVersNo field (the version
  34. // number sent last to Pull Pnrs) is set to the counter value
  35. // Note: default value of WinsCnf.InitTimePush is 0. It will
  36. // therefore be set to 1 only if there are PUSH records in the
  37. // registry with valid UpdateCount field values.
  38. //
  39. //
  40. //
  41. FUTURES("Init time push should also be to addresses with invalid or no upd cnt")
  42. FUTURES("Modify ERplPushProc")
  43. #define RPLPUSH_INIT_PUSH_RECS_M(pWinsCnf) \
  44. { \
  45. if (LiGtrZero(NmsNmhMyMaxVersNo)) \
  46. { \
  47. if ( \
  48. ((pWinsCnf)->PushInfo.InitTimePush == 0) && \
  49. ((pWinsCnf)->PushInfo.NoPushRecsWValUpdCnt != 0)\
  50. ) \
  51. { \
  52. WinsCnfSetLastUpdCnt((pWinsCnf)); \
  53. } \
  54. } \
  55. }
  56. /*
  57. externs
  58. */
  59. extern HANDLE RplPushCnfEvtHdl;
  60. extern BOOL fRplPushThdExists;
  61. /*
  62. typedef definitions
  63. */
  64. /*
  65. function declarations
  66. */
  67. extern DWORD RplPushInit(LPVOID);
  68. #ifdef __cplusplus
  69. }
  70. #endif
  71. #endif //_RPLPUSH_