I have question searched in google but without something that can help.
How to get the binary stream from files ( especially executable files) using winapi (CreateFile , etc)????
I learned in these days how to read write files using Createfile, ReadFile, WriteFile , etc and all these WINAPI functions.
But ReadFile get me characters contains of files, and when I want to read exe files it get me a few bytes and that's it.
The reason of this behaviour is that the readfile read the file until get NULL and as you know the exe files have alot of NULL codes. So I must read the binary code of the exe file and do my process on it, this way is better.... but how to do it???
I hope you have some ideas for me.
Edited 4 Years Ago by Rasool Ahmed: Edit some spell