Fixed. I created a struct which has a HANDLE and an int:  aed1d9f2189c0a8be060ca5b2b883a76102abc77