change all ULONG to UINT