int32_t STDCALL ServicePropertyValueInt(ServiceProperty aProperty, int32_t* aValue) { PropertyInt* prop = reinterpret_cast<PropertyInt*>(aProperty); ASSERT(prop != NULL); int32_t err = 0; try { *aValue = prop->Value(); } catch (PropertyError&) { err = -1; } return err; }