Difference between revisions of "Truxton note create"
Jump to navigation
Jump to search
(Created page with "This creates an investigation note in Truxton. This object corresponds to the <code>[InvestigationNote]</code> table. =Syntax= <source lang="C"> uint64_t truxton_note_create(...") |
|||
| Line 1: | Line 1: | ||
This creates an investigation note in Truxton. | This creates an investigation note in Truxton. | ||
| − | This object corresponds to the <code>[ | + | This object corresponds to the <code>[InvestigatorNote]</code> table. |
=Syntax= | =Syntax= | ||
Latest revision as of 05:39, 15 April 2024
This creates an investigation note in Truxton.
This object corresponds to the [InvestigatorNote] table.
Syntax
uint64_t truxton_note_create( uint64_t truxton_handle );
Parameters
truxton_handle
The Truxton instance this note will belong.
This handle comes from calling truxton_create().
Return value
A handle to an investigation note object.
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 );
}