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.

90 lines
3.3 KiB

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 1998-2000 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: SerialSP.h
  6. * Content: Service provider interface functions
  7. *
  8. * History:
  9. * Date By Reason
  10. * ==== == ======
  11. * 12/09/98 jtk Derived from SerialUtil.h
  12. * 09/23/99 jtk Derived from SerialCore.h
  13. ***************************************************************************/
  14. #ifndef __SERIAL_SP_H__
  15. #define __SERIAL_SP_H__
  16. #undef DPF_SUBCOMP
  17. #define DPF_SUBCOMP DN_SUBCOMP_MODEM
  18. //
  19. // including a header file in another header isn't that good, but it's the easiest thing
  20. // to do right now since #defines need to be set first.
  21. //
  22. #define MAX_TAPI_VERSION 0x00020000
  23. #define TAPI_CURRENT_VERSION MAX_TAPI_VERSION
  24. #include <tapi.h>
  25. //**********************************************************************
  26. // Constant definitions
  27. //**********************************************************************
  28. //
  29. // maximum number of data ports
  30. //
  31. #define MAX_DATA_PORTS 128
  32. //
  33. // enumeration of types of SP
  34. //
  35. typedef enum
  36. {
  37. TYPE_UNKNOWN, // unknown type
  38. TYPE_MODEM, // modem type
  39. TYPE_SERIAL // serial type
  40. } SP_TYPE;
  41. //**********************************************************************
  42. // Macro definitions
  43. //**********************************************************************
  44. //**********************************************************************
  45. // Structure definitions
  46. //**********************************************************************
  47. //
  48. // forward references
  49. //
  50. class CModemSPData;
  51. //**********************************************************************
  52. // Variable definitions
  53. //**********************************************************************
  54. //**********************************************************************
  55. // Function prototypes
  56. //**********************************************************************
  57. STDAPI DNMODEMSP_Initialize(IDP8ServiceProvider*, PSPINITIALIZEDATA);
  58. STDMETHODIMP_(ULONG) DNMODEMSP_AddRef( IDP8ServiceProvider* lpDNSP );
  59. STDMETHODIMP_(ULONG) DNMODEMSP_Release(IDP8ServiceProvider* lpDNSP);
  60. STDMETHODIMP DNMODEMSP_Connect(IDP8ServiceProvider*, PSPCONNECTDATA);
  61. STDMETHODIMP DNMODEMSP_Disconnect(IDP8ServiceProvider*, PSPDISCONNECTDATA);
  62. STDMETHODIMP DNMODEMSP_Listen(IDP8ServiceProvider*, PSPLISTENDATA);
  63. STDMETHODIMP DNMODEMSP_EnumQuery(IDP8ServiceProvider*, PSPENUMQUERYDATA);
  64. STDMETHODIMP DNMODEMSP_EnumRespond(IDP8ServiceProvider*, PSPENUMRESPONDDATA);
  65. STDMETHODIMP DNMODEMSP_SendData(IDP8ServiceProvider*, PSPSENDDATA);
  66. STDMETHODIMP DNMODEMSP_CancelCommand(IDP8ServiceProvider*, HANDLE, DWORD);
  67. STDMETHODIMP DNMODEMSP_Close(IDP8ServiceProvider*);
  68. STDMETHODIMP DNMODEMSP_GetCaps(IDP8ServiceProvider*, PSPGETCAPSDATA);
  69. STDMETHODIMP DNMODEMSP_SetCaps(IDP8ServiceProvider*, PSPSETCAPSDATA);
  70. STDMETHODIMP DNMODEMSP_ReturnReceiveBuffers(IDP8ServiceProvider*, SPRECEIVEDBUFFER* );
  71. STDMETHODIMP DNMODEMSP_GetAddressInfo(IDP8ServiceProvider*, SPGETADDRESSINFODATA* );
  72. STDMETHODIMP DNMODEMSP_IsApplicationSupported(IDP8ServiceProvider*, SPISAPPLICATIONSUPPORTEDDATA* );
  73. STDMETHODIMP DNMODEMSP_EnumAdapters(IDP8ServiceProvider*, SPENUMADAPTERSDATA* );
  74. STDMETHODIMP DNMODEMSP_NotSupported( IDP8ServiceProvider*, PVOID );
  75. #endif // __SERIAL_SP_H__