Difference between revisions of "Truxton media set last updated"
Jump to navigation
Jump to search
(Created page with "This sets the last updated date of the media. This corresponds to the <code>LastUpdated</code> column of the <code>Media</code> table. =Syntax= <syntaxhighlight lang="C"> voi...") |
(→Sample) |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
This sets the last updated date of the media. | This sets the last updated date of the media. | ||
| − | 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= | ||
| − | < | + | <source lang="C"> |
void truxton_media_set_last_updated( uint64_t media_handle, uint64_t ticks ); | void truxton_media_set_last_updated( uint64_t media_handle, uint64_t ticks ); | ||
| − | </ | + | </source> |
=Parameters= | =Parameters= | ||
| Line 11: | Line 11: | ||
The handle created by the [[truxton_media_open_id]] or [[truxton_media_create]] call. | The handle created by the [[truxton_media_open_id]] or [[truxton_media_create]] call. | ||
| − | ==<code>ticks </code>== | + | ==<code>ticks</code>== |
The date in [https://docs.microsoft.com/en-us/windows/win32/api/minwinbase/ns-minwinbase-filetime FILETIME] ticks. | The date in [https://docs.microsoft.com/en-us/windows/win32/api/minwinbase/ns-minwinbase-filetime FILETIME] ticks. | ||
=Sample= | =Sample= | ||
| − | < | + | <source lang="C" highlight="3"> |
| − | void update(uint64_t media) | + | void update( uint64_t media ) |
{ | { | ||
| − | + | truxton_media_set_last_updated( media, truxton_time_now() ); | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | truxton_media_set_last_updated(media, | ||
} | } | ||
| − | </ | + | </source> |
Latest revision as of 17:01, 13 April 2024
This sets the last updated date of the media.
This corresponds to the [LastUpdated] column of the [Media] table.
Syntax
void truxton_media_set_last_updated( 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 update( uint64_t media )
{
truxton_media_set_last_updated( media, truxton_time_now() );
}