| #include <UrlMon.h> | | #include <windows.h> | | | | void main() | | { | | int argc; LPWSTR *argv; | | argv = CommandLineToArgvW(GetCommandLineW(), &argc); | | if (argc != 3) ExitProcess(1); | | if (URLDownloadToFileW(NULL, argv[1], argv[2], 0, NULL) != S_OK) | | ExitProcess(2); | | ExitProcess(0); | | }COPY |
不用CRT的话可以更小一些,有耐心的话还可以继续压缩,见http://www.phreedom.org/research/tinype/。 |