WppRecorderConfigure 宏 (wpprecorder.h)

WppRecorderConfigure 方法启用或禁用 WPP 打印到的默认日志。

语法

__drv_maxIRQL(PASSIVE_LEVEL)
VOID WppRecorderConfigure(
    _In_         PRECORDER_CONFIGURE_PARAMS  ConfigureParams
    );

参数

ConfigureParams

指向调用方分配 RECORDER_CONFIGURE_PARAMS 结构的指针。

返回值

没有

言论

在调用 WppRecorderConfigure之前,请通过调用 RECORDER_CONFIGURE_PARAMS_INIT分配 RECORDER_CONFIGURE_PARAMS 结构并初始化。

此方法仅配置默认日志。 默认情况下,该日志处于启用状态。 如果有自定义日志,则必须通过将 CreateDefaultLog 设置为 FALSE 来禁用默认日志。

RECORDER_CONFIGURE_PARAMS                recorderConfigure;

RECORDER_CONFIGURE_PARAMS_INIT(&recorderConfigure);
// Optionally use the following line to get timestamps in WPP log entries
recorderConfigure.UseTimeStamp    = WppRecorderTrue;
// Use this line if you would like more precise timestamps (ten millionths of a second). This is valid only if you have set UseTimeStamp = WppRecorderTrue.
// recorderConfigure.PreciseTimeStamp = WppRecorderTrue
status = WppRecorderConfigure(&recorderConfigure);

有关 WPP 日志条目(包括示例日志输出)中的时间戳的详细信息,请参阅 登录跟踪记录器(IFR),了解日志记录跟踪

要求

要求 价值
目标平台 窗户
标头 wpprecorder.h