ChangerClassCreate function (mcd.h)

The ChangerClassCreate routine is called by a changer minidriver to allow the class driver perform device-independent operations needed to create or close a device.

Syntax

NTSTATUS ChangerClassCreate(
  [in] PDEVICE_OBJECT DeviceObject,
  [in] PIRP           Irp
);

Parameters

[in] DeviceObject

Pointer to the device object of the device to be created or closed.

[in] Irp

Pointer to the I/O request packet (IRP) that initiated the create or close operation.

Return value

If the operation succeeds, the ChangerClassCreate routine returns STATUS_SUCCESS. Otherwise the routine returns one of the following status values.

Return code Description
STATUS_NO_SUCH_DEVICE
The device object does not have a properly initialized device extension.
STATUS_DEVICE_BUSY
The device is already open. Only one open at a time is allowed.

Requirements

Requirement Value
Target Platform Desktop
Header mcd.h (include Mcd.h, Ntddchgr.h)