BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Reordering Protocols

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Tue Mar 29, 2005 6:48 am    Post subject: Reordering Protocols Reply with quote



Hi,

Ofter installing my LSP and new chain I have to change order of protocols to make windows
use my chain instead of the old one. WSCWriteProviderOrder call is not working. I am
filling a memory block with Catalog IDs(DWORD) and trying to pass it. All I am receiving
is bad parameter error also a message box appears telling too many protocols(even less
then current provider count also it returns same with nil parameter as pointer). I am sure
there is a memory acess problem for the dll.

var
CatIDs, tmpID: LPDWORD;
begin
CatIDs := GetMemory(SizeOf(DWORD)*Count);
..
..// Filled with new order
..
ret := WSCWriteProviderOrder(CatIDs, Count);

I really don't know why this is happening, everthing seems OK. Is it possible to have a
problem about allocated memory location etc ? Example from msdn and sporder.exe is running
without problems. I am also able to make windows use my LSP chain by reordering protocols
using sporder.exe. I am locked, It is nearly impossible to find detailed instructions or
example about this topic so do not hesitate to share your ideas.

Regards


Back to top
Guest






PostPosted: Tue Mar 29, 2005 11:38 pm    Post subject: Re: Reordering Protocols Reply with quote



OK, I've solved, it was my stupidity, i did not add stdcall keyword while definin function
from spoerder.dll...


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.