Difference between revisions of "Truxton media get created"
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><nowiki>[</nowiki>[[Media Table|Media]]<nowiki>]</nowiki></code> table. |
It represents when this media was created in Truxton. | It represents when this media was created in Truxton. | ||
Latest revision as of 07:39, 3 February 2024
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" );
}
}