Difference between revisions of "Truxton media get created"

From truxwiki.com
Jump to navigation Jump to search
Line 1: Line 1:
 
This retrieves the create date of the media.
 
This retrieves the create date of the media.
This corresponds to the <code>Created</code> column of the <code>Media</code> table.
+
This corresponds to the <code>[Created]</code> column of the <code>[Media]</code> table.
 
It represents when this media was created in Truxton.
 
It represents when this media was created in Truxton.
  

Revision as of 12:43, 22 February 2021

This retrieves the create date of the media. This corresponds to the [Created] column of the [Media] table. It represents when this media was created in Truxton.

Syntax

uint64_t truxton_media_get_created( uint64_t media_handle );

Parameters

media_handle

The handle created by the truxton_media_open_id or truxton_media_create call.

Return value

The creation date of the media in FILETIME ticks.

Sample

void print_valid( uint64_t media )
{
   uint64_t creation_date = truxton_media_get_created( media );

   if ( creation_date == 0 )
   {
      printf( "The media has no creation date\n" );
   }
   else
   {
      printf( "The media has a creation date\n" );
   }
}