fn is_win8_point1_or_greater() -> bool {
    use winapi::um::winbase::VerifyVersionInfoW;
    use winapi::um::winnt::{
        VerSetConditionMask, OSVERSIONINFOEXW, VER_GREATER_EQUAL, VER_MAJORVERSION,
        VER_MINORVERSION, VER_SERVICEPACKMAJOR,
    };
    unsafe {
        let mut info = OSVERSIONINFOEXW {
            dwOSVersionInfoSize: mem::size_of::<OSVERSIONINFOEXW>() as u32,
            dwMajorVersion: 0x6,
            dwMinorVersion: 0x3,
            wServicePackMajor: 0,
            ..mem::zeroed()
        };
        let condition_mask = VerSetConditionMask(
            VerSetConditionMask(
                VerSetConditionMask(0, VER_MAJORVERSION, VER_GREATER_EQUAL),
                VER_MINORVERSION,
                VER_GREATER_EQUAL,
            ),
            VER_SERVICEPACKMAJOR,
            VER_GREATER_EQUAL,
        );
        VerifyVersionInfoW(
            &mut info,
            VER_MAJORVERSION | VER_MINORVERSION | VER_SERVICEPACKMAJOR,
            condition_mask,
        ) != 0
    }
}
// This is an inline function in Microsoft headers, so winapi doesn't have it.
This is an inline function in Microsoft headers, so winapi doesn't have it.
This is an inline function in Microsoft headers so winapi doesn ' t have it .
fn is_win8_point1_or_greater() -> bool {
    use winapi::um::winbase::VerifyVersionInfoW;
    use winapi::um::winnt::{
        VerSetConditionMask, OSVERSIONINFOEXW, VER_GREATER_EQUAL, VER_MAJORVERSION,
        VER_MINORVERSION, VER_SERVICEPACKMAJOR,
    };
    unsafe {
        let mut info = OSVERSIONINFOEXW {
            dwOSVersionInfoSize: mem::size_of::<OSVERSIONINFOEXW>() as u32,
            dwMajorVersion: 0x6,
            dwMinorVersion: 0x3,
            wServicePackMajor: 0,
            ..mem::zeroed()
        };
        let condition_mask = VerSetConditionMask(
            VerSetConditionMask(
                VerSetConditionMask(0, VER_MAJORVERSION, VER_GREATER_EQUAL),
                VER_MINORVERSION,
                VER_GREATER_EQUAL,
            ),
            VER_SERVICEPACKMAJOR,
            VER_GREATER_EQUAL,
        );
        VerifyVersionInfoW(
            &mut info,
            VER_MAJORVERSION | VER_MINORVERSION | VER_SERVICEPACKMAJOR,
            condition_mask,
        ) != 0
    }
}
fn is_win8_point1_or_greater ( ) -> bool { use winapi :: um :: winbase :: VerifyVersionInfoW ; use winapi :: um :: winnt :: { VerSetConditionMask , OSVERSIONINFOEXW , VER_GREATER_EQUAL , VER_MAJORVERSION , VER_MINORVERSION , VER_SERVICEPACKMAJOR , } ; unsafe { let mut info = OSVERSIONINFOEXW { dwOSVersionInfoSize : mem :: size_of :: < OSVERSIONINFOEXW > ( ) as u32 , dwMajorVersion : 0x6 , dwMinorVersion : 0x3 , wServicePackMajor : 0 , .. mem :: zeroed ( ) } ; let condition_mask = VerSetConditionMask ( VerSetConditionMask ( VerSetConditionMask ( 0 , VER_MAJORVERSION , VER_GREATER_EQUAL ) , VER_MINORVERSION , VER_GREATER_EQUAL , ) , VER_SERVICEPACKMAJOR , VER_GREATER_EQUAL , ) ; VerifyVersionInfoW ( & mut info , VER_MAJORVERSION | VER_MINORVERSION | VER_SERVICEPACKMAJOR , condition_mask , ) != 0 } }
This is an inline function in Microsoft headers, so winapi doesn't have it.
This is an inline function in Microsoft headers so winapi doesn ' t have it .