|
LOCKTYPE
The LOCKTYPE enumeration values indicate the type of locking requested for the specified
range of bytes. The values are used in the ILockBytes::LockRegion and IStream::LockRegion methods.
Defined in the IStream interface (stream.idl).
typedef enum tagLOCKTYPE
{
LOCK_WRITE = 1,
LOCK_EXCLUSIVE = 2,
LOCK_ONLYONCE = 4
} LOCKTYPE;
Elements
LOCK_WRITE
If this lock is granted, the specified range of bytes can be opened and read
any number of times, but writing to the locked range is prohibited except for
the owner that was granted this lock.
LOCK_EXCLUSIVE
If this lock is granted, writing to the specified range of bytes is prohibited
except for the owner that was granted this lock.
LOCK_ONLYONCE
If this lock is granted, no other LOCK_ONLYONCE lock can be obtained on the
range. Usually this lock type is an alias for some other lock type. Thus,
specific implementations can have additional behavior associated with this lock type.
Related LinksSoftware for Delphi and C++ Builder developers Software for Visual Studio .NET developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference (win32.hlp) Win32 Multimedia Programmer's Reference (mmedia.hlp) Microsoft Windows Pen API Programmer's Reference (penapi.hlp) Microsoft Windows Sockets 2 Reference (sock2.hlp) Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp) Unix Manual Pages
|