Truxton message get route id

From truxwiki.com
Revision as of 05:15, 13 June 2020 by Sam (talk | contribs) (Created page with "Tells you the route this media is taking through the exploitation process. This corresponds to the <code>ID</code> column of the <code>LoadConfiguration</code> table. =Syntax...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Tells you the route this media is taking through the exploitation process. This corresponds to the ID column of the LoadConfiguration table.

Syntax

uint32_t truxton_message_get_route_id( uint64_t message_handle );

Parameters

message_handle

The handle to a message created by the truxton_message_create call.

Return value

The identifier of the type of load being performed.

Sample

void dump_route(uint64_t message)
{
   uint32_t id = truxton_message_get_route_id( message );

   if ( id == 0 )
   {
      printf( "Performing a default load.\n" );
   }
   else if ( id == 4 )
   {
      printf( "Performing a triage load.\n" );
   }
   else if ( id == 5 )
   {
      printf( "Data recovery load.\n" );
   }
   else
   {
      printf( "Some load with an id of %" PRIu32 "\n", id );
   }
}