---
title: UserTargetPresentForID
framework: SCSIControllerDriverKit
role: symbol
role_heading: Instance Method
path: scsicontrollerdriverkit/iouserscsiparallelinterfacecontroller/usertargetpresentforid
---

# UserTargetPresentForID

Checks if a specific target is present.

## Declaration

```occ
virtual kern_return_t UserTargetPresentForID(SCSIDeviceIdentifier targetID, bool *result);
```

## Parameters

- `targetID`: The ID of the target to check.
- `result`: A pointer to a Boolean value that the framework sets to true if the target is present and false otherwise.

## Return Value

Return Value A value that indicates the result of checking for the target’s existence. kIOReturnSuccess indicates success. For error definitions, see IOKit Constants.

## Discussion

Discussion Your driver extension can call this method to determine if a target ID is actually present.

## See Also

### Managing targets

- [UserInitializeTargetForID](scsicontrollerdriverkit/iouserscsiparallelinterfacecontroller/userinitializetargetforid.md)
- [UserCreateTargetForID](scsicontrollerdriverkit/iouserscsiparallelinterfacecontroller/usercreatetargetforid.md)
- [UserDestroyTargetForID](scsicontrollerdriverkit/iouserscsiparallelinterfacecontroller/userdestroytargetforid.md)
- [UserSetTargetProperties](scsicontrollerdriverkit/iouserscsiparallelinterfacecontroller/usersettargetproperties.md)
- [UserRemoveTargetProperties](scsicontrollerdriverkit/iouserscsiparallelinterfacecontroller/userremovetargetproperties.md)
