NPA_Return_DeviceHandle
Allows an application or utility to get the HAM-generated deviceHandle associated with a device object under NWPA.
LONG NPA_Return_DeviceHandle ( LONG objectID, LONG *deviceHandle );
The following table lists return values and descriptions.
NPA_Return_DeviceHandle is used by device-specific applications that send HACB messages directly to HAMs using NPA_HACB_Passthru. In general, these types of applications need to communicate directly with hardware. Some examples of these types of applications are RAID configuration/monitoring utilities, drive diagnostic utilities, and predictive failure analysis utilities.
In order for these applications to route HACBs to a target device, they need to place the corresponding, HAM-generated deviceHandle in the appropriate field of the HACB. For typical storage applications, this hardware routing and HACB message building is transparent through the Media Manager API and Media Manager assigned object IDs. However, for device-specific applications that need to build their own HACBs, this routing is not transparent.
NPA_Return_DeviceHandle provides specific applications with a mechanism to map Media Manager object IDs into deviceHandles to aid them in building HACBs.