title: C#: Search a byte[] array in another process's memory
body: <p>How is it possible to search for a byte[] array in the memory of another process and then get the address at the place where the byte[] array is located?</p>
  
  <p>I want to write a byte array into the memory of another process(WriteProcessMemory()).One of the parameters of that call is uint Address.Well I want to get the address by searching a byte array into the process.</p>
  
  <p>For example I search for {0xEB ,0x20,0x68,0x21,0x27,0x65, ??, 0x21,0x64,0xA1}</p>
  
  <p>We assume that this array is placed only at one place in the memory of the process I'd like to write memory to.</p>
  
  <p>To get that address,I have to search for that byte array.</p>
  
  <p>Is it possible to be done in C#?</p>
  
  <p><strong>EDIT:</strong> <strong>This is for native applications,NOT .NET. No need to downvote my question,there are components for C++ that do this,I just want to do it in C#.</strong></p>
  
  <p>Thanks for understanding!</p>