home *** CD-ROM | disk | FTP | other *** search
- SYNCHRONIZATION SERVICES
- ========================
-
- --------------------------------------------------------------------------------
-
- ClearFile (FileName : PathNameType) : WORD;
-
- Unlocks the specified file and removes it from the log table of the
- requesting workstation.
-
- FileName (Input) : filename and optional full path of the
- file to clear.
-
- --------------------------------------------------------------------------------
-
- ClearFileSet
-
- Unlocks and removes all files in the log table of the requesting
- workstation.
-
- --------------------------------------------------------------------------------
-
- ClearLogicalRecord (LogicalRecordName : LogicalRecordNameType) : WORD;
-
- Unlocks a logical records and removes them from the log table of the
- requesting workstation.
-
- LogicalRecordName (Input) : string containing the logical record
- name.
-
- --------------------------------------------------------------------------------
-
- ClearLogicalRecordSet
-
- Unlocks all logical records in the log table of the requesting workstation
- and removes them from the log table.
-
- --------------------------------------------------------------------------------
-
- ClearPhysicalRecord (FileHandle : WORD; RecordOffset,
- RecordLength : LONGINT) : WORD;
-
- Unlocks a Physical record and removes them from the log table of the
- requesting workstation.
-
- FileHandle (Input) : DOS file handle of the file containing
- the record to be cleared.
-
- RecordOffset (Input) : offset within the file where the record
- begins.
-
- RecordLength (Input) : length of the record to clear.
-
- --------------------------------------------------------------------------------
-
- ClearPhysicalRecordSet
-
- Unlocks all physical records in the log table of the requesting workstation
- and removes them from the log table.
-
- --------------------------------------------------------------------------------
-
- CloseSemaphore (SemaphoreHandle : LONGINT) : WORD;
-
- Closes a semaphore.
-
- SemaphoreHandle (Input) : semaphore handle of an open semaphore.
-
- --------------------------------------------------------------------------------
-
- ExamineSemaphore (SemaphoreHandle : LONGINT; VAR SemaphoreValue : WORD;
- VAR OpenCount : WORD) : WORD;
-
- Returns the current value and open count for a semaphore.
-
- SemaphoreHandle (Input) : semaphore handle of the semaphore to
- examine.
-
- SemaphoreValue (Output) : value of the semaphore.
-
- OpenCount (Output) : number of processes that have the
- semaphore open.
-
- --------------------------------------------------------------------------------
-
- GetLockMode : WORD;
-
- Returns the current lock mode.
-
- --------------------------------------------------------------------------------
-
- LockFileSet (TimeOut : WORD) : WORD;
-
- Attempts to lock all files in the log table of the requesting workstation.
-
- TimeOut (Input) : timeout value.
-
- --------------------------------------------------------------------------------
-
- LockLogicalRecordSet (LockDirective : BYTE; TimeOut : WORD) : WORD;
-
- Attempts to lock all logical records in the log table of the requesting
- workstation.
- NOTE : LOCK MODE MUST BE SET TO 1 FOR THIS CALL TO FUNCTION CORRECTLY.
-
- LockDirective (Input) : indicates if and how the record should
- be locked.
-
- 0 = log record.
- 1 = log and lock record with an
- exclusive lock.
- 3 = log and lock record with a
- shareable readonly lock.
-
- TimeOut (Input) : timeout value.
-
- --------------------------------------------------------------------------------
-
- LockPhysicalRecordSet (LockDirective : BYTE; TimeOut : WORD) : WORD;
-
- Attempts to lock all Physical records in the log table of the requesting
- workstation.
-
- LockDirective (Input) : indicates if and how the record should
- be locked.
-
- 0 = lock records with exclusive locks.
- 1 = lock records with shareable readonly
- locks.
-
- TimeOut (Input) : timeout value.
-
- --------------------------------------------------------------------------------
-
- LogFile (FileName : PathNameType; LockDirective : BYTE;
- TimeOut : WORD) : WORD;
-
- Logs a file into the log table of the requesting workstation and,
- optionally, locks the file.
-
- FileName (Input) : filename and optional full path.
-
- LockDirective (Input) : indicates how the file should be locked.
-
- 0 = log file.
- 1 = log and lock file.
- 2 = log and lock shareable.
-
- TimeOut (Input) : timeout value. (only valid if
- LOCKMODE = 1)
-
- --------------------------------------------------------------------------------
-
- LogLogicalRecord (LogicalRecordName : LogicalRecordNameType;
- LockDirective : BYTE; TimeOut : WORD) : WORD;
-
- Logs a logical record string into the log table of the requesting
- workstation and, optionally, locks the record.
-
- LogicalRecordName (Input) : string containing the record name.
-
- LockDirective (Input) : indicates if and how the record should
- be locked.
-
- 0 = log record.
- 1 = log and lock record with an
- exclusive lock.
- 3 = log and lock record with a
- shareable readonly lock.
-
- TimeOut (Input) : timeout value. (only valid if LOCKMODE
- not equal to 0)
-
- --------------------------------------------------------------------------------
-
- LogPhysicalRecord (FileHandle : WORD; RecordOffset, RecordLength : LONGINT;
- LockDirective : BYTE; TimeOut : WORD) : WORD;
-
- Logs a physical record into the log table of the requesting workstation
- and, optionally, locks the record.
-
- FileHandle (Input) : DOS file handle of the file containing
- the record to be logged.
-
- RecordOffset (Input) : offset within the file where the record
- begins.
-
- RecordLength (Input) : length of the record.
-
- LockDirective (Input) : indicates if and how the record should
- be locked.
-
- 0 = lock records with exclusive locks.
- 1 = lock records with shareable readonly
- locks.
-
- TimeOut (Input) : timeout value. (only valid if LOCKMODE
- not equal to 0)
-
- --------------------------------------------------------------------------------
-
- OpenSemaphore (SemaphoreName : SemaphoreNameType; InitialValue : WORD;
- VAR SemaphoreHandle : LONGINT; VAR OpenCount : WORD) : WORD;
-
- Opens the specified semaphore or creates it if it does not exist.
-
- SemaphoreName (Input) : name of the semaphore to open.
-
- InitialValue (Input) : inital value of the semaphore. Only
- applies if semaphore does not yet
- exist.
-
- SemaphoreName (Output) : returns the semaphore handle.
-
- OpenCount (Output) : receives the number of processes that
- have the semaphore open.
-
- --------------------------------------------------------------------------------
-
- ReleaseFile (FileName : PathNameType) : WORD;
-
- Unlocks the specified file in the log table of the requesting workstation
- but does not delete the file.
-
- FileName (Input) : filename containing optional full path.
-
- --------------------------------------------------------------------------------
-
- ReleaseFileSet
-
- Unlocks all files currently locked in the log table of the requesting
- workstation but does not delete them from the table.
-
- --------------------------------------------------------------------------------
-
- ReleaseLogicalRecord (LogicalRecordName : LogicalRecordNameType) : WORD;
-
- Unlocks a logical record in the log table of the requesting workstation but
- does not remove the record from the table.
-
- LogicalRecordName (Input) : logical record name to release.
-
- --------------------------------------------------------------------------------
-
- ReleaseLogicalRecordSet
-
- Unlocks all logical records currently locked in the log table of the
- requesting workstation but does not remove them from the log table.
-
- --------------------------------------------------------------------------------
-
- ReleasePhysicalRecord (FileHandle : WORD; RecordOffset,
- RecordLength : LONGINT) : WORD;
-
- Unlocks a physical record in the log table of the requesting workstation but
- does not remove the record from the table.
-
- FileHandle (Input) : DOS file handle of the file containing
- the record to be logged.
-
- RecordOffset (Input) : offset within the file where the record
- begins.
-
- RecordLength (Input) : length of the record.
-
- --------------------------------------------------------------------------------
-
- ReleasePhysicallRecordSet
-
- Unlocks all physical records currently locked in the log table of the
- requesting workstation but does not remove them from the log table.
-
- --------------------------------------------------------------------------------
-
- SetLockMode (LockMode : BYTE) : WORD;
-
- Sets the lock mode.
-
- LockMode (Input) : indicates how Netware handles the
- locking functions.
-
- 0 = compatibility lock mode.
- (Netware v4.6 and earlier)
- 1 = extended lock mode.
- (Netware v2.x and later)
-
- --------------------------------------------------------------------------------
-
- SignalSemaphore (SemaphoreHandle : LONGINT) : WORD;
-
- Increments the value of a semaphore.
-
- SemaphoreHandle (Input) : semaphore handle of an open semaphore.
-
- --------------------------------------------------------------------------------
-
- WaitOnSemaphore (SemaphoreHandle : LONGINT; TimeOut : WORD) : WORD;
-
- Decrements the value of a semaphore.
-
- SemaphoreHandle (Input) : semaphore handle of the semaphore to
- decrement.
-
- Timeout (Input) : timeout value.
- ------------------------------------------------------------------------------