Windows Dev Center

Collapse the table of content
Expand the table of content
Expand Minimize

PdhBrowseCountersH function

Displays a Browse Counters dialog box that the user can use to select one or more counters that they want to add to the query.

This function is identical to the PdhBrowseCounters function, except that it supports the use of handles to data sources.

Syntax


PDH_STATUS PdhBrowseCountersH(
  _In_ PPDH_BROWSE_DLG_CONFIG pBrowseDlgData
);

Parameters

pBrowseDlgData [in]

A PDH_BROWSE_DLG_CONFIG_H structure that specifies the behavior of the dialog box.

Return value

If the function succeeds, it returns ERROR_SUCCESS.

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

Remarks

Note that the dialog box can return PDH_DIALOG_CANCELLED if bSingleCounterPerDialog is FALSE and the user clicks the Close button, so your error handling would have to account for this.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Pdh.h

Library

Pdh.lib

DLL

Pdh.dll

Unicode and ANSI names

PdhBrowseCountersHW (Unicode) and PdhBrowseCountersHA (ANSI)

See also

PdhBindInputDataSource
PdhEnumMachinesH
PdhEnumObjectItemsH
PdhEnumObjectsH
PdhExpandWildCardPathH
PdhGetDataSourceTimeRangeH
PdhGetDefaultPerfObjectH
PdhGetDefaultPerfCounterH
PdhOpenQueryH
PDH_BROWSE_DLG_CONFIG_H

 

 

Community Additions

ADD
Show:
© 2015 Microsoft