Naming conventions. Use of HRESULT return value.
Updates due to library making changes to function names and return values.