Truxton media set last updated

From truxwiki.com
Revision as of 23:53, 9 February 2021 by Sam (talk | contribs)
Jump to navigation Jump to search

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 )
{
   FILETIME now;

   GetSystemTimePreciseAsFileTime( &now );

   ULARGE_INTEGER ticks;

   ticks.LowPart = now.dwLowDateTime;
   ticks.HighPart = now.dwHighDateTime;

   truxton_media_set_last_updated( media, ticks.QuadPart );
}