Add script that generates comtypes.h
Improve IUnknownImpl::QueryInterface implementation
Use com_ptr_t objects instead of object pointers