i used ReadFile and it returned ok and the number of bytes read is the size of the file but when i debug and look at what the buffer is it is only the first 3 bytes of the file and the length is 3. does anyone know why. the buffer is being allocated enough memory so that's not the problem.