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) に関するページを参照してください。

要件

要件
対象プラットフォーム Windows
ヘッダー wpprecorder.h