<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_investigation_add_note</id>
	<title>Truxton investigation add note - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_investigation_add_note"/>
	<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_investigation_add_note&amp;action=history"/>
	<updated>2026-09-09T15:13:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://truxwiki.com/index.php?title=Truxton_investigation_add_note&amp;diff=6012&amp;oldid=prev</id>
		<title>Sam: Created page with &quot;This will add a note to the investigation object. It will cause a record to be created in the &lt;code&gt;[InvestigatorNote]&lt;/code&gt; table.  =Syntax= &lt;source lang=&quot;C&quot;&gt; int truxton_in...&quot;</title>
		<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_investigation_add_note&amp;diff=6012&amp;oldid=prev"/>
		<updated>2022-10-01T12:51:15Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This will add a note to the investigation object. It will cause a record to be created in the &amp;lt;code&amp;gt;[InvestigatorNote]&amp;lt;/code&amp;gt; table.  =Syntax= &amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt; int truxton_in...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This will add a note to the investigation object.&lt;br /&gt;
It will cause a record to be created in the &amp;lt;code&amp;gt;[InvestigatorNote]&amp;lt;/code&amp;gt; table.&lt;br /&gt;
&lt;br /&gt;
=Syntax=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt;&lt;br /&gt;
int truxton_investigation_add_note( uint64_t investigation_handle, char const * text );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Parameters=&lt;br /&gt;
==&amp;lt;code&amp;gt;investigation_handle &amp;lt;/code&amp;gt;==&lt;br /&gt;
The handle to the investigation object.&lt;br /&gt;
This handle comes from calling &amp;lt;code&amp;gt;[[truxton_investigation_create]]()&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;code&amp;gt;text&amp;lt;/code&amp;gt;==&lt;br /&gt;
The contents of the note.&lt;br /&gt;
&lt;br /&gt;
=Return value=&lt;br /&gt;
A non-zero value on success, zero on failure.&lt;br /&gt;
&lt;br /&gt;
=Sample=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot; highlight=&amp;quot;20&amp;quot;&amp;gt;&lt;br /&gt;
void create_investigation( void )&lt;br /&gt;
{&lt;br /&gt;
   uint64_t truxton = truxton_create();&lt;br /&gt;
&lt;br /&gt;
   uint64_t investigation = truxton_investigation_create( truxton );&lt;br /&gt;
&lt;br /&gt;
   truxton_investigation_set_id( investigation, &amp;quot;466C796E-6E27-7320-696E-6E6F63656E74&amp;quot; );&lt;br /&gt;
   truxton_investigation_set_name( investigation, &amp;quot;Collusion&amp;quot; );&lt;br /&gt;
   truxton_investigation_set_description( investigation, &amp;quot;United States vs. Michael Flynn&amp;quot; );&lt;br /&gt;
   truxton_investigation_set_case_number( investigation, &amp;quot;DC-SNAFU-2016.2020&amp;quot; );&lt;br /&gt;
   truxton_investigation_set_jurisdiction( investigation, WASHINGTON_DC );&lt;br /&gt;
   truxton_investigation_set_status( investigation, INVESTIGATION_STATUS_OPEN );&lt;br /&gt;
   truxton_investigation_set_type( investigation, INVESTIGATION_TYPE_FRAUD );&lt;br /&gt;
&lt;br /&gt;
   if ( truxton_investigation_save( investigation ) == 0 )&lt;br /&gt;
   {&lt;br /&gt;
      printf(&amp;quot;Cannot save investigation to the database.\n&amp;quot;);&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   truxton_investigation_add_note( investigation, &amp;quot;No one will like this investigation.&amp;quot; );&lt;br /&gt;
   truxton_investigation_destroy( investigation );&lt;br /&gt;
   truxton_destroy( truxton );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sam</name></author>
		
	</entry>
</feed>