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.

46 lines
824 B

  1. /*++
  2. Copyright (C) 1999-2001 Microsoft Corporation
  3. Module Name:
  4. RESYNC.H
  5. Abstract:
  6. Declares the various resync primitives.
  7. History:
  8. --*/
  9. #ifndef _RESYNC_H_
  10. #define _RESYNC_H_
  11. typedef WINBASEAPI BOOL (WINAPI * PSETWAITABLETIMER)(
  12. HANDLE hTimer,
  13. const LARGE_INTEGER *lpDueTime,
  14. LONG lPeriod,
  15. PTIMERAPCROUTINE pfnCompletionRoutine,
  16. LPVOID lpArgToCompletionRoutine,
  17. BOOL fResume
  18. );
  19. typedef WINBASEAPI HANDLE (WINAPI * PCREATEWAITABLETIMERW)(
  20. LPSECURITY_ATTRIBUTES lpTimerAttributes,
  21. BOOL bManualReset,
  22. LPCWSTR lpTimerName
  23. );
  24. typedef struct
  25. {
  26. HANDLE m_hTerminate;
  27. HANDLE m_hWaitableTimer;
  28. CRITICAL_SECTION* m_pcs;
  29. BOOL m_fFullDredge;
  30. BOOL m_bIsLodCtr;
  31. } RESYNCPERFDATASTRUCT;
  32. void ResyncPerf( HANDLE hTerminate, BOOL bIsLodCtr );
  33. #endif