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.
|
|
/*++
Copyright (c) 1996 Microsoft Corporation
Module Name:
strdata.hxx
Abstract:
String Data Class for IIS MetaBase.
Author:
Michael W. Thomas 17-May-96
Revision History:
Notes:
Virtual functions comments in basedata.hxx.
--*/
#ifndef _mlszdata_
#define _mlszdata_
class CMDMLSZData : public CMDBaseData { public: CMDMLSZData( DWORD dwMDIdentifier, DWORD dwMDAttributes, DWORD dwMDUserType, DWORD dwMDDataLen, LPSTR pszMDData, BOOL bUnicode = FALSE) : CMDBaseData(dwMDIdentifier, dwMDAttributes, dwMDUserType), m_mlszMDData (pszMDData, bUnicode, ((bUnicode) ? (dwMDDataLen / (DWORD)sizeof(WCHAR)) : (dwMDDataLen))) /*++
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 bUnicode = FALSE) { return ((PVOID) m_mlszMDData.QueryStr(bUnicode)); };
virtual DWORD GetDataLen(BOOL bUnicode = FALSE) { return (m_mlszMDData.QueryCB(bUnicode)); };
virtual DWORD GetDataType() { return(MULTISZ_METADATA); };
virtual BOOL IsValid() { return m_mlszMDData.IsValid(); };
private: MLSZAU m_mlszMDData; }; #endif
|