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.

56 lines
1.6 KiB

  1. // MDHCP COM wrapper
  2. // local.h by Zoltan Szilagyi
  3. // Copyright (c) 1998-1999 Microsoft Corporation
  4. //
  5. // This file contains prototypes for my implementation of local address
  6. // allocation, plus a prototype for a function to see if we are doing
  7. // local address allocation (based on the registry). Implementation is in
  8. // local.cpp.
  9. //
  10. // These functions are called within CMDhcp, and just delegate calls to the
  11. // corresponding C API calls for MDHCP if the registry indicates that we
  12. // are using MDHCP. Otherwise they try to mimic the MDHCP behavior using
  13. // local allocation.
  14. #ifndef _LOCAL_H_
  15. #define _LOCAL_H_
  16. #if 0
  17. // Returns zero if we use MDHCP, nonzero if we use local allocation.
  18. DWORD LocalAllocation(void);
  19. #endif
  20. DWORD
  21. LocalEnumerateScopes(
  22. IN OUT PMCAST_SCOPE_ENTRY pScopeList,
  23. IN OUT PDWORD pScopeLen,
  24. OUT PDWORD pScopeCount,
  25. IN OUT BOOL * pfLocal
  26. );
  27. DWORD
  28. LocalRequestAddress(
  29. IN BOOL fLocal,
  30. IN LPMCAST_CLIENT_UID pRequestID,
  31. IN PMCAST_SCOPE_CTX pScopeCtx,
  32. IN PMCAST_LEASE_INFO pAddrRequest,
  33. IN OUT PMCAST_LEASE_INFO pAddrResponse
  34. );
  35. DWORD
  36. LocalRenewAddress(
  37. IN BOOL fLocal,
  38. IN LPMCAST_CLIENT_UID pRequestID,
  39. IN PMCAST_LEASE_INFO pRenewRequest,
  40. IN OUT PMCAST_LEASE_INFO pRenewResponse
  41. );
  42. DWORD
  43. LocalReleaseAddress(
  44. IN BOOL fLocal,
  45. IN LPMCAST_CLIENT_UID pRequestID,
  46. IN PMCAST_LEASE_INFO pReleaseRequest
  47. );
  48. #endif // _LOCAL_H_