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.

101 lines
2.8 KiB

  1. //***************************************************************************
  2. //
  3. // Microsoft NT Remote Access Service
  4. //
  5. // Copyright (C) 1992-93 Microsft Corporation. All rights reserved.
  6. //
  7. //
  8. // Revision History:
  9. //
  10. // Jul 22, 1992 J. Perry Hannah Created
  11. // Aug 11, 1992 Gurdeep Pall Added Media data structures
  12. //
  13. // Description: This file contains function prototypes and structures
  14. // used by the interface between RAS Manager and the
  15. // Media DLLs.
  16. //
  17. //****************************************************************************
  18. #ifndef _MEDIADLLHEADER_
  19. #define _MEDIADLLHEADER_
  20. // General Defines *********************************************************
  21. //
  22. #define SS_HARDWAREFAILURE 0x00000001
  23. #define SS_LINKDROPPED 0x00000002
  24. //* Data Structures ********************************************************
  25. //
  26. #define MAC_NAME_SIZE 32
  27. struct PortMediaInfo {
  28. CHAR PMI_Name [MAX_PORT_NAME] ;
  29. CHAR PMI_MacBindingName[MAC_NAME_SIZE] ;
  30. RASMAN_USAGE PMI_Usage ;
  31. CHAR PMI_DeviceType [MAX_DEVICETYPE_NAME] ;
  32. CHAR PMI_DeviceName [MAX_DEVICE_NAME] ;
  33. DWORD PMI_LineDeviceId ; // Valid for TAPI devices only
  34. DWORD PMI_AddressId ; // Valid for TAPI devices only
  35. } ;
  36. typedef struct PortMediaInfo PortMediaInfo ;
  37. //* API References *********************************************************
  38. //
  39. typedef DWORD (APIENTRY * PortEnum_t)(BYTE *, WORD *, WORD *);
  40. typedef DWORD (APIENTRY * PortOpen_t)(char *, HANDLE *, HANDLE);
  41. typedef DWORD (APIENTRY * PortClose_t)(HANDLE);
  42. #ifndef CITRIX
  43. typedef DWORD (APIENTRY * PortGetInfo_t)(HANDLE, TCHAR *, BYTE *, WORD *);
  44. #else
  45. typedef DWORD (APIENTRY * PortGetInfo_t)(HANDLE, CHAR *, BYTE *, WORD *);
  46. #endif
  47. typedef DWORD (APIENTRY * PortSetInfo_t)(HANDLE, RASMAN_PORTINFO *);
  48. typedef DWORD (APIENTRY * PortTestSignalState_t)(HANDLE, DWORD *);
  49. typedef DWORD (APIENTRY * PortConnect_t)(HANDLE, BOOL, DWORD *) ;
  50. typedef DWORD (APIENTRY * PortDisconnect_t)(HANDLE);
  51. typedef DWORD (APIENTRY * PortInit_t)(HANDLE);
  52. typedef DWORD (APIENTRY * PortCompressionSetInfo_t)(HANDLE) ;
  53. typedef DWORD (APIENTRY * PortSend_t)(HANDLE, BYTE *, DWORD, HANDLE);
  54. typedef DWORD (APIENTRY * PortReceive_t)(HANDLE, BYTE *, DWORD, DWORD,
  55. HANDLE);
  56. typedef DWORD (APIENTRY * PortGetStatistics_t)(HANDLE, RAS_STATISTICS *);
  57. typedef DWORD (APIENTRY * PortClearStatistics_t)(HANDLE);
  58. typedef DWORD (APIENTRY * PortGetPortState_t)(BYTE *, DWORD *);
  59. typedef DWORD (APIENTRY * PortChangeCallback_t)(HANDLE);
  60. typedef DWORD (APIENTRY * PortReceiveComplete_t)(HANDLE, DWORD *);
  61. typedef DWORD (APIENTRY * PortSetFraming_t)(HANDLE, DWORD, DWORD, DWORD, DWORD);
  62. typedef DWORD (APIENTRY * PortGetIOHandle_t)(HANDLE, HANDLE*);
  63. #endif