if GetSystemMetrics(SM_NETWORK) AND $01 = $01 then ShowMessage('Machine is attached to network') elseShowMessage('Machine is not attached to network'
if GetSystemMetrics(SM_NETWORK) AND $01 = $01 then .这个要自己不断的运行监测啊!!!
if GetSystemMetrics(SM_NETWORK) AND $01 = $01 then 这个if语句的条件怎么这么怪AND $01 = $01呵呵,不懂,,各位老大,帮解释一下,,
SM_NETWORKThe least significant bit is set if a network is present; otherwise, it is cleared. The other bits are reserved for future use.意思是检测字节的最后一位if ((GetSystemMetrics(SM_NETWORK) AND $01) = $01) then不好意思,pascal语法不强
我以前改過到delphi, 但不成功
ShowMessage('Machine is attached to network') elseShowMessage('Machine is not attached to network'
.这个要自己不断的运行监测啊!!!
这个if语句的条件怎么这么怪AND $01 = $01呵呵,不懂,,各位老大,帮解释一下,,
用IsNetworkAlive这个API,检测网络能用就行了
结了,,感觉两位虾关注,