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.

82 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. dhcpupg.c
  5. Abstract:
  6. Upgrade APIs exported
  7. Environment:
  8. This header file contains APIs that are present in a library.
  9. --*/
  10. #ifndef _DHCPUPG_
  11. #define _DHCPUPG_
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. #if _MSC_VER > 1000
  16. #pragma once
  17. #endif
  18. typedef struct _DHCP_RECORD {
  19. BOOL fMcast;
  20. union _INFO {
  21. struct _DHCP_INFO {
  22. DWORD Address, Mask;
  23. BYTE HwLen;
  24. LPBYTE HwAddr;
  25. WCHAR UNALIGNED *Name, *Info;
  26. FILETIME ExpTime;
  27. BYTE State, Type;
  28. } Dhcp;
  29. struct _MCAST_INFO {
  30. DWORD Address, ScopeId;
  31. BYTE HwLen;
  32. LPBYTE ClientId;
  33. WORD UNALIGNED *Info;
  34. FILETIME Start, End;
  35. BYTE State;
  36. } Mcast;
  37. } Info;
  38. } DHCP_RECORD, *PDHCP_RECORD;
  39. typedef DWORD (__stdcall *DHCP_ADD_RECORD_ROUTINE) (
  40. IN PDHCP_RECORD Rec
  41. );
  42. DWORD __stdcall
  43. DhcpUpgConvertTempToDhcpDb(
  44. IN DHCP_ADD_RECORD_ROUTINE AddRec
  45. );
  46. DWORD __stdcall
  47. DhcpUpgConvertDhcpDbToTemp(
  48. VOID
  49. );
  50. DWORD __stdcall
  51. DhcpUpgCleanupDhcpTempFiles(
  52. VOID
  53. );
  54. DWORD __stdcall
  55. DhcpUpgGetLastError(
  56. VOID
  57. );
  58. #ifdef __cplusplus
  59. }
  60. #endif
  61. #endif _DHCPUPG_