home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 October / CMCD1004.ISO / Software / Shareware / Utilitare / pec / pec2setup.exe / sdk / codec / template / pec2codec_template.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-07-13  |  904 b   |  30 lines

  1. ////////////////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Configuraiton
  4. //
  5. #define PEC2_CODECS_IN_HOST 1        // # of CODECS this host contains (identified via index #)
  6.  
  7. ////////////////////////////////////////////////////////////////////////////////////////////
  8. //
  9. // There are two functions exposed by the CODEC host:
  10. //
  11. //    GetNumberOfCodecs        - retrieves number of CODECs in this host
  12. //      CodecGetProcAddress   - retrieve the entry point for a specific CODEC API.
  13. //
  14. //
  15.  
  16. #ifdef PEC2CODEC_HOST_EXPORTS
  17. #define PEC2CODEC_HOST_API __declspec(dllexport)
  18. #else
  19. #define PEC2CODEC_HOST_API __declspec(dllimport)
  20. #endif
  21.  
  22. #define PEC2CODEC_TEMPLATE_API PEC2CODEC_HOST_API
  23.  
  24. extern "C"
  25. {
  26.     PEC2CODEC_HOST_API FARPROC WINAPI CodecGetProcAddress(DWORD dwCodecIndex, LPCTSTR ptszApiName);
  27.     PEC2CODEC_HOST_API DWORD WINAPI GetNumberOfCodecs();
  28. };
  29.  
  30.