anchor.diff:    Size(this.width, this.height);
   }
   
  -enum DIGCF {
  -  DIGCF_DEFAULT,
  -  DIGCF_PRESENT,
  -  DIGCF_ALLCLASSES,
  -  DIGCF_PROFILE,
  -  DIGCF_DEVICEINTERFACE,
  -}
  -
  -extension DIGCFValues on DIGCF {
  -  int get value {
  -    switch (this) {
  -      case DIGCF.DIGCF_DEFAULT:
  -        return 0x00000001;
  -      case DIGCF.DIGCF_PRESENT:
  -        return 0x00000002;
  -      case DIGCF.DIGCF_ALLCLASSES:
  -        return 0x00000004;
  -      case DIGCF.DIGCF_PROFILE:
  -        return 0x00000008;
  -      case DIGCF.DIGCF_DEVICEINTERFACE:
  -        return 0x00000010;
  -    }
  -  }
  -}
  -
  -enum DICS_FLAG {
  -  DICS_FLAG_GLOBAL,
  -  DICS_FLAG_CONFIGSPECIFIC,
  -  DICS_FLAG_CONFIGGENERAL,
  -}
  -
  -extension DICS_FLAGValues on DICS_FLAG {
  -  int get value {
  -    switch (this) {
  -      case DICS_FLAG.DICS_FLAG_GLOBAL:
  -        return 0x00000001;
  -      case DICS_FLAG.DICS_FLAG_CONFIGSPECIFIC:
  -        return 0x00000002;
  -      case DICS_FLAG.DICS_FLAG_CONFIGGENERAL:
  -        return 0x00000004;
  -    }
  -  }
  -}
  -
  -enum DIREG {
  -  DIREG_DEV,
  -  DIREG_DRV,
  -  DIREG_BOTH,
  -}
  -
  -extension DIREGValues on DIREG {
  -  int get value {
  -    switch (this) {
  -      case DIREG.DIREG_DEV:
  -        return 0x00000001;
  -      case DIREG.DIREG_DRV:
  -        return 0x00000002;
  -      case DIREG.DIREG_BOTH:
  -        return 0x00000004;
  -    }
  -  }
  -}
  -
  -enum REG_RIGHTS {
  -  KEY_READ,
  -  KEY_WRITE,
  -}
  -
  -extension REG_RIGHTSValues on REG_RIGHTS {
  -  int get value {
  -    switch (this) {
  -      case REG_RIGHTS.KEY_READ:
  -        return 131097;
  -      case REG_RIGHTS.KEY_WRITE:
  -        return 131078;
  -    }
  -  }
  -}
  -
   Size getMonitorSizeInMM() {
     const GUID_CLASS_MONITOR = '{4d36e96e-e325-11ce-bfc1-08002be10318}';
     final guidptr = calloc<GUID>();
   
     guidptr.ref.setGUID(GUID_CLASS_MONITOR);
     // Get the handle for the first monitor.
  -  final ptr = SetupDiGetClassDevs(guidptr, nullptr, 0, DIGCF.DIGCF_PRESENT.value);
  +  final ptr = SetupDiGetClassDevs(guidptr, nullptr, 0, DIGCF_PRESENT);
     var width = 0;
     var height = 0;
   
  
positive.code: }
  
  Size getMonitorSizeInMMBackup() {
    final hwnd = calloc<IntPtr>();
    final hdc = GetDC(hwnd.value);
    final width = GetDeviceCaps(hdc, 4);
    final height = GetDeviceCaps(hdc, 6);
  
negative.code:   return Size(width.toDouble(), height.toDouble());
  }
  
  void main() {
    final size = getMonitorSizeInMM();
    print(
        'Physical Size of Monitor: Width: ${size.width}mm Height: ${size.height}mm');
    final sizeBackup = getMonitorSizeInMMBackup();
    print(
        'Physical Size of Monitor Backup: Width: ${sizeBackup.width}mm Height: ${sizeBackup.height}mm');
  }
  