Truxton artifact get file id

From truxwiki.com
Revision as of 14:41, 3 November 2020 by Sam (talk | contribs) (Created page with "This retrieves the [https://en.wikipedia.org/wiki/Universally_unique_identifier GUID] of the file this artifact came from. This corresponds to the <code>[ID]</code> column of...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This retrieves the GUID of the file this artifact came from. This corresponds to the [ID] column of the [File] table.

Syntax

void truxton_artifact_get_file_id( uint64_t artifact_handle, char * destination_string, size_t max_size );

Parameters

artifact_handle

The handle to a message created by the truxton_artifact_create call.

destination_string

The string to be written to.

max_size

The maximum number of characters that can be written to destination_string.

Sample

void dump_artifact(uint64_t artifact_handle)
{
   char guid_string[ 40 ];

   truxton_artifact_get_file_id( message_handle, guid_string, sizeof(guid_string));

   printf( "File ID is %s\n", guid_string);
}