---
title: powerStateWillChangeTo
framework: kernel
role: symbol
role_heading: Instance Method
path: kernel/iokerneldebugger/1434249-powerstatewillchangeto
---

# powerStateWillChangeTo

## Declaration

```occ
virtual IOReturn powerStateWillChangeTo(IOPMPowerFlags flags, unsigned long stateNumber, IOService *policyMaker);
```
