Is there an interpreter that can give output of windows api calls such as GetVersionEx ?
Not sure if that's what you want/need, but I'd say Python with with pywin32 module.
Ruby may also be a possibility. The following is an example that shows the results of a call to GetVersionEx.
require "Win32API"
gvex = Win32API.new( 'kernel32', 'GetVersionEx', ['P'], 'I' )
s = [20+128, 0, 0, 0, 0, '' ].pack('LLLLLa128')
gvex.call( s );
a = s.unpack( 'LLLLLa128' )
puts "gvex: ", a
This example just passes 148 bytes (the size of the OSVERSION
structure) rather than the entire OSVERSIONEX structure.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With