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.

89 lines
1.7 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. );
  45. DWORD
  46. RtrdbInterfaceWrite(
  47. IN PWCHAR pwszIfName,
  48. IN DWORD dwLevel,
  49. IN PVOID pvInfo
  50. );
  51. DWORD
  52. RtrdbInterfaceReadCredentials(
  53. IN PWCHAR pszIfName,
  54. IN PWCHAR pszUser OPTIONAL,
  55. IN PWCHAR pszPassword OPTIONAL,
  56. IN PWCHAR pszDomain OPTIONAL
  57. );
  58. DWORD
  59. RtrdbInterfaceWriteCredentials(
  60. IN PWCHAR pszIfName,
  61. IN PWCHAR pszUser OPTIONAL,
  62. IN PWCHAR pszPassword OPTIONAL,
  63. IN PWCHAR pszDomain OPTIONAL
  64. );
  65. DWORD
  66. RtrdbInterfaceRename(
  67. IN PWCHAR pwszIfName,
  68. IN DWORD dwLevel,
  69. IN PVOID pvInfo,
  70. IN PWCHAR pszNewName);
  71. DWORD
  72. RtrdbResetAll();
  73. #endif