No, both are sentence adverbials, complementing the entire main clause ('I greeted him').
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
It is indeed a present participle, but an adjective ('an interesting book') is only one of its functions.