Click here to Skip to main content
16,004,901 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please help me to create some kind of example plugin for Internet Download Accelerator in VC++. There are sources for example plugin, but in Delphi [dmtest_plugin.zip]
Posted
Updated 17-Jan-11 22:44pm
v2

I guess you need to read this, hopefully you will find the information useful:
Implementing a Custom Download Manager[^]

I'm trying to point you in the right direction, I know it's not a full answer.

You may also be interested in the BitTorrent protocol[^] or something similar. It will not actually accelerate the download, but distribute the process. This may result in better download times. It's just an idea ...

Regards
Espen Harlinn
 
Share this answer
 
Comments
V01T 18-Jan-11 5:48am    
Thx ... i write ... but not work ... i write wrong code ... i hope that someone will correct my mistakes
http://www.datafilehost.com/download-122f1560.html
Emm test example of a plugin he is dmtest_plugin.zip in my attach :(
I need example plugin for Internet Download Accelerator on VC++ :(
 
Share this answer
 
Rewritten DMPluginIntf.pas, true or not, I do not know
#pragma once
#pragma pack(push, 8)

#include <comdef.h>

struct __declspec(uuid("b412b405-0578-4b99-bb06-368cda0b2f8c"))
IDMInterface : IUnknown
{
	//выполнить какие-либо действия в ДМ
	virtual HRESULT __stdcall DoAction ( 		/*[in]*/ BSTR action,
												/*[in]*/ BSTR parameters,
												/*[out,retval]*/ BSTR * pVal ) = 0;
}

struct __declspec(uuid("959cd0d3-83fd-40f7-a75a-e5c6500b58df"))
IDMPlugIn : IUnknown
{
	//выполнить какие-либо действия в ДМ
	virtual HRESULT __stdcall getID ( 			/*[out,retval]*/ BSTR * pVal ) = 0;
	
	virtual HRESULT __stdcall GetName ( 		/*[out,retval]*/ BSTR * pVal ) = 0;
	
	virtual HRESULT __stdcall GetVersion ( 		/*[out,retval]*/ BSTR * pVal ) = 0;
	
	virtual HRESULT __stdcall GetDescription ( 	/*[in]*/ BSTR language,
												/*[out,retval]*/ BSTR * pVal ) = 0;
	
	virtual HRESULT __stdcall GetEmail ( 		/*[out,retval]*/ BSTR * pVal ) = 0;
	
	virtual HRESULT __stdcall GetHomepage ( 	/*[out,retval]*/ BSTR * pVal ) = 0;
	
	virtual HRESULT __stdcall GetCopyright ( 	/*[out,retval]*/ BSTR * pVal ) = 0;
	
	virtual HRESULT __stdcall GetMinAppVersion (/*[out,retval]*/ BSTR * pVal ) = 0;
	
	virtual HRESULT __stdcall PluginInit ( 		/*[in]*/ IDmInterface * _IDmInterface ) = 0;

	virtual HRESULT __stdcall PluginConfigure ( /*[in]*/ BSTR params ) = 0;
	
	virtual HRESULT __stdcall BeforeUnload ( ) = 0;
	
	virtual HRESULT __stdcall EventRaised ( 	/*[in]*/ BSTR eventType,
												/*[in]*/ BSTR eventData,
												/*[out,retval]*/ BSTR * pVal ) = 0;
}

#pragma pack(pop)
 
Share this answer
 
Hope INTERNET DOWNLOAD ACCELERATOR[^] will give you an idea.
 
Share this answer
 
v2
Thx Espen Harlinn
... i write ... but not work ... i write wrong code ... i hope that someone will correct my mistakes

http://www.datafilehost.com/download-122f1560.html
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900