Contents

TECCountAvailableSniffers

Counts and returns the number of sniffers available inall installed plug-ins.

Declaration

OSStatus TECCountAvailableSniffers(ItemCount *numberOfEncodings);

Parameters

  • numberOfEncodings:

    On return, a pointer to the number of sniffers in all installed plug-ins. You can use this number to determine what size array to allocate for a parameter of the 1571841 Tecgetavailablesniffers function.

Return Value

A resultcode. See Result Codes.

Discussion

This function counts every instance of a sniffer. If differentconversion plug-ins support a sniffer for the same encoding, thesniffer is counted more than once. Since the TECGetAvailableSniffers functionignores duplicate sniffers, TECCountAvailableSniffers mayreturn a number greater than the number of array elements neededfor the availableSniffers[] parameterof the TECGetAvailableSniffers function.

See Also

Using Sniffers to Investigate Encodings