What are the purposes of AddRef, Release and QueryInterface functions?
Tushar Agrawal
AddRef increments reference count of the object, Release decrements reference counter of the object and QueryInterface obtains a pointer to the requested interface.