<?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_enumeration_set_scope</id>
	<title>Truxton enumeration set scope - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_enumeration_set_scope"/>
	<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_enumeration_set_scope&amp;action=history"/>
	<updated>2026-09-09T16:10:38Z</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_enumeration_set_scope&amp;diff=6305&amp;oldid=prev</id>
		<title>Sam: Created page with &quot;This tells Truxton at what level you wish to enumerate.  =Syntax= &lt;source lang=&quot;C&quot;&gt; void truxton_enumeration_set_scope( uint64_t enumeration_handle, uint64_t scope ); &lt;/source...&quot;</title>
		<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_enumeration_set_scope&amp;diff=6305&amp;oldid=prev"/>
		<updated>2023-05-05T16:14:08Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This tells Truxton at what level you wish to enumerate.  =Syntax= &amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt; void truxton_enumeration_set_scope( uint64_t enumeration_handle, uint64_t scope ); &amp;lt;/source...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This tells Truxton at what level you wish to enumerate.&lt;br /&gt;
&lt;br /&gt;
=Syntax=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt;&lt;br /&gt;
void truxton_enumeration_set_scope( uint64_t enumeration_handle, uint64_t scope );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Parameters=&lt;br /&gt;
==&amp;lt;code&amp;gt;enumeration_handle&amp;lt;/code&amp;gt;==&lt;br /&gt;
The handle returned by calling &amp;lt;code&amp;gt;[[truxton_enumeration_create]]()&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;code&amp;gt;scope&amp;lt;/code&amp;gt;==&lt;br /&gt;
What level you want to enumerate.&lt;br /&gt;
&lt;br /&gt;
=Sample=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot; highlight=&amp;quot;11&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
void dump_media_in_investigation( uint64_t truxton_handle, uint64_t investigation_handle )&lt;br /&gt;
{&lt;br /&gt;
    char media_name[ 256 ];&lt;br /&gt;
    char investigation_id[ 65 ];&lt;br /&gt;
&lt;br /&gt;
    truxton_investigation_get_id( investigation_handle, investigation_id, sizeof( investigation_id ) );&lt;br /&gt;
&lt;br /&gt;
    uint64_t enumerator = truxton_enumeration_create( truxton );&lt;br /&gt;
&lt;br /&gt;
    // Now setup the enumeration to get the media in a particular investigation&lt;br /&gt;
    truxton_enumeration_set_scope( enumerator, Type_Investigation );&lt;br /&gt;
    truxton_enumeration_set_scope_id( enumerator, investigation_id );&lt;br /&gt;
    truxton_enumeration_set_target( enumerator, Type_Media );&lt;br /&gt;
&lt;br /&gt;
    uint64_t media_handle = truxton_enumeration_get_next( enumerator );&lt;br /&gt;
&lt;br /&gt;
    while( media_handle != 0 )&lt;br /&gt;
    {&lt;br /&gt;
        truxton_media_get_name( media_handle, media_name, sizeof( media_name ) );&lt;br /&gt;
        printf( &amp;quot;Media: %s\n&amp;quot;, media_name );&lt;br /&gt;
&lt;br /&gt;
        media_handle = truxton_enumeration_get_next( enumerator );&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    truxton_enumeration_destroy( enumerator );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
    char investigation_name[256];&lt;br /&gt;
&lt;br /&gt;
    truxton_start();&lt;br /&gt;
&lt;br /&gt;
    uint64_t truxton = truxton_create();&lt;br /&gt;
&lt;br /&gt;
    uint64_t enumerator = truxton_enumeration_create( truxton );&lt;br /&gt;
&lt;br /&gt;
    truxton_enumeration_set_target( enumerator, Type_Investigation );&lt;br /&gt;
&lt;br /&gt;
    uint64_t investigation_handle = truxton_enumeration_get_next( enumerator );&lt;br /&gt;
&lt;br /&gt;
    while( investigation_handle != 0 )&lt;br /&gt;
    {&lt;br /&gt;
        truxton_investigation_get_name( investigation_handle, investigation_name, sizeof( investigation_name ) );&lt;br /&gt;
&lt;br /&gt;
        printf( &amp;quot;Investigation: %s\n&amp;quot;, investigation_name );&lt;br /&gt;
&lt;br /&gt;
        dump_media_in_investigation( truxton, investigation_handle );&lt;br /&gt;
&lt;br /&gt;
        investigation_handle = truxton_enumeration_get_next( enumerator );&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    truxton_enumeration_destroy( enumerator );&lt;br /&gt;
    truxton_destroy( truxton );&lt;br /&gt;
    truxton_stop();&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sam</name></author>
		
	</entry>
</feed>