Difference between revisions of "Truxton media set created"
Jump to navigation
Jump to search
(→Sample) |
(→Sample) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
This sets the creation date of the media. | This sets the creation 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. |
=Syntax= | =Syntax= | ||
| Line 15: | Line 15: | ||
=Sample= | =Sample= | ||
| − | <source lang="C" highlight=" | + | <source lang="C" highlight="3"> |
| − | void set_created(uint64_t media) | + | void set_created( uint64_t media ) |
{ | { | ||
| − | + | truxton_media_set_created( media, truxton_time_now() ); | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | truxton_media_set_created(media, | ||
} | } | ||
</source> | </source> | ||
Latest revision as of 18:16, 13 April 2024
This sets the creation date of the media.
This corresponds to the [Created] column of the [Media] table.
Syntax
void truxton_media_set_created( uint64_t media_handle, uint64_t ticks );
Parameters
media_handle
The handle created by the truxton_media_open_id or truxton_media_create call.
ticks
The date in FILETIME ticks.
Sample
void set_created( uint64_t media )
{
truxton_media_set_created( media, truxton_time_now() );
}