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.

115 lines
1.9 KiB

  1. /*++
  2. Copyright (C) 1999 Microsoft Corporation
  3. Module Name:
  4. dhcpexim.h
  5. Abstract:
  6. Routines that are exported out of the exim.lib
  7. --*/
  8. #ifndef DHCPEXIM_H
  9. #define DHCPEXIM_H
  10. typedef struct _DHCPEXIM_CONTEXT {
  11. LPWSTR FileName;
  12. BOOL fExport;
  13. BOOL fDisableExportedScopes;
  14. HANDLE hFile;
  15. LPBYTE Mem;
  16. DWORD MemSize;
  17. PVOID SvcConfig;
  18. PVOID FileConfig;
  19. DWORD nScopes;
  20. struct {
  21. BOOL fSelected;
  22. LPWSTR SubnetName;
  23. DWORD SubnetAddress;
  24. } *Scopes;
  25. } DHCPEXIM_CONTEXT, *PDHCPEXIM_CONTEXT;
  26. DWORD
  27. DhcpEximInitializeContext(
  28. IN OUT PDHCPEXIM_CONTEXT Ctxt,
  29. IN LPWSTR FileName,
  30. IN BOOL fExport
  31. );
  32. DWORD
  33. DhcpEximCleanupContext(
  34. IN OUT PDHCPEXIM_CONTEXT Ctxt,
  35. IN BOOL fAbort
  36. );
  37. DWORD
  38. CmdLineDoImport(
  39. IN LPWSTR *Args,
  40. IN ULONG nArgs
  41. );
  42. DWORD
  43. CmdLineDoExport(
  44. IN LPWSTR *Args,
  45. IN ULONG nArgs
  46. );
  47. //
  48. // the following functions are not implemented in the exim.lib,
  49. // but these should be implemented by whoever uses exim.lib
  50. //
  51. VOID
  52. DhcpEximErrorClassConflicts(
  53. IN LPWSTR SvcClass,
  54. IN LPWSTR ConfigClass
  55. );
  56. VOID
  57. DhcpEximErrorOptdefConflicts(
  58. IN LPWSTR SvcOptdef,
  59. IN LPWSTR ConfigOptdef
  60. );
  61. VOID
  62. DhcpEximErrorOptionConflits(
  63. IN LPWSTR SubnetName OPTIONAL,
  64. IN LPWSTR ResAddress OPTIONAL,
  65. IN LPWSTR OptId,
  66. IN LPWSTR UserClass OPTIONAL,
  67. IN LPWSTR VendorClass OPTIONAL
  68. );
  69. VOID
  70. DhcpEximErrorSubnetNotFound(
  71. IN LPWSTR SubnetAddress
  72. );
  73. VOID
  74. DhcpEximErrorSubnetAlreadyPresent(
  75. IN LPWSTR SubnetAddress,
  76. IN LPWSTR SubnetName OPTIONAL
  77. );
  78. VOID
  79. DhcpEximErrorDatabaseEntryFailed(
  80. IN LPWSTR ClientAddress,
  81. IN LPWSTR ClientHwAddress,
  82. IN DWORD Error,
  83. OUT BOOL *fAbort
  84. );
  85. #endif DHCPEXIM_H