HRESULT FakeContactsService::GetEventParameterAttributes( REFPROPERTYKEY Parameter, __out IPortableDeviceValues* pAttributes) { HRESULT hr = S_OK; if (pAttributes == NULL) { hr = E_POINTER; CHECK_HR(hr, "Cannot have NULL parameter"); return hr; } hr = SetEventParameterAttributes(Parameter, &g_ServiceEventParameters[0], ARRAYSIZE(g_ServiceEventParameters), pAttributes); CHECK_HR(hr, "Failed to set event parameter attributes"); return hr; }
// // Public // HRESULT AbstractGattService::GetEventParameterAttributes( REFPROPERTYKEY Parameter, _Inout_ IPortableDeviceValues* pAttributes) { HRESULT hr = S_OK; if (pAttributes == NULL) { hr = E_POINTER; CHECK_HR(hr, "Cannot have NULL parameter"); return hr; } hr = SetEventParameterAttributes(Parameter, &m_ServiceEventParameters[0], m_ServiceEventParameterCount, pAttributes); CHECK_HR(hr, "Failed to set event parameter attributes"); return hr; }