326 lines
7.2 KiB
C++
326 lines
7.2 KiB
C++
//---------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 1992 - 1995
|
|
//
|
|
// File: cubi.cxx
|
|
//
|
|
// Contents:
|
|
//
|
|
// History: 11-1-95 krishnag Created.
|
|
// 8-5-96 ramv Modified to be consistent with spec
|
|
//
|
|
//
|
|
// PROPERTY_RW(Address, VARIANT, 1) NI
|
|
// PROPERTY_RW(Department, BSTR, 3) NI
|
|
// PROPERTY_RW(Division, BSTR, 5) NI
|
|
// PROPERTY_RW(EmployeeID, BSTR, 6) NI
|
|
// PROPERTY_RW(FirstName, BSTR, 8) Implemented
|
|
// PROPERTY_RW(FullName, BSTR, 9) NI
|
|
// PROPERTY_RW(Initials, BSTR, 10) NI
|
|
// PROPERTY_RW(LastName, BSTR, 11) NI
|
|
// PROPERTY_RW(Manager, BSTR, 12) NI
|
|
// PROPERTY_RW(NickName, BSTR, 13) NI
|
|
// PROPERTY_RW(OfficeLocation, BSTR, 14) NI
|
|
// PROPERTY_RW(Picture, VARIANT, 15) NI
|
|
// PROPERTY_RW(TelephoneNumber, BSTR, 18) NI
|
|
// PROPERTY_RW(Title, BSTR, 19)
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
#include "NWCOMPAT.hxx"
|
|
#pragma hdrstop
|
|
|
|
// Class CNWCOMPATUser
|
|
|
|
|
|
|
|
|
|
/* IADsFSUserBusinessInformation methods */
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::get_Department(THIS_ BSTR FAR* retval)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::put_Department(THIS_ BSTR bstrDepartment)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::get_Description(THIS_ BSTR FAR* retval)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::put_Description(THIS_ BSTR bstrDescription)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::get_Division(THIS_ BSTR FAR* retval)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::put_Division(THIS_ BSTR bstrDivision)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::get_EmployeeID(THIS_ BSTR FAR* retval)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::put_EmployeeID(THIS_ BSTR bstrEmployeeID)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::get_FirstName(THIS_ BSTR FAR* retval)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::put_FirstName(THIS_ BSTR bstrFirstName)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::get_FullName(THIS_ BSTR FAR* retval)
|
|
{
|
|
GET_PROPERTY_BSTR((IADsUser *)this, FullName);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::put_FullName(THIS_ BSTR bstrFullName)
|
|
{
|
|
PUT_PROPERTY_BSTR((IADsUser *)this, FullName);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::get_LastName(THIS_ BSTR FAR* retval)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::put_LastName(THIS_ BSTR bstrLastName)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::get_Manager(THIS_ BSTR FAR* retval)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::put_Manager(THIS_ BSTR bstrManager)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::get_OfficeLocations(THIS_ VARIANT FAR* retval)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::put_OfficeLocations(THIS_ VARIANT vOfficeLocation)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::get_Picture(THIS_ VARIANT FAR* retval)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::put_Picture(THIS_ VARIANT vPicture)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::get_PostalAddresses(THIS_ VARIANT FAR* retval)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::put_PostalAddresses(THIS_ VARIANT vPostalAddresses)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::get_PostalCodes(THIS_ VARIANT FAR* retval)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::put_PostalCodes(THIS_ VARIANT vPostalCodes)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::get_TelephoneNumber(THIS_ VARIANT FAR* retval)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::put_TelephoneNumber(THIS_ VARIANT vTelephoneNumber)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::get_TelephoneHome(THIS_ VARIANT FAR* retval)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::put_TelephoneHome(THIS_ VARIANT vTelephoneHome)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::get_TelephoneMobile(THIS_ VARIANT FAR* retval)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::put_TelephoneMobile(THIS_ VARIANT vTelephoneMobile)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::get_TelephonePager(THIS_ VARIANT FAR* retval)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::put_TelephonePager(THIS_ VARIANT vTelephonePager)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::get_FaxNumber(THIS_ VARIANT FAR* retval)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::put_FaxNumber(THIS_ VARIANT vFaxNumber)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::get_Title(THIS_ BSTR FAR* retval)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP
|
|
CNWCOMPATUser::put_Title(THIS_ BSTR bstrTitle)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_ADS_PROPERTY_NOT_SUPPORTED);
|
|
}
|
|
|
|
STDMETHODIMP CNWCOMPATUser::Groups(THIS_ IADsMembers FAR* FAR * ppGroups)
|
|
{
|
|
HRESULT hr = S_OK;
|
|
|
|
hr = CNWCOMPATUserCollection::CreateUserCollection(
|
|
_Parent,
|
|
_ParentType,
|
|
_ServerName,
|
|
_Name,
|
|
IID_IADsMembers,
|
|
(void **)ppGroups
|
|
);
|
|
RRETURN_EXP_IF_ERR(hr);
|
|
}
|
|
STDMETHODIMP CNWCOMPATUser::get_HomePage(THIS_ BSTR FAR* retval)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_NOTIMPL);
|
|
}
|
|
STDMETHODIMP CNWCOMPATUser::put_HomePage(THIS_ BSTR bstrHomePage)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_NOTIMPL);
|
|
}
|
|
|
|
STDMETHODIMP CNWCOMPATUser::get_SeeAlso(THIS_ VARIANT FAR* retval)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_NOTIMPL);
|
|
}
|
|
STDMETHODIMP CNWCOMPATUser::put_SeeAlso(THIS_ VARIANT vSeeAlso)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_NOTIMPL);
|
|
}
|
|
|
|
STDMETHODIMP CNWCOMPATUser::get_NamePrefix(THIS_ BSTR FAR* retval)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_NOTIMPL);
|
|
}
|
|
STDMETHODIMP CNWCOMPATUser::put_NamePrefix(THIS_ BSTR bstrNamePrefix)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_NOTIMPL);
|
|
}
|
|
STDMETHODIMP CNWCOMPATUser::get_NameSuffix(THIS_ BSTR FAR* retval)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_NOTIMPL);
|
|
}
|
|
|
|
STDMETHODIMP CNWCOMPATUser::put_NameSuffix(THIS_ BSTR bstrNamePrefix)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_NOTIMPL);
|
|
}
|
|
|
|
STDMETHODIMP CNWCOMPATUser::get_OtherName(THIS_ BSTR FAR* retval)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_NOTIMPL);
|
|
}
|
|
STDMETHODIMP CNWCOMPATUser::put_OtherName(THIS_ BSTR bstrOtherName)
|
|
{
|
|
RRETURN_EXP_IF_ERR(E_NOTIMPL);
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|