Truxton media set created

From truxwiki.com
Revision as of 06:15, 26 July 2020 by Sam (talk | contribs) (Created page with "This sets the creation date of the media. This corresponds to the <code>Created</code> column of the <code>Media</code> table. =Syntax= <syntaxhighlight lang="C"> void truxto...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

   GetSystemTimeAsFileTime(&now);

   ULARGE_INTEGER ticks;

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

   truxton_media_set_created(media, ticks.QuadPart);
}