Difference between revisions of "Truxton investigation open id"
Jump to navigation
Jump to search
(Created page with "This opens an existing investigation. =Syntax= <source lang="C"> int truxton_investigation_open_id( uint64_t truxton_handle, char const * investigation_id ); </source> =Para...") |
(→Sample) |
||
| Line 27: | Line 27: | ||
{ | { | ||
uint64_t investigation = truxton_investigation_open_id( truxton, investigation_guid ); | uint64_t investigation = truxton_investigation_open_id( truxton, investigation_guid ); | ||
| − | |||
| − | |||
if ( truxton_investigation_remove_media( investigation, media_guid ) != 0 ) | if ( truxton_investigation_remove_media( investigation, media_guid ) != 0 ) | ||
Latest revision as of 08:17, 28 January 2024
This opens an existing investigation.
Contents
Syntax
int truxton_investigation_open_id( uint64_t truxton_handle, char const * investigation_id );
Parameters
truxton_handle
The Truxton instance this investigation where this investigation can be found.
This handle comes from calling truxton_create().
investigation_id
The string representation of a GUID.
This value should be present in the [ID] column of the [Investigation] table.
Return value
A non-zero value on success, zero on failure.
Remarks
This does not delete the media from Truxton. It merely disassociates it from the investigation.
Sample
void drop_media( uint64_t truxton, char const * investigation_guid, char const * media_guid )
{
uint64_t investigation = truxton_investigation_open_id( truxton, investigation_guid );
if ( truxton_investigation_remove_media( investigation, media_guid ) != 0 )
{
printf("Removed Media %s from investigation %s.\n", media_guid, investigation_guid );
}
truxton_investigation_destroy( investigation );
}