PECompact CODEC Plug-ins

CodecGetProcAddress API

CodecGetProcAddress
 

PECompact v2.x CODEC Plug-In Documentation

 


FARPROC WINAPI CodecGetProcAddress(DWORD dwCodecIndex, LPCSTR pszApi);

Parameters:

dwCodecIndex
The zero based index number of the codec whose APIs you wish to query. See remarks for more information.about indices.

ptszApi

The null-terminated, case-insensitive, name of the API.whose address you wish to find. The possible values for this parameter are listed in the Codec Functions reference..

Return Value:

If the call is successful, the address of the requested API will be returned. If the call fails, the return value will be NULL.

Remarks:

This function retrieves the address of any of the CODEC functions for the CODEC given by the dwCodecIndex parameter.

A codec host module (dll) may contain any number of codecs. This function is used to retrieve API entry points for the codec identified by the dwCodecIndex parameter. The codecs are invoked for encoding in the ascending order of their index numbers (i.e. 0, 1, 2, 3, ...). During decoding the codecs are invoked in the opposite [descending] order.