网站首页  词典首页

请输入您要查询的函数:

 

术语 pdhselectdatasource
释义 PdhSelectDataSource
语法:
C++
PDH_STATUS PdhSelectDataSource(
__in HWND hWndOwner,
__in DWORD dwFlags,
__out LPTSTR szDataSource,
__inout LPDWORD pcchBufferLength
);
PdhSelectDataSource功能
显示一个对话窗口,提示用户指定的性能数据源。
参数
hWndOwner [in]
所有者对话框的窗口。这可以为NULL,如果没有所有者(桌面成为所有者)。
dwFlags [in]
对话框,将显示提示数据源。此参数可以是下列值之一。
ValueMeaning
PDH_FLAGS_FILE_BROWSER_ONLYDisplay文件浏览器只。此标志设置当您想要的名称和位置提示日志文件只。
0Display数据源选择对话框。该对话框允许,无论是从日志文件或实时源用户选择性能数据。如果用户指定的数据是从一个日志文件,一个文件浏览器显示出来供用户指定名称和日志文件的位置收集。
szDataSource [out]
来电分配的缓冲区,它接收一个空结束的字符串,其中包含一个日志文件的用户的名称。日志文件的名称被截断为缓冲区的大小,如果缓冲区太小。
如果用户选择了实时来源,缓冲区是空的。
pcchBufferLength [ in , out ]
最大规模的szDataSource缓冲区,在TCHARs。
返回值
如果函数成功,它返回ERROR_SUCCESS。
如果函数失败,返回值是一个系统错误代码或一种PDH错误代码。以下是可能的值。
返回codeDescription
PDH_INVALID_ARGUMENTThe长度在pcchBufferLength不等于对szDataSource缓冲区的实际长度通过缓冲区。
PDH_MEMORY_ALLOCATION_FAILUREA零长度缓冲区的议案获得通过szDataSource参数。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderPdh.h
LibraryPdh.lib
DLLPdh.dll
Unicode和ANSI namesPdhSelectDataSourceW(Unicode)和PdhSelectDataSourceA(ANSI)的
参见
PdhIsRealTimeQuery
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月23日
==英文原文==PdhSelectDataSource Function
Displays a dialog window that prompts the user to specify the source of the performance data.
Syntax
C++
PDH_STATUS PdhSelectDataSource(
__in HWND hWndOwner,
__in DWORD dwFlags,
__out LPTSTR szDataSource,
__inout LPDWORD pcchBufferLength
);
Parameters
hWndOwner [in]
Owner of the dialog window. This can be NULL if there is no owner (the desktop becomes the owner).
dwFlags [in]
Dialog boxes that will be displayed to prompt for the data source. This parameter can be one of the following values.
ValueMeaning
PDH_FLAGS_FILE_BROWSER_ONLYDisplay the file browser only. Set this flag when you want to prompt for the name and location of a log file only.
0Display the data source selection dialog box. The dialog box lets the user select performance data from either a log file or a real-time source. If the user specified that data is to be collected from a log file, a file browser is displayed for the user to specify the name and location of the log file.

szDataSource [out]
Caller-allocated buffer that receives a null-terminated string that contains the name of a log file that the user selected. The log file name is truncated to the size of the buffer if the buffer is too small.
If the user selected a real time source, the buffer is empty.
pcchBufferLength [in, out]
Maximum size of the szDataSource buffer, in TCHARs.
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 . The following are possible values.
Return codeDescription
PDH_INVALID_ARGUMENTThe length of the buffer passed in the pcchBufferLength is not equal to the actual length of the szDataSource buffer.
PDH_MEMORY_ALLOCATION_FAILUREA zero-length buffer was passed in the szDataSource parameter.

Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderPdh.h
LibraryPdh.lib
DLLPdh.dll
Unicode and ANSI namesPdhSelectDataSourceW (Unicode) and PdhSelectDataSourceA (ANSI)
See Also
PdhIsRealTimeQuery
Send comments about this topic to Microsoft
Build date: 7/23/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa372669(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:16:10