IDebugFailureAnalysis2::AddBuffer method (extsfns.h)

The AddBuffer method adds a new FA entry to a DebugFailureAnalysis object, and writes the bytes from a specified buffer to the data block of the new FA entry.

Syntax

PFA_ENTRY AddBuffer(
       FA_TAG        Tag,
  [in] FA_ENTRY_TYPE EntryType,
  [in] PVOID const   Buf,
  [in] ULONG         Size
);

Parameters

Tag

A value in the FA_TAG enumeration.

[in] EntryType

A value in the FA_ENTRY_TYPE enumeration. This parameter specifies the data type of the data in Buf.

[in] Buf

A pointer to a buffer that contains the bytes to be written to the data block of the new FA entry.

[in] Size

The size, in bytes, of the buffer pointed to by Buf.

Return value

If this method succeeds, it returns a pointer to the new FA_ENTRY structure. Otherwise, it returns NULL.

Remarks

This method creates a new FA entry with the tag specified by Tag, and it associates the tag with the data type specified by EntryType.

Requirements

Requirement Value
Target Platform Desktop
Header extsfns.h

See also

GetBuffer

IDebugFailureAnalysis2

SetBuffer

Writing an Analysis Extension Plug-in to Extend !analyze

_EFN_Analyze