# PDL_GetOSVersion

## Description

Sets the passed version struct to the webOS version currently running on the device. The major, minor and revision numbers are set in the `PDL_OSVersion` struct and returned. For example, if the current version is "1.4.5", then 1 is returned as the majorVersion, 4 is returned as the minorVersion, and 5 is returned as the revision number.

In case there are more than three numbers, the full webOS version is also returned as a string, i.e., "Palm WebOS 1.4.5.1".

To get the PDK version, which is different, see PDL_GetPDKVersion.

## Syntax

>     PDL_Err PDL_GetOSVersion(PDL_OSVersion *version);

Argument | Description
--- | ---
version | Pointer to a `PDL_OSVersion` struct.

## Returns

>     PDL_INVALIDINPUT - Passed version struct is null or zero length.
>     PDL_EOTHER - Unable to access webOS version information.
>     PDL_NOERROR - Success.

See also:

- PDL_GetPDKVersion