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.

114 lines
2.1 KiB

  1. interface ITable;
  2. interface ITableEnumEntries;
  3. [
  4. helpstring("ITable"),
  5. object,
  6. pointer_default(unique),
  7. uuid(0156742F-62A0-11d1-BC72-00C04FC3092D)
  8. ]
  9. interface ITable : IUnknown
  10. {
  11. import "wtypes.idl";
  12. import "ocidl.idl";
  13. typedef enum _LINKCOSTTYPE {
  14. HIPRI_ONLY = 0,
  15. MONEY_COST_ALLOWED,
  16. MESSAGE_SIZE_ALLOWED,
  17. NORMAL
  18. } LINKCOSTTYPE;
  19. HRESULT EnumNextHopEntries(
  20. [in] LINKCOSTTYPE Type,
  21. [out] ITableEnumEntries **ppEnum);
  22. HRESULT QuerySite(
  23. [in] LPSTR pszNode,
  24. [in,out] DWORD *pdwSiteLen,
  25. [out,size_is(*pdwSiteLen)] LPSTR pszSite);
  26. HRESULT QuerySourceServer(
  27. [in,out] DWORD *pdwServerLen,
  28. [out,size_is(*pdwServerLen)] LPSTR pszServer);
  29. HRESULT QuerySourceSite(
  30. [in,out] DWORD *pdwSiteLen,
  31. [out,size_is(*pdwSiteLen)] LPSTR pszSite);
  32. HRESULT IsServerInBH(
  33. [in] LPSTR pszServer,
  34. [in] LPSTR pszBridgeHead);
  35. HRESULT IsServerInAnyBH(
  36. [in] LPSTR pszServer);
  37. HRESULT QueryLinkStatus(
  38. [in] LPSTR pszLink,
  39. [in] BOOL *pfStatus);
  40. };
  41. [
  42. helpstring("ITableEnumEntries"),
  43. object,
  44. pointer_default(unique),
  45. uuid(9164C121-63AF-11d1-99DC-0000860F614C),
  46. ]
  47. interface ITableEnumEntries : IUnknown
  48. {
  49. typedef struct _NEXTHOP_ENTRY {
  50. LPSTR pszDestination;
  51. LPSTR pszNextHop;
  52. DWORD dwCost;
  53. } NEXTHOP_ENTRY, *LPNEXTHOP_ENTRY;
  54. HRESULT Next(
  55. [in] ULONG cFetch,
  56. [in,out] LPNEXTHOP_ENTRY rgEntry,
  57. [out] ULONG *pcFetched);
  58. HRESULT Skip(
  59. [in] ULONG cItems);
  60. HRESULT Reset(void);
  61. HRESULT Clone(
  62. [out] ITableEnumEntries **ppEnum);
  63. HRESULT Count(
  64. [out] ULONG *pcItems);
  65. }
  66. [
  67. version(1.0),
  68. helpstring("ITableLib tlb"),
  69. uuid(01567430-62A0-11d1-BC72-00C04FC3092D)
  70. ]
  71. library TableLib
  72. {
  73. import "wtypes.idl";
  74. import "ocidl.idl";
  75. [
  76. helpstring("Table com class"),
  77. uuid(01567431-62A0-11d1-BC72-00C04FC3092D)
  78. ]
  79. coclass Table
  80. {
  81. [default] interface ITable;
  82. }
  83. [
  84. helpstring("TableEnumEntries com class"),
  85. uuid(9164C123-63AF-11d1-99DC-0000860F614C)
  86. ]
  87. coclass TableEnumEntries
  88. {
  89. [default] interface ITableEnumEntries;
  90. }
  91. };