MSCHAT.CPP

//**************************************************************************** 
// Module: Chat2000.EXE
// File: MsChat.Cpp
//
//
// Copyright (c) Microsoft Corporation 1995-1997
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//****************************************************************************

// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++

// NOTE: Do not modify the contents of this file. If this class is regenerated by
// Microsoft Visual C++, your modifications will be overwritten.


#include "stdafx.h"
#include "mschat.h"

/////////////////////////////////////////////////////////////////////////////
// CMSChat

IMPLEMENT_DYNCREATE(CMSChat, CWnd)

/////////////////////////////////////////////////////////////////////////////
// CMSChat properties

/////////////////////////////////////////////////////////////////////////////
// CMSChat operations

unsigned long CMSChat::AddRef()
{
unsigned long result;
InvokeHelper(0x60000001, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
return result;
}

unsigned long CMSChat::Release()
{
unsigned long result;
InvokeHelper(0x60000002, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
return result;
}

unsigned long CMSChat::GetBackColor()
{
unsigned long result;
InvokeHelper(DISPID_BACKCOLOR, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}

void CMSChat::SetBackColor(unsigned long newValue)
{
static BYTE parms[] =
VTS_I4;
InvokeHelper(DISPID_BACKCOLOR, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
newValue);
}

short CMSChat::GetWidth()
{
short result;
InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
return result;
}

void CMSChat::SetWidth(short nNewValue)
{
static BYTE parms[] =
VTS_I2;
InvokeHelper(0x3, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nNewValue);
}

short CMSChat::GetHeight()
{
short result;
InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
return result;
}

void CMSChat::SetHeight(short nNewValue)
{
static BYTE parms[] =
VTS_I2;
InvokeHelper(0x4, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nNewValue);
}

short CMSChat::GetUIOption()
{
short result;
InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
return result;
}

void CMSChat::SetUIOption(short nNewValue)
{
static BYTE parms[] =
VTS_I2;
InvokeHelper(0x1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nNewValue);
}

short CMSChat::GetState()
{
short result;
InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
return result;
}

void CMSChat::SetState(short nNewValue)
{
static BYTE parms[] =
VTS_I2;
InvokeHelper(0x2, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nNewValue);
}

short CMSChat::GetBorderStyle()
{
short result;
InvokeHelper(DISPID_BORDERSTYLE, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
return result;
}

void CMSChat::SetBorderStyle(short nNewValue)
{
static BYTE parms[] =
VTS_I2;
InvokeHelper(DISPID_BORDERSTYLE, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nNewValue);
}

short CMSChat::GetAppearance()
{
short result;
InvokeHelper(DISPID_APPEARANCE, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
return result;
}

void CMSChat::SetAppearance(short nNewValue)
{
static BYTE parms[] =
VTS_I2;
InvokeHelper(DISPID_APPEARANCE, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nNewValue);
}

short CMSChat::GetMaxMessageLength()
{
short result;
InvokeHelper(0x5, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
return result;
}

void CMSChat::SetMaxMessageLength(short nNewValue)
{
static BYTE parms[] =
VTS_I2;
InvokeHelper(0x5, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nNewValue);
}

long CMSChat::GetMaxHistoryLength()
{
long result;
InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}

void CMSChat::SetMaxHistoryLength(long nNewValue)
{
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x6, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nNewValue);
}

long CMSChat::GetMemberCount()
{
long result;
InvokeHelper(0x7, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}

void CMSChat::SetMemberCount(long nNewValue)
{
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x7, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nNewValue);
}

long CMSChat::GetMaxMembers()
{
long result;
InvokeHelper(0x1c, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}

void CMSChat::SetMaxMembers(long nNewValue)
{
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x1c, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nNewValue);
}

CString CMSChat::GetRating()
{
CString result;
InvokeHelper(0x8, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
return result;
}

void CMSChat::SetRating(LPCTSTR lpszNewValue)
{
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0x8, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
lpszNewValue);
}

long CMSChat::GetThisParticipantID()
{
long result;
InvokeHelper(0x9, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}

void CMSChat::SetThisParticipantID(long nNewValue)
{
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x9, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nNewValue);
}

CString CMSChat::GetThisParticipantName()
{
CString result;
InvokeHelper(0xa, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
return result;
}

void CMSChat::SetThisParticipantName(LPCTSTR lpszNewValue)
{
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0xa, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
lpszNewValue);
}

CString CMSChat::GetThisParticipantAlias()
{
CString result;
InvokeHelper(0xb, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
return result;
}

void CMSChat::SetThisParticipantAlias(LPCTSTR lpszNewValue)
{
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0xb, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
lpszNewValue);
}

CString CMSChat::GetRoomPath()
{
CString result;
InvokeHelper(0xc, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
return result;
}

void CMSChat::SetRoomPath(LPCTSTR lpszNewValue)
{
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0xc, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
lpszNewValue);
}

CString CMSChat::GetRoomTopic()
{
CString result;
InvokeHelper(0xd, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
return result;
}

void CMSChat::SetRoomTopic(LPCTSTR lpszNewValue)
{
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0xd, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
lpszNewValue);
}

CString CMSChat::GetLastMessageSent()
{
CString result;
InvokeHelper(0xe, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
return result;
}

void CMSChat::SetLastMessageSent(LPCTSTR lpszNewValue)
{
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0xe, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
lpszNewValue);
}

CString CMSChat::GetLastMessageReceived()
{
CString result;
InvokeHelper(0xf, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
return result;
}

void CMSChat::SetLastMessageReceived(LPCTSTR lpszNewValue)
{
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0xf, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
lpszNewValue);
}

CString CMSChat::GetHistory()
{
CString result;
InvokeHelper(0x10, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
return result;
}

void CMSChat::SetHistory(LPCTSTR lpszNewValue)
{
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0x10, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
lpszNewValue);
}

void CMSChat::GetParticipantRealName(long ParticipantID, LPCTSTR Alias, BOOL Synchronous, BSTR* RealName)
{
static BYTE parms[] =
VTS_I4 VTS_BSTR VTS_BOOL VTS_PBSTR;
InvokeHelper(0x11, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
ParticipantID, Alias, Synchronous, RealName);
}

void CMSChat::SelectParticipants(short Selection)
{
static BYTE parms[] =
VTS_I2;
InvokeHelper(0x12, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
Selection);
}

void CMSChat::MoveSplitBar()
{
InvokeHelper(0x13, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

void CMSChat::ClearHistory()
{
InvokeHelper(0x14, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

void CMSChat::EnterRoom(LPCTSTR URL, LPCTSTR RoomPassword, LPCTSTR ThisParticipantAlias, LPCTSTR SecurityPackage, short Flags, short Type)
{
static BYTE parms[] =
VTS_BSTR VTS_BSTR VTS_BSTR VTS_BSTR VTS_I2 VTS_I2;
InvokeHelper(0x15, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
URL, RoomPassword, ThisParticipantAlias, SecurityPackage, Flags, Type);
}

void CMSChat::CancelEntering()
{
InvokeHelper(0x16, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

void CMSChat::ExitRoom()
{
InvokeHelper(0x17, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

void CMSChat::SetParticipantStatus(long ParticipantID, short Mask, short Status)
{
static BYTE parms[] =
VTS_I4 VTS_I2 VTS_I2;
InvokeHelper(0x18, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
ParticipantID, Mask, Status);
}

void CMSChat::KickParticipant(long ParticipantID, LPCTSTR Comment)
{
static BYTE parms[] =
VTS_I4 VTS_BSTR;
InvokeHelper(0x19, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
ParticipantID, Comment);
}

void CMSChat::BanParticipant(LPCTSTR Alias, BOOL Set)
{
static BYTE parms[] =
VTS_BSTR VTS_BOOL;
InvokeHelper(0x1a, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
Alias, Set);
}

void CMSChat::SendMessage(const VARIANT& DestList, short Count, const VARIANT& Message)
{
static BYTE parms[] =
VTS_VARIANT VTS_I2 VTS_VARIANT;
InvokeHelper(0x1b, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
&DestList, Count, &Message);
}

void CMSChat::AboutBox()
{
InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}