// storport.h
ULONG StorPortGetHighestNodeNumber(
[in] PVOID HwDeviceExtension,
[out] PULONG HighestNode
);
View the official Windows Driver Kit DDI referenceNo description available.
The StorPortGetHighestNodeNumber routine returns the largest possible node number on the system.
HwDeviceExtension [in]A pointer to the hardware device extension for the host bus adapter (HBA).
HighestNode [out]A pointer to a variable that holds the highest-numbered node.
The StorPortGetHighestNodeNumberroutine returns one of the following status codes:
| Return code | Description |
|---|---|
| STOR_STATUS_NOT_IMPLEMENTED | This function is not implemented on the active operating system. |
| STOR_STATUS_SUCCESS | The operation was successful. |
| STOR_STATUS_INVALID_PARAMETER | The operation fails with this return value if one or more of the parameters are invalid, for example, if HighestNode is set to NULL. |