// ScolInstaller.h: interface for the ScolInstaller class.
//
//////////////////////////////////////////////////////////////////////


#include <windows.h>
#include <stdio.h>
#include <wininet.h>
#include "resource.h"
#include <commctrl.h>

extern HINSTANCE PlugInDllHINSTANCE;

#if !defined(AFX_SCOLINSTALLER_H__C7D9DAB2_1E87_450F_B00C_B09D82C62C44__INCLUDED_)
#define AFX_SCOLINSTALLER_H__C7D9DAB2_1E87_450F_B00C_B09D82C62C44__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class ScolInstaller  
{
public:
	ScolInstaller(const char * DWURL, const long Size);
	virtual ~ScolInstaller();
	bool LaunchInstaller(HWND PlugHWND);
	bool DownloadFile(HWND hDlg,char * InstallFileName);	
	bool ExecInstall(char * ExeName);
private:
	char m_strDownloadURL[1024];
	long m_longDownloadSize;
	bool DownloadLoop(HWND hX, HINTERNET hResource,FILE* file);
};

#endif // !defined(AFX_SCOLINSTALLER_H__C7D9DAB2_1E87_450F_B00C_B09D82C62C44__INCLUDED_)
