int ok = hw_ExLock(APTR handle, struct hwos_ExLockStruct *exlock);
struct hwos_ExLockStruct which has to be passed in parameter 2.
struct hwos_ExLockStruct looks like this:
struct hwos_ExLockStruct
{
int nStructSize; // [in]
STRPTR Name; // [out]
int Type; // [out]
ULONG Size; // [out]
ULONG Flags; // [out]
};
|
Here's a description of the individual structure members:
nStructSize:sizeof(struct hwos_ExLockStruct) before
calling hw_ExLock().
Name:NULL. Use hw_NameFromLock()
to get the fully-qualified path to this file system object.
Type:
HWEXLOCKTYPE_FILE:
HWEXLOCKTYPE_DIRECTORY:
Size:
Flags:This function is thread-safe.
struct hwos_ExLockStruct for storing information
about the file system objectTrue on success, False otherwise