winapi - How to use IsNetworkAlive function (Win32API) in Ruby? -
i need use function watir, returns 1, if manually cut off connection.
require 'win32api' isnetworkalive = win32api.new('sensapi.dll','isnetworkalive', nil, 'i') boolean = isnetworkalive.call()
not sure if parameters given though...
1st required dll , according bill gates' site, sensapi.dll. 2nd name of function want instantiate. isnetworkalive, is. 3rd type of function's parameter. none, hence nil. 4th type of return value. um, it's boolean, ruby have it. should either 0 or 1, use int, perhaps.
Comments
Post a Comment