Difference between revisions of "Truxton message get route id"
Jump to navigation
Jump to search
(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...") |
|||
| Line 1: | Line 1: | ||
Tells you the route this media is taking through the exploitation process. | 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. | + | This corresponds to the <code>[ID]</code> column of the <code>[LoadConfiguration]</code> table. |
=Syntax= | =Syntax= | ||
Revision as of 14:44, 3 November 2020
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 );
}
}