---
title: TECGetDirectTextEncodingConversions
framework: Core Services
role: symbol
role_heading: Function
platforms: [macOS 10.0+]
path: coreservices/1571834-tecgetdirecttextencodingconversi
---

# TECGetDirectTextEncodingConversions

Returns the types of direct conversions currently configuredin the Text Encoding Converter.

## Declaration

```occ
OSStatus TECGetDirectTextEncodingConversions(TECConversionInfo availableConversions[], ItemCount maxAvailableConversions, ItemCount *actualAvailableConversions);
```

## Parameters

- `availableConversions`: An array composed of text encoding conversion information structures, each of which specifies a set of source and destination encodings for a type of conversion. See doc://com.apple.documentation/documentation/coreservices/tecconversioninfo for more information. You should use the doc://com.apple.documentation/documentation/coreservices/1571834-tecgetdirecttextencodingconversi function to determine how large to make the array.
- `maxAvailableConversions`: The maximum number of text encoding conversion information structures that the directConversions array can contain.
- `actualAvailableConversions`: On return, a pointer to the number of text encoding conversion information structures returned in the directConversions array.

## Return Value

Return Value A resultcode. See Result Codes.

## Discussion

Discussion This function ignores duplicate text encoding conversion informationstructures. If you used the  TECCountDirectTextEncodingConversions function to determine the size of the directConversions[] array,the number of text encoding conversion information structures maybe fewer than the number of array elements, because TECCountDirectTextEncodingConversions countsduplicate text encoding conversion information structures.

## See Also

### Identifying Direct Encoding Conversions 

- [TECCountDirectTextEncodingConversions](coreservices/1571822-teccountdirecttextencodingconver.md)
