---
title: handleStart
framework: hiddriverkit
role: symbol
role_heading: Instance Method
path: hiddriverkit/iouserusbhosthiddevice/handlestart
---

# handleStart

Performs any custom initialization associated with starting the device service.

## Declaration

```occ
virtual bool handleStart(IOService *provider);
```

## Parameters

- `provider`: The IOService provider for this object.

## Return Value

Return Value true if initialization was successful, or false if it wasn’t.

## Discussion

Discussion When defining a custom service, override this method and use it to perform any custom initialization. For example, you might allocate memory for your service’s instance variables and store a reference to the provider object for later use. Always call the super implementation of this method at some point. Don’t call this method yourself. The Start method calls it when starting up the service.

## See Also

### Running the Service

- [init](hiddriverkit/iouserusbhosthiddevice/init.md)
- [Start](hiddriverkit/iouserusbhosthiddevice/start.md)
- [Stop](hiddriverkit/iouserusbhosthiddevice/stop.md)
- [free](hiddriverkit/iouserusbhosthiddevice/free.md)
