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.

64 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. #if (defined(_DEBUG) || defined(PCS_COMPLIANCE))
  13. #define INTEROP_EXPORT __declspec(dllexport)
  14. #define DLLName "CPLS.DLL"
  15. typedef int (WINAPI *CPLInitialize_t)(const char*);
  16. typedef int (WINAPI *CPLUninitialize_t)(int) ;
  17. typedef int (WINAPI *CPLOpen_t)(int,
  18. const char*,
  19. int);
  20. typedef int (WINAPI *CPLClose_t)( int );
  21. typedef int (WINAPI *CPLOutput_t)(int,
  22. BYTE*,
  23. int,
  24. unsigned long);
  25. typedef struct {
  26. CPLInitialize_t CPLInitialize;
  27. CPLUninitialize_t CPLUninitialize;
  28. CPLOpen_t CPLOpen;
  29. CPLClose_t CPLClose;
  30. CPLOutput_t CPLOutput;
  31. int g_ComplianceProtocolLogger;
  32. int g_ProtocolLogID;
  33. HINSTANCE hInst;
  34. } *LPInteropLogger, InteropLogger;
  35. #ifdef __cplusplus
  36. extern "C" {
  37. #endif
  38. LPInteropLogger INTEROP_EXPORT InteropLoad(const char* Protocol);
  39. void INTEROP_EXPORT InteropUnload(LPInteropLogger Logger);
  40. void INTEROP_EXPORT InteropOutput(LPInteropLogger Logger, BYTE* buf, int length, unsigned long userData);
  41. #ifdef __cplusplus
  42. }
  43. #endif
  44. #else // ! (defined(_DEBUG) || defined(PCS_COMPLIANCE))
  45. #define InteropLoad()
  46. #define InteropUnload()
  47. #define InteropOutput()
  48. #endif // (defined(_DEBUG) || defined(PCS_COMPLIANCE))
  49. #endif // __CPLS_H