I think the problem is your use of filesize.QuadPart. Try removing that from both the format string and the argument list, and see if it works.
If that helps, then look up the correct format string to use for a 64-bit quantity in printf().
Greg Hewgill
2009-04-30 00:21:46