Displaying 1 result from an estimated 1 matches for "cimv".
Did you mean:
cim
2004 Dec 10
1
Modification for mkmf
...sic
code I''ve come up with:
require "mkmf"
require "win32ole"
require "socket"
# We need to get the exact version number and set _WIN32_WINNT
accordingly
host = Socket.gethostname
cs =
"winmgmts:{impersonationLevel=impersonate,(security)}//#{host}/root/cimv
2"
wmi = WIN32OLE.connect(cs)
major = nil
minor = nil
wmi.InstancesOf("Win32_OperatingSystem").each{ |ole|
major, minor = ole.Version.split(".").map{ |e| e.to_i }
break
}
win32_winnt = nil
# The value for Windows NT 4 and Windows 95 are the same.
# The value...