John Wilund, TamsPalm reader and Programmer extraordinaire, felt like sharing the following bit of code with all of you:

#ifdef __OBC__
#define sysFtrNumOEMCompanyID 20
#endif

#define twCreatorID 'Tpwv' // from TwDefs.h

Boolean isTapwave(void){
Err err;
UInt32 manufacturer;
if(FtrGet(sysFileCSystem, sysFtrNumOEMCompanyID, &manufacturer)== errNone)
return(manufacturer == twCreatorID);
return false;
}

It returns true if the device your program runs on is a TapWave Zodiac PDA. Feel free to use the source code in your programs!

Related posts:

  1. Detecting vibrators and alarm leds programmatically
  2. Identifiying a 5way navigator reliably
  3. Determining if a handheld has a rectangular screen
  4. FossilIsWristPDADevice causes (Sys 0505) (0,1092) error on non-WristPDA devices
  5. Detecting color screens programatically