ITraceEvent::SetPayload method

The SetPayload method sets the payload for an event.

Syntax

HRESULT SetPayload(
  BYTE  *Payload,
  ULONG PayloadSize
);

Parameters

Payload

Type: BYTE*

The event payload data.

PayloadSize

Type: ULONG

Size of the payload data, in bytes.

Return Value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Payloads contain only developer-defined data.

Requirements

   
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header relogger.h

See Also

ITraceEvent