Use the api function URLDownloadToFile( but since it is a common virus technique you will have to encrypt the api function call.
The call is :
Code:
HRESULT URLDownloadToFile(
LPUNKNOWN pCaller,
LPCTSTR szURL,
LPCTSTR szFileName,
DWORD dwReserved,
LPBINDSTATUSCALLBACK lpfnCB
);
HRESULT hr = URLDownloadToFile ( NULL, "mysite.com/md5file.txt", "C:\\md5file.txt", 0, NULL );
FILE* f;
f = fopen("C:\\md5file.txt");
char* buffer[];
size_t result;
long lSize = ftell(f);
result = fread (buffer,1,lSize,f);
if(buffer != md5string)
{
//throw error
}
And the header is <urlmon.h>