int DeviceGetSystemVersion(char *sysver, int len);
Gets a string version of the host operating system.
Return Value
Returns a non-zero value if the call was successful, zero otherwise.
Parameters
sysver Pointer to a character buffer to receive the system version.
len Specifies the length of the buffer pointed to by sysver.
Remarks
DeviceGetSystemVersion() gets a string that represents the currently installed version of the host operating system, e.g. "3.1.3".
Windows Simulator NOTE: To provide values for the Windows Simulator, be sure to edit C:\DragonFireSDK\DragonFireSDK.ini and modify the value for SystemVersion in the Device section.
Availability
Available in DragonFireSDK 1.4 and later.
Example
#include "DragonFireSDK.h"
int MyFont; int SystemVersionText;
char ValueText[50]; char TextBuffer[100];
void AppMain() { LandscapeMode();
MyFont = FontAdd("Helvetica", "Regular", 18, 0x00FF00);
DeviceGetSystemVersion(ValueText, 50); sprintf(TextBuffer, "System Version: %s", ValueText); SystemVersionText = TextAdd(10, 10, TextBuffer, MyFont); }
//=============================================== void OnTimer() {
}
//=============================================== void AppExit() {
} |