do sth to do/doing sth这个后面的to do/doing sth都是后置定语吗?区别在哪?

问题描述:

do sth to do/doing sth这个后面的to do/doing sth都是后置定语吗?区别在哪?

like what?
close the window to keep warm/close the window to keeping the````room warm?
```
我知道你说的是什么但是当初自己也没学好这一节