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.
|
|
/*
- perfcommon.h - * Purpose: * Declare data structures common to both perfapp.hpp and perfdll.h * * Notes: * These structs control the layout of shared memory blocks shared * between an application and its related PerfMon Extenstion DLL. * */
#pragma once
//
// INSTREC is key portion of INSTCNTR (below)
typedef struct _instrec { BOOL fInUse; // In-Use flag
TCHAR szInstName[MAX_PATH]; // Instance Name
} INSTREC;
//
// INSTCNTR is in the Instance Counter Shared Memory Block
typedef struct _instcntr { DWORD cMaxInstRec; // Maximum # of Instances (can grow)
DWORD cInstRecInUse; // Count of Instances in Use
} INSTCNTR_DATA;
//
// INSTCNTR_ID is the index of the INSTREC in INSTCNTR_DATA
typedef DWORD INSTCNTR_ID;
#define INVALID_INST_ID (INSTCNTR_ID) -1
|