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.

100 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. bindata.hxx
  5. Abstract:
  6. Binary 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 _bindata_
  14. #define _bindata_
  15. class CMDBINData : public CMDBaseData
  16. {
  17. public:
  18. CMDBINData(
  19. DWORD dwMDIdentifier,
  20. DWORD dwMDAttributes,
  21. DWORD dwMDUserType,
  22. DWORD dwMDDataLen,
  23. PVOID binMDData)
  24. :
  25. CMDBaseData(dwMDIdentifier, dwMDAttributes, dwMDUserType),
  26. m_binMDData (dwMDDataLen, binMDData)
  27. /*++
  28. Routine Description:
  29. Constructor for a string object.
  30. Arguments:
  31. MDIdentifier - The Identifier of the data object.
  32. MDAttributes - The data object attributes.
  33. MDUserType - The data object User Type.
  34. MDDataLen - The number of bytes in MDData.
  35. MDData - The binary data.
  36. Return Value:
  37. --*/
  38. {};
  39. virtual PVOID GetData(BOOL)
  40. {
  41. return ((PVOID) m_binMDData.QueryBuf());
  42. };
  43. virtual DWORD GetDataLen(BOOL)
  44. {
  45. return (m_binMDData.QueryCB());
  46. };
  47. /*
  48. virtual DWORD SetData(
  49. DWORD dwMDAttributes,
  50. DWORD dwMDUserType,
  51. DWORD dwMDDataLen,
  52. PVOID binMDData)
  53. {
  54. m_binMDData.Copy(dwMDDataLen, binMDData);
  55. return(CMDBaseData::SetData(dwMDAttributes, dwMDUserType));
  56. };
  57. */
  58. virtual DWORD GetDataType()
  59. {
  60. return(BINARY_METADATA);
  61. };
  62. virtual BOOL IsValid()
  63. {
  64. return m_binMDData.IsValid();
  65. };
  66. private:
  67. CBIN m_binMDData;
  68. };
  69. #endif
  70.