#include "stdafx.h"
#include<windows.h>
#include<iostream>
int _tmain(int argc, _TCHAR* argv[])
{
TCHAR * filePath=TEXT("F:\安装软件\DiffMerge_4.1.0.534.stable_x86.zip");
HANDLE hr=CreateFile(filePath,0,0,0,OPEN_EXISTING,0,0);
DWORD size=0;
if(hr==INVALID_HANDLE_VALUE)
{
size=0;
}
else
{
size=GetFileSize(hr,0);
}
CloseHandle(hr);
std::cout<<size<<std::endl;
return 0;
}