None of those types should be int btw. Autoit has specific types for handles and pointers, and SIZE_T is architecture-dependent.