Typedef'd handles, return codes and time, chaged voice handles to unsigned, and used 'bool' where parameters are actually booleans.