title: C# Extract Resource from Native PE
body: <p>I seem to be failing to find the correct answer to what I am trying to do here.</p>
  
  <p>In my C# code, I would like to extract resources from <em>another</em> executable that would be passed by user prompt. The other executable would be a native PE file.</p>
  
  <p>As an example, I need to pull the <code>KDATA\106</code> resource from this PE file (<code>sample.exe</code>). This is what it looks like in ResourceHacker.</p>
  
  <p><a href="https://i.stack.imgur.com/tWXZ2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tWXZ2.png" alt="ResourceHacker display of PE resources"></a></p>
  
  <p>I seem to be only able to find info on how to extract from <em>my</em> program, or parsing from another project.</p>