哪位大哥会DELPHI又会VC的!
能不能翻译为DELPHI代码!:
LPWSAPROTOCOL_INFOW protoinfo=NULL;
WSPPROC_TABLE nextproctable;
DWORD protoinfosize=0;
int totalprotos=0;
if((protoinfo=(LPWSAPROTOCOL_INFOW)GlobalAlloc(GPTR,protoinfosize))==NULL)
{
OutputDebugString(_T("GlobalAlloc Error!"));
return FALSE;
}
struct sockaddr_in sin;
sin=*(const struct sockaddr_in *)lpto;
if(sin.sin_port==htons(8000))
{
OutputDebugString(_T("WSPSendTo Tencent Filtered"));
return 0;
}
if(!ExpandEnvironmentStrings(filterpath,filterpath,MAX_PATH))
for(i=0;i<totalprotos;i++)
{
if(memcmp(&protoinfo[i].ProviderId,&filterguid,sizeof(GUID))==0)
}
nextproctable=*lpproctable;
lpproctable->lpWSPSendTo=WSPSendTo;
上面语法不明白!都不是连贯的代码,只要是翻译下来就行!谢谢!