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.

95 lines
1.9 KiB

  1. /*
  2. File routerdb.h
  3. Implements a database abstraction for accessing router interfaces.
  4. If any caching/transactioning/commit-noncommit-moding is done, it
  5. should be implemented here with the api's remaining constant.
  6. */
  7. #ifndef IFMON_ROUTERDB_H
  8. #define IFMON_ROUTERDB_H
  9. //
  10. // Defines a function callback that receives enumerated
  11. // interfaces.
  12. //
  13. typedef
  14. DWORD
  15. (*RTR_IF_ENUM_FUNC)(
  16. IN PWCHAR pwszIfName,
  17. IN DWORD dwLevel,
  18. IN DWORD dwFormat,
  19. IN PVOID pvData,
  20. IN HANDLE hData
  21. );
  22. DWORD
  23. RtrdbInterfaceAdd(
  24. IN PWCHAR pszInterface,
  25. IN DWORD dwLevel,
  26. IN PVOID pvInfo
  27. );
  28. DWORD
  29. RtrdbInterfaceDelete(
  30. IN PWCHAR pwszIfName
  31. );
  32. DWORD
  33. RtrdbInterfaceEnumerate(
  34. IN DWORD dwLevel,
  35. IN DWORD dwFormat,
  36. IN RTR_IF_ENUM_FUNC pEnum,
  37. IN HANDLE hData
  38. );
  39. DWORD
  40. RtrdbInterfaceRead(
  41. IN PWCHAR pwszIfName,
  42. IN DWORD dwLevel,
  43. IN PVOID pvInfo,
  44. IN BOOL bReadFromConfigOnError
  45. );
  46. DWORD
  47. RtrdbInterfaceWrite(
  48. IN PWCHAR pwszIfName,
  49. IN DWORD dwLevel,
  50. IN PVOID pvInfo
  51. );
  52. DWORD
  53. RtrdbInterfaceReadCredentials(
  54. IN PWCHAR pszIfName,
  55. IN PWCHAR pszUser OPTIONAL,
  56. IN PWCHAR pszPassword OPTIONAL,
  57. IN PWCHAR pszDomain OPTIONAL
  58. );
  59. DWORD
  60. RtrdbInterfaceWriteCredentials(
  61. IN PWCHAR pszIfName,
  62. IN PWCHAR pszUser OPTIONAL,
  63. IN PWCHAR pszPassword OPTIONAL,
  64. IN PWCHAR pszDomain OPTIONAL
  65. );
  66. DWORD
  67. RtrdbInterfaceEnableDisable(
  68. IN PWCHAR pwszIfName,
  69. IN BOOL bEnable);
  70. DWORD
  71. RtrdbInterfaceRename(
  72. IN PWCHAR pwszIfName,
  73. IN DWORD dwLevel,
  74. IN PVOID pvInfo,
  75. IN PWCHAR pszNewName);
  76. DWORD
  77. RtrdbResetAll();
  78. #endif