Leaked source code of windows server 2003
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.

66 lines
2.0 KiB

  1. /***********************************************************************
  2. * INTEL Corporation Proprietary Information *
  3. * *
  4. * This listing is supplied under the terms of a license agreement *
  5. * with INTEL Corporation and may not be copied nor disclosed except *
  6. * in accordance with the terms of that agreement. *
  7. * *
  8. * Copyright (c) 1996 Intel Corporation. All rights reserved. *
  9. ***********************************************************************/
  10. #ifndef __INTEROP_H
  11. #define __INTEROP_H
  12. #include <windows.h>
  13. #if (defined(_DEBUG) || defined(PCS_COMPLIANCE))
  14. #define INTEROP_EXPORT __declspec(dllexport)
  15. #define DLLName "CPLS.DLL"
  16. typedef int (WINAPI *CPLInitialize_t)(const char*);
  17. typedef int (WINAPI *CPLUninitialize_t)(int) ;
  18. typedef int (WINAPI *CPLOpen_t)(int,
  19. const char*,
  20. int);
  21. typedef int (WINAPI *CPLClose_t)( int );
  22. typedef int (WINAPI *CPLOutput_t)(int,
  23. BYTE*,
  24. int,
  25. unsigned long);
  26. typedef struct {
  27. CPLInitialize_t CPLInitialize;
  28. CPLUninitialize_t CPLUninitialize;
  29. CPLOpen_t CPLOpen;
  30. CPLClose_t CPLClose;
  31. CPLOutput_t CPLOutput;
  32. int g_ComplianceProtocolLogger;
  33. int g_ProtocolLogID;
  34. HINSTANCE hInst;
  35. } *LPInteropLogger, InteropLogger;
  36. #ifdef __cplusplus
  37. extern "C" {
  38. #endif
  39. LPInteropLogger INTEROP_EXPORT InteropLoad(const char* Protocol);
  40. void INTEROP_EXPORT InteropUnload(LPInteropLogger Logger);
  41. void INTEROP_EXPORT InteropOutput(LPInteropLogger Logger, BYTE* buf, int length, unsigned long userData);
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45. #else // ! (defined(_DEBUG) || defined(PCS_COMPLIANCE))
  46. #define InteropLoad()
  47. #define InteropUnload()
  48. #define InteropOutput()
  49. #endif // (defined(_DEBUG) || defined(PCS_COMPLIANCE))
  50. #endif // __CPLS_H