Difference between revisions of "Truxton investigation set opened"
Jump to navigation
Jump to search
(Created page with "This sets when the investigation was created. This corresponds to the <code>[Opened]</code> column of the <code>[Investigation]</code> table. =Syntax= <source lang="C"> void...") |
(→Sample) |
||
| Line 16: | Line 16: | ||
=Sample= | =Sample= | ||
| − | <source lang="C" highlight=" | + | <source lang="C" highlight="14"> |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
void create_investigation( void ) | void create_investigation( void ) | ||
{ | { | ||
| Line 48: | Line 30: | ||
truxton_investigation_set_status( investigation, INVESTIGATION_STATUS_OPEN ); | truxton_investigation_set_status( investigation, INVESTIGATION_STATUS_OPEN ); | ||
truxton_investigation_set_type( investigation, INVESTIGATION_TYPE_FRAUD ); | truxton_investigation_set_type( investigation, INVESTIGATION_TYPE_FRAUD ); | ||
| − | truxton_investigation_set_opened( investigation, | + | truxton_investigation_set_opened( investigation, truxton_time_now() ); |
if ( truxton_investigation_save( investigation ) == 0 ) | if ( truxton_investigation_save( investigation ) == 0 ) | ||
Latest revision as of 03:08, 14 April 2024
This sets when the investigation was created.
This corresponds to the [Opened] column of the [Investigation] table.
Syntax
void truxton_investigation_set_opened( uint64_t investigation_handle, uint64_t ticks );
Parameters
investigation_handle
The handle to the investigation object.
This handle comes from calling truxton_investigation_create().
ticks
The date in FILETIME ticks.
Sample
void create_investigation( void )
{
uint64_t truxton = truxton_create();
uint64_t investigation = truxton_investigation_create( truxton );
truxton_investigation_set_id( investigation, "466C796E-6E27-7320-696E-6E6F63656E74" );
truxton_investigation_set_name( investigation, "Collusion" );
truxton_investigation_set_description( investigation, "United States vs. Michael Flynn" );
truxton_investigation_set_case_number( investigation, "DC-SNAFU-2016.2020" );
truxton_investigation_set_jurisdiction( investigation, WASHINGTON_DC );
truxton_investigation_set_status( investigation, INVESTIGATION_STATUS_OPEN );
truxton_investigation_set_type( investigation, INVESTIGATION_TYPE_FRAUD );
truxton_investigation_set_opened( investigation, truxton_time_now() );
if ( truxton_investigation_save( investigation ) == 0 )
{
printf("Cannot save investigation to the database.\n");
}
truxton_investigation_destroy( investigation );
truxton_destroy( truxton );
}