windows-nt/Source/XPSP1/NT/admin/controls/smonctrl/appmema.h

64 lines
967 B
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
/*++
Copyright (C) 1995-1999 Microsoft Corporation
Module Name:
appmema.h
Abstract:
application memory performance counter definitions
--*/
#ifndef _APPMEMA_H_
#define _APPMEMA_H_
#ifdef __cplusplus
extern "C" {
#endif
#ifdef DO_TIMING_BUILD
#include ".\perfdll\perfdll\appmemi.h"
extern struct _APPMEM_DATA_HEADER *pDataHeader;
extern struct _APPMEM_INSTANCE *pAppData;
#define IncrementAppPerfDwordData(dwItemId) pAppData->DwordData[dwItemId]++;
BOOL
__stdcall
AppPerfOpen(HINSTANCE hInstance);
BOOL
__stdcall
AppPerfClose(HINSTANCE hInstance);
void
UpdateAppPerfTimeData (
DWORD dwItemId,
DWORD dwStage
);
void
UpdateAppPerfDwordData (
DWORD dwItemId,
DWORD dwValue
);
#else
// a regular build
#define AppPerfOpen(x)
#define AppPerfClose(x)
#define UpdateAppPerfTimeData(x,y)
#define UpdateAppPerfDwordData(x,y)
#define IncrementAppPerfDwordData(x)
#endif
#ifdef __cplusplus
}
#endif
#endif // _APPMEMA_H_