anchor.diff:          expect(GetDialogDpiChangeBehavior, isA<Function>());
         });
       }
  -    test('Can instantiate GetDisplayAutoRotationPreferences', () {
  -      final user32 = DynamicLibrary.open('user32.dll');
  -      final GetDisplayAutoRotationPreferences = user32.lookupFunction<
  -              Int32 Function(Pointer<Uint32> pOrientation),
  -              int Function(Pointer<Uint32> pOrientation)>(
  -          'GetDisplayAutoRotationPreferences');
  -      expect(GetDisplayAutoRotationPreferences, isA<Function>());
  -    });
  +    if (windowsBuildNumber >= 9200) {
  +      test('Can instantiate GetDisplayAutoRotationPreferences', () {
  +        final user32 = DynamicLibrary.open('user32.dll');
  +        final GetDisplayAutoRotationPreferences = user32.lookupFunction<
  +                Int32 Function(Pointer<Uint32> pOrientation),
  +                int Function(Pointer<Uint32> pOrientation)>(
  +            'GetDisplayAutoRotationPreferences');
  +        expect(GetDisplayAutoRotationPreferences, isA<Function>());
  +      });
  +    }
       test('Can instantiate GetDlgItem', () {
         final user32 = DynamicLibrary.open('user32.dll');
         final GetDlgItem = user32.lookupFunction<
  
positive.code:               Pointer<Uint32> pcchProvider)>('SCardGetCardTypeProviderNameW');
        expect(SCardGetCardTypeProviderName, isA<Function>());
      });
      test('Can instantiate SCardGetDeviceTypeId', () {
        final winscard = DynamicLibrary.open('winscard.dll');
        final SCardGetDeviceTypeId = winscard.lookupFunction<
            Int32 Function(IntPtr hContext, Pointer<Utf16> szReaderName,
                Pointer<Uint32> pdwDeviceTypeId),
            int Function(int hContext, Pointer<Utf16> szReaderName,
                Pointer<Uint32> pdwDeviceTypeId)>('SCardGetDeviceTypeIdW');
        expect(SCardGetDeviceTypeId, isA<Function>());
      });
      test('Can instantiate SCardGetProviderId', () {
        final winscard = DynamicLibrary.open('winscard.dll');
        final SCardGetProviderId = winscard.lookupFunction<
  
negative.code:               int cbAttribute)>('DwmSetWindowAttribute');
        expect(DwmSetWindowAttribute, isA<Function>());
      });
      if (windowsBuildNumber >= 9200) {
        test('Can instantiate DwmShowContact', () {
          final dwmapi = DynamicLibrary.open('dwmapi.dll');
          final DwmShowContact = dwmapi.lookupFunction<
              Int32 Function(Uint32 dwPointerID, Uint32 eShowContact),
              int Function(int dwPointerID, int eShowContact)>('DwmShowContact');
          expect(DwmShowContact, isA<Function>());
        });
      }
    });
  
    group('Test shcore functions', () {
  