Dec 29, 2010 at 2:57am
There is actually a function to get the size of a file...
1 2 3 4
|
DWORD WINAPI GetFileSize(
__in HANDLE hFile,
__out_opt LPDWORD lpFileSizeHigh
);
|
Also see: http://msdn.microsoft.com/en-us/library/aa364955(v=vs.85).aspx
After that you can execute your code above with no problems and do what it is you want to do...
Last edited on Dec 29, 2010 at 3:00am