Resolution is dependent on the crispness of the edge of the pinhole and the size relationship between the pinhole and the distance to the film.
DOF is essentially from a few inches in front of the camera to infinity.
I am quite sure this has been covered in far more detail elsewhere on this and other forums.