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.

85 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. dwdata.hxx
  5. Abstract:
  6. DWORD Data Class for IIS MetaBase.
  7. Author:
  8. Michael W. Thomas 17-May-96
  9. Revision History:
  10. Notes:
  11. Virtual functions comments in basedata.hxx.
  12. --*/
  13. #ifndef _dwdata_
  14. #define _dwdata_
  15. class CMDDWData : public CMDBaseData
  16. {
  17. public:
  18. CMDDWData(
  19. DWORD dwMDIdentifier,
  20. DWORD dwMDAttributes,
  21. DWORD dwMDUserType,
  22. DWORD dwMDData)
  23. :
  24. CMDBaseData(dwMDIdentifier, dwMDAttributes, dwMDUserType),
  25. m_dwMDData (dwMDData)
  26. /*++
  27. Routine Description:
  28. Constructor for a string object.
  29. Arguments:
  30. MDIdentifier - The Identifier of the data object.
  31. MDAttributes - The data object attributes.
  32. MDUserType - The data object User Type.
  33. MDData - The DWORD data.
  34. Return Value:
  35. --*/
  36. {};
  37. virtual PVOID GetData(BOOL)
  38. {
  39. return ((PVOID) &m_dwMDData);
  40. };
  41. virtual DWORD GetDataLen(BOOL)
  42. {
  43. return (sizeof(m_dwMDData));
  44. };
  45. /*
  46. virtual DWORD SetData(
  47. DWORD dwMDAttributes,
  48. DWORD dwMDUserType,
  49. DWORD dwMDDataLen,
  50. PVOID binMDData)
  51. {
  52. m_dwMDData = *(PDWORD)binMDData;
  53. return(CMDBaseData::SetData(dwMDAttributes, dwMDUserType));
  54. };
  55. */
  56. virtual DWORD GetDataType() {return(DWORD_METADATA);};
  57. private:
  58. DWORD m_dwMDData;
  59. };
  60. #endif
  61.