Difference between revisions of "Truxton media get created"
Jump to navigation
Jump to search
(Created page with "This retrieves the create date of the media. This corresponds to the <code>Created</code> column of the <code>Media</code> table. It represents when this media was created in...") |
|||
| Line 5: | Line 5: | ||
=Syntax= | =Syntax= | ||
<syntaxhighlight lang="C"> | <syntaxhighlight lang="C"> | ||
| − | uint64_t | + | uint64_t truxton_media_get_created( uint64_t media_handle ); |
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 08:01, 25 July 2020
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" );
}
}