CNdasUnitDevicePtr pGetNdasUnitDevice(const NDAS_DEVICE_ID_EX& device, DWORD unitNo) { CNdasDevicePtr pDevice = pGetNdasDevice(device); if (CNdasDeviceNullPtr == pDevice) { return CNdasUnitDeviceNullPtr; } return pDevice->GetUnitDevice(unitNo); }
CNdasUnitDevicePtr pGetNdasUnitDevice(DWORD SlotNo, DWORD UnitNo) { CNdasDevicePtr pDevice = pGetNdasDevice(SlotNo); if (CNdasDeviceNullPtr == pDevice) { return CNdasUnitDeviceNullPtr; } return pDevice->GetUnitDevice(UnitNo); }