IEvent::SetPayload method

The SetPayload method sets the payload for an event.

Syntax


HRESULT SetPayload(
  [in, size_is(PayloadSize)]  BYTE *Payload,
  [in]                        ULONG PayloadSize
);

Parameters

Payload [in]

Type: BYTE*

The event payload data.

PayloadSize [in]

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]

Header

Relogger.h

IDL

Relogger.idl

See also

ITraceEvent

 

 

Community Additions

ADD
Show:
© 2014 Microsoft