Contents

TECGetAvailableSniffers

Returns the list of sniffers available in all installedplug-ins.

Declaration

OSStatus TECGetAvailableSniffers(TextEncoding availableSniffers[], ItemCount maxAvailableSniffers, ItemCount *actualAvailableSniffers);

Parameters

  • availableSniffers:

    On return, an array of text encoding specifications that the available sniffers currently support. You should use the 1571795 Teccountavailablesniffers function to determine what size array to allocate.

  • maxAvailableSniffers:

    The number of text encoding specifications the availableSniffers array can contain.

  • actualAvailableSniffers:

    On return, a pointer to the number of text encodings in the availableSniffers array.

Return Value

A resultcode. See Result Codes.

Discussion

This function ignores duplicate text encoding specifications.If you used the TECCountAvailableSniffers function to determine the size of the TECGetAvailableSniffers array,the number of available encodings may be fewer than the number ofarray elements, because TECCountAvailableSniffers includesduplicate text encoding specifications in its count.

See Also

Using Sniffers to Investigate Encodings