VxD_CreateDevice (VxD)

The VxD_CreateDevice function creates a new instance of a device. This function can be used if your driver supports multiple devices of the same type (for example, serial smart card reader).

PVMMDDB VXDINLINE 
VxD_CreateDevice(
  char *Device, 
  void (*ControlProc)(void)
);
 

Parameters

Device
The name of the device to be created. Should not exceed eight characters.
ControlProc
The address of your driver's control procedure (usually located in an assembly language module). Do not confuse this with the driver's DeviceIoControl procedure.

Return Values

VxD_CreateDevice returns a pointer to a device description block.

Remarks

Store the returned device description block in the operating-system-dependent data structure of your device extension. You can use this value in your DeviceIoControl routine to distinguish the device instance, since you should usually use the same DeviceIoControl routine for all your instances.

This function is not available when developing WDM drivers. For a list of the functions that can be used, see WDM Driver Functions.