windows-nt/Source/XPSP1/NT/net/ias/iasjet/setup/attributes.cpp

49 lines
1.2 KiB
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
/////////////////////////////////////////////////////////////////////////////
//
// Copyright(C) 2000 Microsoft Corporation all rights reserved.
//
// Module: Attributes.cpp
//
// Project: Windows 2000 IAS
//
// Description:
// Implementation of the CAttributes class (dnary.mdb)
//
// Author: tperraut
//
// Revision 03/15/2000 created
//
/////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Attributes.h"
CAttributes::CAttributes(CSession& Session)
{
Init(Session);
}
//////////////////////////////////////////////////////////////////////////
// GetAttribute
//////////////////////////////////////////////////////////////////////////
HRESULT CAttributes::GetAttribute(
LONG ID,
_bstr_t& LDAPName,
LONG& Syntax,
BOOL& IsMultiValued
)
{
m_IDParam = ID;
// Used if you have previously created the command
HRESULT hr = BaseExecute();
if ( hr == S_OK )
{
LDAPName = m_LDAPName;
Syntax = m_Syntax;
IsMultiValued = m_MultiValued;
}
return hr;
}