CDI_Register_CDM
Registers a CDM with NWPA.
LONG CDI_Register_CDM ( LONG *cdmOSHandle, LONG cdmHandle, LONG types, BYTE *name, LONG npaHandle );
Figure 6-1 types parameter
Possible values for CDM types:
Value |
Description |
---|---|
0x01 |
Base-Translator (These have binding priority over Generic Base-Translators) |
0x02 |
Enhancer |
0x03 |
Filter |
0x04 |
Generic Base-Translator |
Possible values for device types:
Value |
Description |
---|---|
0x00 |
Direct-access device (magnetic disk) |
0x01 |
Sequential-access device (magnetic tape) |
0x02 |
Printer device |
0x03 |
Processor device |
0x04 |
Write once device (some optical disks) |
0x05 |
CD device |
0x06 |
Scanner device |
0x07 |
Optical memory device (some optical disks) |
0x08 |
Media changer device (jukebox) or magazine |
0x09 |
Communications device |
0x0A-0B |
Defined by ASC IT8 (Graphic Arts Pre-Press) |
0x0C-1E |
Reserved |
0x1F |
Unknown or no device type |
0xFF |
Call CDM_Inquiry for every type of device |
Possible values for host adapter bus types:
The following table lists return values and descriptions.
CDI_Register_CDM is used to register the module as a CDM and make its entry points, registered during NPA_Register_CDM_Module, visible to the system. This is the last function called within CDM_Load prior to CDM_Load returning its thread to the OS calling process.