Truxton communication add note

From truxwiki.com
Revision as of 08:23, 19 May 2023 by Sam (talk | contribs) (Created page with "This will add an investigator's note to the communication. You can only add a note to an artifact after <code>truxton_communication_save()</code> has been called. This wil...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This will add an investigator's note to the communication. You can only add a note to an artifact after truxton_communication_save() has been called. This will cause a record to be created in the [InvestigatorNote] table.

Syntax

int truxton_communication_add_note( uint64_t communication_handle, char const * text );

Parameters

artifact_handle

The handle created by calling truxton_communication_create().

text

The contents of the note.

Return value

A non-zero value on success, zero on failure.

Sample

void mark_as_relevant( uint64_t communication_handle )
{
   if ( truxton_communication_add_note( communication_handle, "Analyst has determined this is within investigative scope") == 0 )
   {
      printf( "Cannot mark communication as relevant.\n" );
   }
}