Truxton media get last updated

From truxwiki.com
Revision as of 07:01, 26 July 2020 by Sam (talk | contribs) (Created page with "This retrieves the date when the media last changed. This corresponds to the <code>LastUpdated</code> column of the <code>Media</code> table. =Syntax= <syntaxhighlight lang="...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This retrieves the date when the media last changed. This corresponds to the LastUpdated column of the Media table.

Syntax

uint64_t truxton_media_get_last_updated( uint64_t media_handle );

Parameters

media_handle

The handle created by the truxton_media_open_id or truxton_media_create call.

Return value

The last update date of the media in FILETIME ticks.

Sample

void print_valid(uint64_t media)
{
   uint64_t date = truxton_media_get_last_updated(media);

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