Difference between revisions of "Truxton message set parent id"
Jump to navigation
Jump to search
| Line 4: | Line 4: | ||
=Syntax= | =Syntax= | ||
<source lang="C"> | <source lang="C"> | ||
| − | void truxton_message_set_parent_id( uint64_t message_handle, char * id ); | + | void truxton_message_set_parent_id( uint64_t message_handle, char const * id ); |
</source> | </source> | ||
Revision as of 15:59, 16 February 2021
Sets the identifier of the parent of the file in the message.
This corresponds to the ParentFileID column of the File table.
Syntax
void truxton_message_set_parent_id( uint64_t message_handle, char const * id );
Parameters
message_handle
The handle created by the truxton_message_create call.
id
The string representation of a GUID.
Remarks
This identifier should be a value from the ID column of the File table in the database.
Sample
void set_parent( uint64_t message, uint64_t file )
{
char id[40];
truxton_file_get_parent_id( file, id, sizeof(id) );
truxton_message_set_parent_id( message, id );
}