Unit 'AmigaDOS' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

SameDevice

Are two locks are on partitions of the device?

Declaration

Source position: amigados.pas line 2270

function SameDevice(

  lock1: LongInt;

  lock2: LongInt

):LongBool;

Arguments

lock1

  

Lock to compare

lock2

  

Lock to compare

Function result

Whether they're on the same device as far as Dos can determine. DosTrue

Description

SameDevice() returns whether two locks refer to partitions that are on the same physical device (if it can figure it out). This may be useful in writing copy routines to take advantage of asynchronous multi-device copies.


Documentation generated on: 2021-07-30