int DeviceGetUDID(char *udid, int len);

 

Gets the device's unique identifier.

 

Return Value

 

Returns a non-zero value if the call was successful, zero otherwise.

 

Parameters

 

udid

Pointer to a character buffer to receive the UDID.

 

len

Specifies the length of the buffer pointed to by udid.

 

Remarks

 

DeviceGetUDID() gets the unique identifier for the device.  A UDID is a 40 character hexadecimal string that uniquely identifies a device.

 

Windows Simulator NOTE: To provide values for the Windows Simulator, be sure to edit C:\DragonFireSDK\DragonFireSDK.ini and modify the value for UDID in the Device section.

 

Availability

 

Available in DragonFireSDK 1.4 and later.

 

Example

 

#include "DragonFireSDK.h"

 

int MyFont;

int UDIDText;

 

char ValueText[50];

char TextBuffer[100];

 

void AppMain()

{  

  LandscapeMode();

 

  MyFont = FontAdd("Helvetica", "Regular", 18, 0x00FF00);

 

  DeviceGetUDID(ValueText, 50);

  sprintf(TextBuffer, "UDID:%s", ValueText);

  UDIDText = TextAdd(10, 250, TextBuffer, MyFont);

}

 

//===============================================

void OnTimer()

{

 

}

 

//===============================================

void AppExit()

{

 

}