value = SameLock(lock1, lock2)
    D0                D1     D2
    LONG SameLock(BPTR, BPTR)
    
   
  
    Compares two Locks.  Returns LOCK_SAME if they are on the same object, LOCK_SAME_VOLUME if on different objects on the same volume, and LOCK_DIFFERENT if they are on different volumes.  Always compare for equality or non-equality with the results, in case new return values are added.
  
  
    Should do more extensive checks for NULL against a real 
Lock, checking to see if the real 
Lock is a 
Lock on the root of the boot volume.
    In V36, it would return LOCK_SAME_VOLUME for different volumes on the same handler.  Also, LOCK_SAME_VOLUME was LOCK_SAME_HANDLER (now an obsolete #define, see 
dos/dos.h).