Difference between revisions of "Truxton note set text"
Jump to navigation
Jump to search
(Created page with "This sets the contents of the note. =Syntax= <source lang="C"> void truxton_note_set_text( uint64_t note_handle, char const * text ); </source> =Parameters= ==<code>note_han...") |
(→Sample) |
||
| Line 15: | Line 15: | ||
=Sample= | =Sample= | ||
| − | <source lang="C" highlight=" | + | <source lang="C" highlight="9"> |
void create_note( void ) | void create_note( void ) | ||
{ | { | ||
Latest revision as of 05:35, 15 April 2024
This sets the contents of the note.
Contents
Syntax
void truxton_note_set_text( uint64_t note_handle, char const * text );
Parameters
note_handle
This handle comes from calling truxton_note_create().
text
The contents of the note.
This will be stored in the [Text] column of the [InvestigatorNote] table.
Sample
void create_note( void )
{
uint64_t truxton = truxton_create();
uint64_t note = truxton_note_create( truxton_handle );
truxton_note_set_object_id( note, "65feb292-7995-137d-77cb-3ed80000000a" );
truxton_note_set_investigation_id( note, "01da7796-a010-3685-0000-018902cb3b22" );
truxton_note_set_text( note, "This is an interesting file." );
truxton_note_set_object_type( note, OBJECT_TYPE_FILE );
if ( truxton_note_save( note ) == 0 )
{
printf( "Cannot save investigation note to the database.\n" );
}
truxton_note_destroy( note );
truxton_destroy( truxton );
}