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!





