Truxton media add note

From truxwiki.com
Revision as of 09:04, 1 October 2022 by Sam (talk | contribs) (Created page with "This will add a note to the the media. It will cause a record to be created in the <code>[InvestigatorNote]</code> table. =Syntax= <source lang="C"> int truxton_media_add_not...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This will add a note to the the media. It will cause a record to be created in the [InvestigatorNote] table.

Syntax

int truxton_media_add_note( uint64_t media_handle, char const * text );

Parameters

media_handle

The handle created by the truxton_media_open_id or truxton_media_create call.

text

The contents of the note.

Return value

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

Sample

void process_media( uint64_t truxton )
{
   uint64_t media = truxton_media_open_id( truxton, "92A86F8F-DFD0-4DBE-B9FF-257D4EB17B4C" );

   truxton_media_add_note( media, "I processed this media." );

   truxton_media_destroy( media );
}