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