CDROM_EXCLUSIVE_LOCK structure (ntddcdrm.h)

The CDROM_EXCLUSIVE_LOCK structure is used with the IOCTL_CDROM_EXCLUSIVE_ACCESS request to lock a CD-ROM device for exclusive access.

Syntax

typedef struct _CDROM_EXCLUSIVE_LOCK {
  CDROM_EXCLUSIVE_ACCESS Access;
  UCHAR                  CallerName[CDROM_EXCLUSIVE_CALLER_LENGTH];
} CDROM_EXCLUSIVE_LOCK, *PCDROM_EXCLUSIVE_LOCK;

Members

Access

A CDROM_EXCLUSIVE_ACCESS structure that specifies the type of exclusive access request and the flags that are associated with the request.

CallerName[CDROM_EXCLUSIVE_CALLER_LENGTH]

A NULL-terminated string that identifies the application or system component that has a lock on the CD-ROM device. The length of the string must be less than or equal to CDROM_EXCLUSIVE_CALLER_LENGTH bytes, including the NULL character at the end of the string. The string must contain alphanumerics (A - Z, a - z, 0 - 9), spaces, periods, commas, colons (:), semi-colons (;), hyphens (-), and underscores (_).

Requirements

Requirement Value
Header ntddcdrm.h (include Ntddcdrm.h)

See also

CDROM_EXCLUSIVE_ACCESS

IOCTL_CDROM_EXCLUSIVE_ACCESS