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.

46 lines
2.6 KiB

  1. //--------------------------------------------------------------------------------
  2. // Copyright (C) Micorosoft Confidential 1997
  3. // Author: RameshV
  4. // Description: Option related registry handling -- common between NT and VxD
  5. //--------------------------------------------------------------------------------
  6. #ifndef OPTREG_H
  7. #define OPTREG_H
  8. //--------------------------------------------------------------------------------
  9. // Exported functions: Caller must take locks and any lists accessed
  10. //--------------------------------------------------------------------------------
  11. POPTION // option from which more appends can occur
  12. DhcpAppendSendOptions( // append all configured options
  13. IN OUT PDHCP_CONTEXT DhcpContext, // this is the context to append for
  14. IN PLIST_ENTRY SendOptionsList,
  15. IN LPBYTE ClassName, // current class
  16. IN DWORD ClassLen, // len of above in bytes
  17. IN LPBYTE BufStart, // start of buffer
  18. IN LPBYTE BufEnd, // how far can we go in this buffer
  19. IN OUT LPBYTE SentOptions, // BoolArray[OPTION_END+1] to avoid repeating options
  20. IN OUT LPBYTE VSentOptions, // to avoid repeating vendor specific options
  21. IN OUT LPBYTE VendorOpt, // Buffer[OPTION_END+1] Holding Vendor specific options
  22. OUT LPDWORD VendorOptLen // the # of bytes filled into that
  23. );
  24. DWORD // status
  25. DhcpDestroyOptionsList( // destroy a list of options, freeing up memory
  26. IN OUT PLIST_ENTRY OptionsList, // this is the list of options to destroy
  27. IN PLIST_ENTRY ClassesList // this is where to remove classes off
  28. );
  29. DWORD // win32 status
  30. DhcpClearAllOptions( // remove all turds from off registry
  31. IN OUT PDHCP_CONTEXT DhcpContext // the context to clear for
  32. );
  33. POPTION // buffer after filling option
  34. DhcpAppendClassIdOption( // fill class id if exists
  35. IN OUT PDHCP_CONTEXT DhcpContext, // the context to fillfor
  36. OUT LPBYTE BufStart, // start of message buffer
  37. IN LPBYTE BufEnd // end of message buffer
  38. );
  39. #endif OPTREG_H