void* openPhonebookRecord(void* pb, char* id) { #if defined (_WIN32_WCE) if (pb && id) { CNativeAddressBook* phonebook = (CNativeAddressBook*)pb; return phonebook->getRecord(id); } #endif return NULL; }
void* openPhonebookRecord(void* pb, char* id) { #if defined (_WIN32_WCE)//&& !defined( OS_PLATFORM_MOTCE ) if (RHO_IS_WMDEVICE && pb && id) { CNativeAddressBook* phonebook = (CNativeAddressBook*)pb; return phonebook->getRecord(id); } #endif return NULL; }
VALUE getPhonebookRecord(void* pb, char* id) { #if defined (_WIN32_WCE) if (pb && id) { CNativeAddressBook* phonebook = (CNativeAddressBook*)pb; CABRecord* record = phonebook->getRecord(id); if (record) { VALUE hash = _getRecord(record); delete record; return hash; } } #endif return rho_ruby_get_NIL(); }