<!-- <?xml version="1.0" encoding="UTF-16"?> -->
<instrumentationManifest xsi:schemaLocation="http://schemas.microsoft.com/win/2004/08/events eventman.xsd" 
	xmlns:win="http://manifests.microsoft.com/win/2004/08/windows/events" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	xmlns:xs="http://www.w3.org/2001/XMLSchema" 
	xmlns:trace="http://schemas.microsoft.com/win/2004/08/events/trace">

	<!--
		This manifest file defines the perf counters for oabgen, using the V2 performance counter
		API (introduced in Windows Server 2008.)  For an overview of V2 perf counters, see
		http://msdn.microsoft.com/en-us/library/aa965334(VS.85).aspx

		If you need to update the counters, then follow these steps:
		
		1) Update this manifest file
		2) Check out oabgenperfctrs.c, oabgenperfctrs.h, and dsa\loc\usa\oabgenperfctrs.rc
		3) Run the CTRPP.EXE tool to generate the .c, .h, and .rc files
		3) Move the generated .rc file to dsa\loc\usa
		4) Make any necessary changes to oabgen.cxx
		5) Build and test

		Note that this manifest file is copied to the Exchange server by setup, and
		lodctr /m is run against it in the script file sa_reg.ins.
	-->

	<instrumentation>

		<counters xmlns="http://schemas.microsoft.com/win/2005/12/counters">

			<provider applicationIdentity="oabgen.dll"
				providerType="userMode"
				providerGuid="{0626E534-4C7D-45b6-95DE-D870D998F950}">

				<counterSet guid="{03937E33-C7BF-4e7e-87A3-6BB22C7ABF7D}"
					uri="Microsoft.Exchange.OabGen.Perfcounters"
					name="$(string.OabGenCounterSet.Name)"
					description="$(string.OabGenCounterSet.Description)"
					instances="single">

					<counter id="1"
						uri="Microsoft.Exchange.OabGen.Perfcounters.TimeSpentInOabgen.Base"
						type="perf_large_raw_base"
						detailLevel="standard"
						defaultScale="0">
						<counterAttributes>
							<counterAttribute name="noDisplay" />
						</counterAttributes>
					</counter>

					<counter id="2"
						uri="Microsoft.Exchange.OabGen.Perfcounters.TimeSpentInOabgen"
						name="$(string.OabGenCounterSet.TimeSpentInOabgen.Name)"
						description="$(string.OabGenCounterSet.TimeSpentInOabgen.Description)"
						type="perf_large_raw_fraction"
						baseId="1"
						detailLevel="standard"
						defaultScale="0" />

					<counter id="3"
						uri="Microsoft.Exchange.OabGen.Perfcounters.TimeSpentInFutileOabgen"
						name="$(string.OabGenCounterSet.TimeSpentInFutileOabgen.Name)"
						description="$(string.OabGenCounterSet.TimeSpentInFutileOabgen.Description)"
						type="perf_large_raw_fraction"
						baseId="1"
						detailLevel="standard"
						defaultScale="0" />

				</counterSet>

			</provider>

		</counters>

	</instrumentation>

	<localization>

		<resources culture="en-US">

			<stringTable>

				<string id="OabGenCounterSet.Name" value="MSExchangeOABGEN" />
				<string id="OabGenCounterSet.Description" value="Performance counters that moniter the OAB generation process" />
				<string id="OabGenCounterSet.TimeSpentInOabgen.Name" value="% of Uptime in OABGEN" />
				<string id="OabGenCounterSet.TimeSpentInOabgen.Description" value="The percentage of the total service uptime spent generating OABs" />
				<string id="OabGenCounterSet.TimeSpentInFutileOabgen.Name" value="% of Uptime in Wasted OABGEN" />
				<string id="OabGenCounterSet.TimeSpentInFutileOabgen.Description" value="The percentage of the total service uptime spent generating OABs that turned out to have no changes" />

			</stringTable>

		</resources>

	</localization>

</instrumentationManifest>
