最新消息:

获取本机IP

nsis 永恒心锁 1634浏览 0评论
SetCompressor lzma
OutFile "Test.exe"
Name "获取本机IP"
Section
 System::Alloc 400
 Pop $0
 System::Call Ws2_32::WSAStartup(i0x0202,ir0)i.r1
 StrCmp $1 0 0 WSAStartup_failed
 System::Call Ws2_32::gethostname(t.r1,i1024)
 System::Call Ws2_32::gethostbyname(tr1)i.r1
 System::Call *$1(i,i,&i2,&i2,*i.r1)
 System::Call *$1(i.r1)
 System::Call Ws2_32::inet_ntoa(ir1)t.r1
 MessageBox MB_ICONINFORMATION|MB_OK "$1"
 System::Call Ws2_32::WSACleanup()
WSAStartup_failed:
 System::Free $0
SectionEnd
永恒心锁,版权所有丨如未注明,均为转载丨本网站采用BY-NC-SA协议进行授权

转载请注明:永恒心锁-分享互联网 » 获取本机IP

您必须 登录 才能发表评论!