aboutsummaryrefslogtreecommitdiff
path: root/vboxdev.h
diff options
context:
space:
mode:
Diffstat (limited to 'vboxdev.h')
-rw-r--r--vboxdev.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/vboxdev.h b/vboxdev.h
index 93a0a7d..15db0e1 100644
--- a/vboxdev.h
+++ b/vboxdev.h
@@ -1267,6 +1267,25 @@ typedef struct _SHFLCREATEPARMS
} SHFLCREATEPARMS;
#pragma pack(pop)
+/** Lock mode bit mask. */
+#define SHFL_LOCK_MODE_MASK (0x3)
+/** Cancel lock on the given range. */
+#define SHFL_LOCK_CANCEL (0x0)
+/** Acquire read only lock. Prevent write to the range. */
+#define SHFL_LOCK_SHARED (0x1)
+/** Acquire write lock. Prevent both write and read to the range. */
+#define SHFL_LOCK_EXCLUSIVE (0x2)
+
+/** Do not wait for lock if it can not be acquired at the time. */
+#define SHFL_LOCK_NOWAIT (0x0)
+/** Wait and acquire lock. */
+#define SHFL_LOCK_WAIT (0x4)
+
+/** Lock the specified range. */
+#define SHFL_LOCK_PARTIAL (0x0)
+/** Lock entire object. */
+#define SHFL_LOCK_ENTIRE (0x8)
+
/** @name Shared Folders mappings.
* @{
*/