Extracting Windows File Properties (Custom Properties) C# : <p>In Word/Excel you have to possibility to add Custom properties. (See Image)
<a href="http://i.stack.imgur.com/ESWIw.png">Custom Properties</a>.
As you guys can see there is the field: "Properties:", you can add any information you want there.
When you save the file and you go to the file location in the folder, you can right click -> Properties and you have all the tabs: General/Security/Details/Previous Versions. with the feature you add the tab Custom.</p>

<p>Now I want to get this information through coding: <a href="http://i.stack.imgur.com/06nsA.png">Custom Properties information</a>. and extract it later to notepad.
So far i used the <code>Shell32</code> but then I only get the information that is in the Details tab. I did some research and saw some possibilities with <code>DSOfile.dll</code>. But I want to know if there is a possibility to do this without installing other DLL?
This is my code so far with the <code>Shell32</code>.</p>

<pre><code>        static void Main(string[] args)
    {

        //using (StreamWriter writer = new StreamWriter(@"filepathhere"))
        //{
            //Console.SetOut(writer);
            ReadProperties();
        //}
    }
    static void ReadProperties()
    { 
        List&lt;string&gt; arrHeaders = new List&lt;string&gt;();
        Shell shell = new Shell();
        Folder objFolder = shell.NameSpace(@"filepathhere");
        FolderItem objFolderItem = objFolder.ParseName("filehere.doc");

        for (int i = 0; i &lt; short.MaxValue; i++)
        {
            string header = objFolder.GetDetailsOf(objFolder, i);
            if (String.IsNullOrEmpty(header))
                break;
            arrHeaders.Add(header);
        }

        for ( int i = 0; i &lt; arrHeaders.Count; i++)
        {
            Console.WriteLine("{0}\t{1}: {2}", i, arrHeaders[i], objFolder.GetDetailsOf(objFolderItem, i));
        }
        Console.ReadKey();
    }
</code></pre>

<p>Thanks in advance!</p>

<p>Desu</p>
