WppRecorderLogCreate macro

The WppRecorderLogCreate method creates a buffer to contain the recorder log.

Syntax

void WppRecorderLogCreate(
   CreateParams,
   RecorderLog
);

Parameters

CreateParams

A pointer to a RECORDER_LOG_CREATE_PARAMS structure.

RecorderLog

A handle for the recorder log.

Return Value

None

Remarks

Before calling WppRecorderLogCreate, allocate a RECORDER_LOG_CREATE_PARAMS structure and initialize by calling RECORDER_LOG_CREATE_PARAMS_INIT.

You must first call WPP_INIT_TRACING before calling WppRecorderLogCreate. Default values are used unless the members of CreateParams are modified before calling WppRecorderLogCreate.

If a successful NTSTATUS is returned, the driver can use the RecorderLog handle for logging.

If a successful NTSTATUS is not returned, the driver must use a RECORDER_LOG handle to the default log. Also, the driver must not attempt to log to or delete the handle pointed to by RecorderLog.

Note This method allocates memory for the log buffer from the non-paged pool.

Requirements

   
Target Platform Windows
Header wpprecorder.h