다음을 통해 공유


WppRecorderConfigure 매크로(wpprecorder.h)

WppRecorderConfigure 메서드는 WPP가 인쇄하는 기본 로그를 사용하거나 사용하지 않도록 설정합니다.

구문

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

매개 변수

ConfigureParams

호출자가 할당한 RECORDER_CONFIGURE_PARAMS 구조체에 대한 포인터입니다.

반환 값

없음

설명

WppRecorderConfigure를 호출하기 전에 RECORDER_CONFIGURE_PARAMS 구조를 할당하고 RECORDER_CONFIGURE_PARAMS_INIT 호출하여 초기화합니다.

이 메서드는 기본 로그만 구성합니다. 기본적으로 해당 로그는 사용하도록 설정됩니다. 사용자 지정 로그가 있는 경우 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(Inflight Trace Recorder)을 참조하세요.

요구 사항

요구 사항
대상 플랫폼 Windows
헤더 wpprecorder.h