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.

99 lines
2.9 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. DeviceInfo *PMI_pDeviceInfo; // valid for non unimodem devices only.
  36. } ;
  37. typedef struct PortMediaInfo PortMediaInfo ;
  38. //* API References *********************************************************
  39. //
  40. typedef DWORD (APIENTRY * PortEnum_t)(BYTE *, DWORD *, DWORD *);
  41. typedef DWORD (APIENTRY * PortOpen_t)(char *, HANDLE *, HANDLE, ULONG);
  42. typedef DWORD (APIENTRY * PortClose_t)(HANDLE);
  43. typedef DWORD (APIENTRY * PortGetInfo_t)(HANDLE, TCHAR *, BYTE *, DWORD *);
  44. typedef DWORD (APIENTRY * PortSetInfo_t)(HANDLE, RASMAN_PORTINFO *);
  45. typedef DWORD (APIENTRY * PortTestSignalState_t)(HANDLE, DWORD *);
  46. typedef DWORD (APIENTRY * PortConnect_t)(HANDLE, BOOL, HANDLE *) ;
  47. typedef DWORD (APIENTRY * PortDisconnect_t)(HANDLE);
  48. typedef DWORD (APIENTRY * PortInit_t)(HANDLE);
  49. typedef DWORD (APIENTRY * PortCompressionSetInfo_t)(HANDLE) ;
  50. typedef DWORD (APIENTRY * PortSend_t)(HANDLE, BYTE *, DWORD);
  51. typedef DWORD (APIENTRY * PortReceive_t)(HANDLE, BYTE *, DWORD, DWORD);
  52. typedef DWORD (APIENTRY * PortGetStatistics_t)(HANDLE, RAS_STATISTICS *);
  53. typedef DWORD (APIENTRY * PortClearStatistics_t)(HANDLE);
  54. typedef DWORD (APIENTRY * PortGetPortState_t)(BYTE *, DWORD *);
  55. typedef DWORD (APIENTRY * PortChangeCallback_t)(HANDLE);
  56. typedef DWORD (APIENTRY * PortReceiveComplete_t)(HANDLE, DWORD *);
  57. typedef DWORD (APIENTRY * PortSetFraming_t)(HANDLE, DWORD, DWORD, DWORD, DWORD);
  58. typedef DWORD (APIENTRY * PortGetIOHandle_t)(HANDLE, HANDLE*);
  59. typedef DWORD (APIENTRY * PortSetIoCompletionPort_t)(HANDLE);
  60. #endif