IDebugFailureAnalysis2::SetUlong method (extsfns.h)

The SetUlong method searches a DebugFailureAnalysis object for the first FA entry that has a specified tag. If it finds an FA entry with the specified tag, it sets (overwrites) the data block of the FA entry to a specified ULONG value. If this method does not find an FA entry that has the specified tag, it creates a new FA entry with that tag and sets the data block of the new FA entry to the specified ULONG value.

Syntax

PFA_ENTRY SetUlong(
       FA_TAG Tag,
  [in] ULONG  Value
);

Parameters

Tag

A value in the FA_TAG enumeration.

[in] Value

The ULONG value to be written to the data block of the new or existing FA entry.

Return value

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

Remarks

If this method finds an FA entry with the specified tag, it checks to see whether the data type associated with that tag is DEBUG_FA_ENTRY_ULONG. If the data type associated with the tag is not DEBUG_FA_ENTRY_ULONG, this method returns NULL and does not overwrite the entry's data block.

If this method does not find an FA entry with the specified tag, it creates a new FA entry with that tag, and it associates the tag with the data type DEBUG_FA_ENTRY_ULONG.

Requirements

Requirement Value
Target Platform Desktop
Header extsfns.h

See also

AddUlong

IDebugFailureAnalysis2

Writing an Analysis Extension Plug-in to Extend !analyze

_EFN_Analyze