网站首页  词典首页

请输入您要查询的函数:

 

术语 gettraceenableflags
释义 GetTraceEnableFlags
语法:
C++
ULONG GetTraceEnableFlags(
__in TRACEHANDLE SessionHandle
);
GetTraceEnableFlags功能
该GetTraceEnableFlags函数检索使国旗控制器通过,表明哪些类别的事件跟踪。
供应商只能从他们ControlCallback调用这个函数的功能。
参数
SessionHandle [in]
处理的事件跟踪会话,通过调用GetTraceLoggerHandle函数获得。
返回值
返回值参数的EnableFlag时指定调用EnableTrace功能控制器。
如果要判断函数失败或控制器,使标志设置为0,请按照下列步骤:
调用SetLastError函数来设置最后一个错误的ERROR_SUCCESS。
调用GetTraceEnableFlags函数来检索,使标志。
如果启用标志值为0,调用GetLastError函数来检索最后一个已知的错误。
如果最近一次的错误ERROR_SUCCESS,控制器设置为0,使旗,否则,该函数的最后为人所知的失败,错误GetTraceEnableFlags。
备注
供应商可以使用此值来控制的事件,它生成。例如,一个供应商可以进入事件逻辑类别团体活动和使用此值来启用或禁用的生成。
实例
举一个例子,它使用GetTraceEnableFlags,看到实现一个ControlCallback功能。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderEvntrace.h
LibraryAdvapi32.lib
DLLAdvapi32.dll
参见
GetTraceEnableLevel
GetTraceLoggerHandle
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==GetTraceEnableFlags Function
The GetTraceEnableFlags function retrieves the enable flags passed by the controller to indicate which category of events to trace.
Providers can only call this function from their ControlCallback function.
Syntax
C++
ULONG GetTraceEnableFlags(
__in TRACEHANDLE SessionHandle
);
Parameters
SessionHandle [in]
Handle to an event tracing session, obtained by calling the GetTraceLoggerHandle function.
Return Value
Returns the value the controller specified in the EnableFlag parameter when calling the EnableTrace function.
To determine if the function failed or the controller set the enable flags to 0, follow these steps:
Call the SetLastError function to set the last error to ERROR_SUCCESS.
Call the GetTraceEnableFlags function to retrieve the enable flags.
If the enable flags value is 0, call the GetLastError function to retrieve the last known error.
If the last known error is ERROR_SUCCESS, the controller set the enable flags to 0; otherwise, the GetTraceEnableFlags function failed with the last known error.
Remarks
Providers can use this value to control which events that it generates. For example, a provider can group events into logical categories of events and use this value to enable or disable their generation.
Examples
For an example that uses GetTraceEnableFlags, see Implementing a ControlCallback Function .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderEvntrace.h
LibraryAdvapi32.lib
DLLAdvapi32.dll
See Also
GetTraceEnableLevel
GetTraceLoggerHandle
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa363893(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:25:45