windows-nt/Source/XPSP1/NT/admin/wmi/wbem/winmgmt/winmgmt2/resync.h
2020-09-26 16:20:57 +08:00

47 lines
824 B
C

/*++
Copyright (C) 1999-2001 Microsoft Corporation
Module Name:
RESYNC.H
Abstract:
Declares the various resync primitives.
History:
--*/
#ifndef _RESYNC_H_
#define _RESYNC_H_
typedef WINBASEAPI BOOL (WINAPI * PSETWAITABLETIMER)(
HANDLE hTimer,
const LARGE_INTEGER *lpDueTime,
LONG lPeriod,
PTIMERAPCROUTINE pfnCompletionRoutine,
LPVOID lpArgToCompletionRoutine,
BOOL fResume
);
typedef WINBASEAPI HANDLE (WINAPI * PCREATEWAITABLETIMERW)(
LPSECURITY_ATTRIBUTES lpTimerAttributes,
BOOL bManualReset,
LPCWSTR lpTimerName
);
typedef struct
{
HANDLE m_hTerminate;
HANDLE m_hWaitableTimer;
CRITICAL_SECTION* m_pcs;
BOOL m_fFullDredge;
BOOL m_bIsLodCtr;
} RESYNCPERFDATASTRUCT;
void ResyncPerf( HANDLE hTerminate, BOOL bIsLodCtr );
#endif