Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PerfSetCounterSetInfo function

Specifies the layout of a particular counter set.

Syntax


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

Parameters

hProvider [in]

The handle of the provider. Use the handle variable that the CTRPP tool generated for you. For the name of the variable, see the symbol attribute of the provider element.

Windows Vista:  The PerfStartProvider function returns the handle.

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

The CounterInitialize function calls this function; do not call this function directly.

Windows Vista:  The PerfAutoInitialize function calls this function.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Perflib.h

Library

Advapi32.lib

DLL

Advapi32.dll

 

 

Community Additions

Show:
© 2014 Microsoft