win32 api 取大体积文件大小

又是剽窃核心编程..

#include <stdio.h> #include <Windows.h> #include <tchar.h> #include <locale> int main() { //取文件大小 _tsetlocale(LC_CTYPE,TEXT("")); DWORD dwSizeHigh; DWORD dwSizeLow=GetCompressedFileSize(TEXT("E://Virtual Machines//Windows XP Professional//Windows XP Professional.vmdk"), &dwSizeHigh); _tprintf(TEXT("size:%I64d/n"),dwSizeLow,dwSizeHigh); _tsystem(TEXT("pause")); return 0; } 

 

你可能感兴趣的:(编程,api,XP)