Truxton etl add command line argument

From truxwiki.com
Revision as of 04:05, 26 May 2020 by Sam (talk | contribs) (Created page with "This is used to build the command line arguments for the process. =Syntax= <syntaxhighlight lang="C"> void truxton_etl_add_command_line_argument( uint64_t etl_handle, char co...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is used to build the command line arguments for the process.

Syntax

void truxton_etl_add_command_line_argument( uint64_t etl_handle, char const * buffer );

Parameters

etl_handle

The handle created by the truxton_create call.

Sample

void add_folder(uint64_t truxton, uint64_t parent_file)
{
   truxton_start_adding_files(truxton);

   uint64_t child = truxton_child_file_new_child(parent_file);

   truxton_child_file_set_type(child, Type_Directory);
   truxton_child_file_set_name(child, "Custom Exploits Folder");

   FILETIME now;

   GetSystemTimeAsFileTime(&now);

   ULARGE_INTEGER ticks;

   ticks.LowPart = now.dwLowDateTime;
   ticks.HighPart = now.dwHighDateTime;

   truxton_child_file_set_created(child, ticks.QuadPart);
   truxton_child_file_set_accessed(child, ticks.QuadPart);
   truxton_child_file_set_modified(child, ticks.QuadPart);

   truxton_child_file_set_origin(child, ORIGIN_GENERATED);

   if ( truxton_child_file_save(child) == 0 )
   {
      printf( "Failed to add child to Truxton\n" );
   }
}