def RtlGetVersion(os_version_info_struct):
 rc = ctypes.windll.Ntdll.RtlGetVersion(ctypes.byref(os_version_info_struct))
 if (rc != 0):
  raise exceptions.WindowsError('Getting Windows version failed.')

def RtlGetVersion ( os_version_info_struct ) : rc = ctypes . windll . Ntdll . RtlGetVersion ( ctypes . byref ( os_version_info_struct ) ) if ( rc != 0 ) : raise exceptions . WindowsError ( 'Getting Windows version failed.' )
wraps the lowlevel rtlgetversion routine .