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.
101 lines
1.7 KiB
101 lines
1.7 KiB
/*++
|
|
|
|
Copyright (c) 1996 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
bindata.hxx
|
|
|
|
Abstract:
|
|
|
|
Binary Data Class for IIS MetaBase.
|
|
|
|
Author:
|
|
|
|
Michael W. Thomas 17-May-96
|
|
|
|
Revision History:
|
|
|
|
Notes:
|
|
|
|
Virtual functions comments in basedata.hxx.
|
|
|
|
--*/
|
|
|
|
#ifndef _bindata_
|
|
#define _bindata_
|
|
|
|
class CMDBINData : public CMDBaseData
|
|
{
|
|
public:
|
|
CMDBINData(
|
|
DWORD dwMDIdentifier,
|
|
DWORD dwMDAttributes,
|
|
DWORD dwMDUserType,
|
|
DWORD dwMDDataLen,
|
|
PVOID binMDData)
|
|
:
|
|
CMDBaseData(dwMDIdentifier, dwMDAttributes, dwMDUserType),
|
|
m_binMDData (dwMDDataLen, binMDData)
|
|
/*++
|
|
|
|
Routine Description:
|
|
|
|
Constructor for a string object.
|
|
|
|
Arguments:
|
|
|
|
MDIdentifier - The Identifier of the data object.
|
|
|
|
MDAttributes - The data object attributes.
|
|
|
|
MDUserType - The data object User Type.
|
|
|
|
MDDataLen - The number of bytes in MDData.
|
|
|
|
MDData - The binary data.
|
|
|
|
Return Value:
|
|
|
|
--*/
|
|
|
|
{};
|
|
|
|
virtual PVOID GetData(BOOL)
|
|
{
|
|
return ((PVOID) m_binMDData.QueryBuf());
|
|
};
|
|
|
|
virtual DWORD GetDataLen(BOOL)
|
|
{
|
|
return (m_binMDData.QueryCB());
|
|
};
|
|
/*
|
|
virtual DWORD SetData(
|
|
DWORD dwMDAttributes,
|
|
DWORD dwMDUserType,
|
|
DWORD dwMDDataLen,
|
|
PVOID binMDData)
|
|
{
|
|
m_binMDData.Copy(dwMDDataLen, binMDData);
|
|
return(CMDBaseData::SetData(dwMDAttributes, dwMDUserType));
|
|
};
|
|
*/
|
|
virtual DWORD GetDataType()
|
|
{
|
|
return(BINARY_METADATA);
|
|
};
|
|
|
|
virtual BOOL IsValid()
|
|
{
|
|
return m_binMDData.IsValid();
|
|
};
|
|
|
|
private:
|
|
|
|
CBIN m_binMDData;
|
|
|
|
};
|
|
#endif
|
|
|
|
|