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.

66 lines
2.0 KiB

  1. //========================================================================
  2. // Copyright (C) 1997 Microsoft Corporation
  3. //========================================================================
  4. #ifndef _MM_OCLASSDL_H_
  5. #define _MM_OCLASSDL_H_
  6. #include <dhcp.h>
  7. typedef struct _M_OPTCLASSDEFL_ONE {
  8. DWORD ClassId;
  9. DWORD VendorId;
  10. M_OPTDEFLIST OptDefList;
  11. // ULONG UniqId;
  12. } M_OPTCLASSDEFL_ONE, *PM_OPTCLASSDEFL_ONE;
  13. typedef struct _M_OPTCLASSDEFLIST {
  14. ARRAY Array;
  15. } M_OPTCLASSDEFLIST, *PM_OPTCLASSDEFLIST, *LPM_OPTCLASSDEFLIST;
  16. DWORD _inline
  17. MemOptClassDefListInit(
  18. IN OUT PM_OPTCLASSDEFLIST OptClassDefList
  19. ) {
  20. return MemArrayInit(&OptClassDefList->Array);
  21. }
  22. DWORD _inline
  23. MemOptClassDefListCleanup(
  24. IN OUT PM_OPTCLASSDEFLIST OptClassDefList
  25. ) {
  26. // BUG BUG Bump down class Id refcount?
  27. return MemArrayCleanup(&OptClassDefList->Array);
  28. }
  29. DWORD
  30. MemOptClassDefListFindOptDefList(
  31. IN OUT PM_OPTCLASSDEFLIST OptClassDefList,
  32. IN DWORD ClassId,
  33. IN DWORD VendorId,
  34. OUT PM_OPTDEFLIST *OptDefList
  35. ) ;
  36. DWORD
  37. MemOptClassDefListAddOptDef(
  38. IN OUT PM_OPTCLASSDEFLIST OptClassDefList,
  39. IN DWORD ClassId,
  40. IN DWORD VendorId,
  41. IN DWORD OptId,
  42. IN DWORD Type,
  43. IN LPWSTR Name,
  44. IN LPWSTR Comment,
  45. IN LPBYTE OptVal,
  46. IN DWORD OptLen,
  47. IN ULONG UniqId
  48. ) ;
  49. #endif // _MM_OCLASSDL_H_
  50. //========================================================================
  51. // end of file
  52. //========================================================================