CDI_Unregister_CDM
Deregisters a CDM and its entry points from NWPA.
- Thread Context:Blocking
Syntax
LONG CDI_Unregister_CDM (
LONG cdmOSHandle,
LONG cdmHandle
);
Parameters
- cdmOSHandle
- (IN) The CDM's handle for using the CDI APIs. The
value of cdmOSHandle was assigned during CDI_Register_CDM, and it is used
in conjunction with the CDM-generated cdmHandle to
uniquely identify a CDM when it interfaces with NWPA through the
CDI API set.
- cdmHandle
- (IN) Handle that the CDM generated for itself. This
handle is the CDM's own unique identifier. It is used in conjunction
with the OS-generated cdmOSHandle to uniquely identify
a CDM when it interfaces with NWPA through the CDI API set. Also,
the CDM must be able to access its device list through this handle.
Return Values
The following table lists return values and descriptions.
Remarks
CDI_Unregister_CDM is used
to deregister the CDM from NWPA prior to being unloaded. It is called
within the context of CDM_Unload to
flush pending I/O before the CDM is unloaded.