# PxIOGetServiceOption

> Source: https://manual.pvxplus.com/pxio-library/library-functions/service-functions/pxiogetserviceoption

## Description

Returns the current value of a service option

## Format

**int** **PxIOGetServiceOption(PxIOService service, PxIOServiceOptionType type, int \*value);**

***Where:***

|  |  |
| --- | --- |
| **service** | A valid PxIOService handle. See **[PxIOCreateService](https://manual.pvxplus.com/pxio-library/library-functions/service-functions/pxiocreateservice)** for more information on creating a service and obtaining a service handle. |
| **type** | Service option value to retrieve. The available service options are listed in **[Appendix B](https://manual.pvxplus.com/pxio-library/library-functions/appendix-references/appendix-b)**. |
| **value** | Storage to be used to save the option value |

## Return Value

If the function succeeds, a value of PXIO_SUCCESS_STATUS is returned; otherwise, an error value is returned. More information on the nature of the error can be found by calling **[PxIOGetError](https://manual.pvxplus.com/pxio-library/library-functions/error-functions/pxiogeterror)**.
