10月 032012
 

1、通过IP取MAC地址 uses WinSock; Function sendarp(ipaddr:ulong; temp:dword; ulmacaddr:pointer; ulmacaddrleng:pointer) : DWord; StdCall; External ‘Iphlpapi.dll’ Name ‘SendARP’; procedure TForm1.Button1Click(Sender: TObject); var myip:ulong; mymac:array[0..5] of byte; mymaclength:ulo

阅读全文
8月 232012
 

下面是Socket Error的错误码和描述: Socket error 0 – Directly send error Socket error 10004 – Interrupted function call Socket error 10013 – Permission denied Socket error 10014 – Bad address Socket error 10022 – Invalid argument Socket error 10024 – Too many open files Socke

阅读全文
8月 022012
 

Use windows api to download file in delphi

above is the code

阅读全文