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.

77 lines
1.3 KiB

  1. //#--------------------------------------------------------------
  2. //
  3. // File: iohandler.h
  4. //
  5. // Synopsis: This file holds the API declaration for the
  6. // RADIUS Transport DLLs
  7. //
  8. // History: 11/21/97 MKarki Created
  9. //
  10. // Copyright (C) 1997-98 Microsoft Corporation
  11. // All rights reserved.
  12. //
  13. //----------------------------------------------------------------
  14. #ifndef _IASTRANSPORT_H_
  15. #define _IASTRANSPORT_H_
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. //
  20. // initialize the Transport DLL
  21. //
  22. BOOL WINAPI
  23. IASTransportInit (
  24. VOID
  25. );
  26. //
  27. // Open a Port to carry out data transfer
  28. //
  29. BOOL WINAPI
  30. IASOpenPort (
  31. DWORD dwPortNumber,
  32. DWORD dwOpAttribs,
  33. PDWORD_PTR pdwHandle
  34. );
  35. //
  36. // Close the Port
  37. //
  38. BOOL WINAPI
  39. IASClosePort (
  40. DWORD_PTR dwHandle
  41. );
  42. //
  43. // send data out through a previously opened port
  44. //
  45. BOOL WINAPI
  46. IASSendData (
  47. DWORD_PTR dwHandle,
  48. PBYTE pBuffer,
  49. DWORD dwSize,
  50. DWORD dwPeerAddress,
  51. WORD wPeerAddress
  52. );
  53. //
  54. // Recv Data from a previously opened port
  55. //
  56. BOOL WINAPI
  57. IASRecvData (
  58. DWORD_PTR dwHandle,
  59. PBYTE pBuffer,
  60. PDWORD pdwSize,
  61. PDWORD pdwPeerAddress,
  62. PWORD pwPeerPort
  63. );
  64. #ifdef __cplusplus
  65. }
  66. #endif
  67. #endif // #ifndef _IASTRANSPORT_H_