Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.1 KiB

  1. #ifndef __INTEROP_H
  2. #define __INTEROP_H
  3. #include <windows.h>
  4. #define INTEROP_EXPORT __declspec(dllexport)
  5. #define DLLName "CPLS.DLL"
  6. typedef int (WINAPI *CPLInitialize_t)(const char*);
  7. typedef int (WINAPI *CPLUninitialize_t)(int) ;
  8. typedef int (WINAPI *CPLOpen_t)(int,
  9. const char*,
  10. int);
  11. typedef int (WINAPI *CPLClose_t)( int );
  12. typedef int (WINAPI *CPLOutput_t)(int,
  13. BYTE*,
  14. int,
  15. unsigned long);
  16. typedef struct {
  17. CPLInitialize_t CPLInitialize;
  18. CPLUninitialize_t CPLUninitialize;
  19. CPLOpen_t CPLOpen;
  20. CPLClose_t CPLClose;
  21. CPLOutput_t CPLOutput;
  22. int g_ComplianceProtocolLogger;
  23. int g_ProtocolLogID;
  24. HINSTANCE hInst;
  25. } *LPInteropLogger, InteropLogger;
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. LPInteropLogger INTEROP_EXPORT InteropLoad(const char* Protocol);
  30. void INTEROP_EXPORT InteropUnload(LPInteropLogger Logger);
  31. void INTEROP_EXPORT InteropOutput(LPInteropLogger Logger, BYTE* buf, int length, unsigned long userData);
  32. #ifdef __cplusplus
  33. }
  34. #endif
  35. #endif // __CPLS_H