code: def set_boot_order(self, position, device):
          
          if not isinstance(position, baseinteger):
              raise TypeError("position can only be an instance of type baseinteger")
          if not isinstance(device, DeviceType):
              raise TypeError("device can only be an instance of type DeviceType")
          self._call("setBootOrder",
                       in_p=[position, device])
docs: Puts the given device to the specified position in
          the boot order.
          
          To indicate that no device is associated with the given position,
          :py:attr:`DeviceType.null`  should be used.
          
          @todo setHardDiskBootOrder(), setNetworkBootOrder()
  
          in position of type int
              Position in the boot order (@c 1 to the total number of
              devices the machine can boot from, as returned by
              :py:func:`ISystemProperties.max_boot_position` ).
  
          in device of type :class:`DeviceType`
              The type of the device used to boot at the given position.
  
          raises :class:`OleErrorInvalidarg`
              Boot @a position out of range.
          
          raises :class:`OleErrorNotimpl`
              Booting from USB @a device currently not supported.