Click to Rate and Give Feedback
MSDN
MSDN Library
Diagnostics
 PerfSetCounterSetInfo Function
PerfSetCounterSetInfo Function

Specifies the layout of a particular counter set. The CTRPP tool generates the code that calls this function. The provider should not call this function directly.

Syntax

ULONG PerfSetCounterSetInfo(
  __in  HANDLE hProvider,
  __in  PPERF_COUNTERSET_INFO pTemplate,
  __in  ULONG dwTemplateSize
);

Parameters

hProvider [in]

Handle of the provider. The handle is returned by PerfStartProvider.

pTemplate [in]

Buffer that contains the counter set information. For details, see PERF_COUNTERSET_INFO.

dwTemplateSize [in]

Size, in bytes, of the pTemplate buffer.

Return Value

If the function succeeds, it returns ERROR_SUCCESS.

If the function fails, the return value is a system error code.

Remarks

This call is located in the PerfAutoInitialize function that the CTRPP tool generates on the provider's behalf.

Requirements

Client Requires Windows Vista.
Server Requires Windows Server 2008.
Header

Declared in Perflib.h.

Library

Use Advapi32.lib.

DLL

Requires Advapi32.dll.


Send comments about this topic to Microsoft

Build date: 7/17/2008

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker