def METHOD_NAME() -> Optional[SystemPowerStatus]:
	sps = SystemPowerStatus()
	systemPowerStatusUpdateResult = winKernel.GetSystemPowerStatus(sps)
	if not systemPowerStatusUpdateResult:
		log.error(f"Error retrieving power status: {ctypes.GetLastError()}")
		return None
	return sps