Truxton communication set sent

From truxwiki.com
Revision as of 08:11, 19 May 2023 by Sam (talk | contribs) (Created page with "Sets the date when the message was sent. This corresponds to the <code>[Sent]</code> column of the <code>[Message]</code> table. =Syntax= <source lang="C"> void truxton_commu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sets the date when the message was sent. This corresponds to the [Sent] column of the [Message] table.

Syntax

void truxton_communication_set_sent( uint64_t communication_handle, uint64_t ticks );

Parameters

communication_handle

The handle created by the truxton_communication_create call.

ticks

The date and time in FILETIME ticks.

Sample

void set_sent_to_now( uint64_t communication_handle )
{
   FILETIME now;

   GetSystemTimePreciseAsFileTime( &now );

   ULARGE_INTEGER ticks;

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

   truxton_communication_set_sent( communication_handle , ticks.QuadPart );
}