Error 624 - Invalid THREADPARAM variable type

Invalid THREADPARM variable type - THREADPARM must be a LONG, DWORD, or UDT PTR INSTANCE variable.