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.

96 lines
2.5 KiB

  1. cpp_quote("DEFINE_GUID(IID_ITcpAccess, 0x25ed205b, 0xcf50, 0x11d0, 0xbc, 0x7, 0x0, 0xc0, 0x4f, 0xc3, 0x9, 0x2d);")
  2. cpp_quote("DEFINE_GUID(IID_ITcpAccessExceptions, 0x25ed205c, 0xcf50, 0x11d0, 0xbc, 0x7, 0x0, 0xc0, 0x4f, 0xc3, 0x9, 0x2d);")
  3. cpp_quote("DEFINE_GUID(IID_ITcpAccessException, 0x25ed205d, 0xcf50, 0x11d0, 0xbc, 0x7, 0x0, 0xc0, 0x4f, 0xc3, 0x9, 0x2d);")
  4. #ifndef DO_NO_IMPORTS
  5. import "wtypes.idl";
  6. #endif
  7. interface ITcpAccess;
  8. interface ITcpAccessException;
  9. interface ITcpAccessExceptions;
  10. [
  11. object,
  12. uuid(25ED205B-CF50-11d0-BC07-00C04FC3092D),
  13. dual,
  14. helpstring("ITcpAccess Interface"),
  15. pointer_default(unique)
  16. ]
  17. interface ITcpAccess : IDispatch
  18. {
  19. [propget, helpstring("")]
  20. HRESULT GrantedList ( [out, retval] ITcpAccessExceptions ** ppGrantedList );
  21. [propget, helpstring("")]
  22. HRESULT DeniedList ( [out, retval] ITcpAccessExceptions ** ppDeniedList );
  23. }
  24. [
  25. object,
  26. uuid(25ED205C-CF50-11d0-BC07-00C04FC3092D),
  27. dual,
  28. helpstring("ITcpAccessExceptions Interface"),
  29. pointer_default(unique)
  30. ]
  31. interface ITcpAccessExceptions : IDispatch
  32. {
  33. [propget, helpstring("")]
  34. HRESULT Count ( [out, retval] long * pcCount );
  35. [helpstring("")]
  36. HRESULT AddDnsName ( [in] BSTR strDnsName );
  37. [helpstring("")]
  38. HRESULT AddIpAddress ( [in] long lIpAddress, [in] long lIpMask );
  39. [helpstring("")]
  40. HRESULT Item ( [in] long index, [out, retval] ITcpAccessException ** ppItem );
  41. [helpstring("")]
  42. HRESULT Remove ( [in] long index );
  43. [helpstring("")]
  44. HRESULT Clear ( );
  45. [helpstring("")]
  46. HRESULT FindDnsIndex ( [in] BSTR strDnsName, [out, retval] long * pIndex );
  47. [helpstring("")]
  48. HRESULT FindIpIndex ( [in] long lIpAddress, [in] long lIpMask, [out, retval] long * pIndex );
  49. }
  50. [
  51. object,
  52. uuid(25ED205D-CF50-11d0-BC07-00C04FC3092D),
  53. dual,
  54. helpstring("ITcpAccessException Interface"),
  55. pointer_default(unique)
  56. ]
  57. interface ITcpAccessException : IDispatch
  58. {
  59. [propget, helpstring("")]
  60. HRESULT IsDnsName ( [out, retval] BOOL * pfIsDnsName );
  61. [propget, helpstring("")]
  62. HRESULT IsIpAddress ( [out, retval] BOOL * pfIsIpAddress );
  63. [propget, helpstring("")]
  64. HRESULT DnsName ( [out, retval] BSTR * pstrDnsName );
  65. [propput]
  66. HRESULT DnsName ( [in] BSTR strDnsName );
  67. [propget, helpstring("")]
  68. HRESULT IpAddress ( [out, retval] long * plIpAddress );
  69. [propput]
  70. HRESULT IpAddress ( [in] long lIpAddress );
  71. [propget, helpstring("")]
  72. HRESULT IpMask ( [out, retval] long * plIpMask );
  73. [propput]
  74. HRESULT IpMask ( [in] long lIpMask );
  75. }