Use the windows INFINITE define instead of manually casting -1 to uint32_t