Difference between revisions of "Truxton media get last updated"
Jump to navigation
Jump to search
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
This retrieves the date when the media last changed. | This retrieves the date when the media last changed. | ||
| − | This corresponds to the <code>[LastUpdated]</code> column of the <code>[Media]</code> table. | + | This corresponds to the <code>[LastUpdated]</code> column of the <code><nowiki>[</nowiki>[[Media Table|Media]]<nowiki>]</nowiki></code> table. |
=Syntax= | =Syntax= | ||
| Line 16: | Line 16: | ||
=Sample= | =Sample= | ||
<source lang="C" highlight="3"> | <source lang="C" highlight="3"> | ||
| − | void print_valid(uint64_t media) | + | void print_valid( uint64_t media ) |
{ | { | ||
| − | uint64_t date = truxton_media_get_last_updated(media); | + | uint64_t date = truxton_media_get_last_updated( media ); |
if ( date == 0 ) | if ( date == 0 ) | ||
Latest revision as of 07:38, 3 February 2024
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" );
}
}