// 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 "imsenc.h"

/////////////////////////////////////////////////////////////////////////////
// CImsEnc

IMPLEMENT_DYNCREATE(CImsEnc, CWnd)

/////////////////////////////////////////////////////////////////////////////
// CImsEnc properties

short CImsEnc::GetActive()
{
	short result;
	GetProperty(0x1, VT_I2, (void*)&result);
	return result;
}

void CImsEnc::SetActive(short propVal)
{
	SetProperty(0x1, VT_I2, propVal);
}

/////////////////////////////////////////////////////////////////////////////
// CImsEnc operations

short CImsEnc::TestActiveChip(short CardNumber)
{
	short result;
	static BYTE parms[] =
		VTS_I2;
	InvokeHelper(0x2, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber);
	return result;
}

short CImsEnc::SetLed(short CardNumber, short LedNumber, short OnOffMode)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_I2 VTS_I2;
	InvokeHelper(0x3, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, LedNumber, OnOffMode);
	return result;
}

short CImsEnc::GetLed(short CardNumber, short LedNumber, short* OnOffMode)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_I2 VTS_PI2;
	InvokeHelper(0x4, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, LedNumber, OnOffMode);
	return result;
}

short CImsEnc::SetEncoderResolution(short CardNumber, short EncoderNumber, short ClocksPerCycle)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_I2 VTS_I2;
	InvokeHelper(0x5, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, EncoderNumber, ClocksPerCycle);
	return result;
}

short CImsEnc::GetEncoderResolution(short CardNumber, short EncoderNumber, short* ClocksPerCycle)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_I2 VTS_PI2;
	InvokeHelper(0x6, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, EncoderNumber, ClocksPerCycle);
	return result;
}

short CImsEnc::SetEncoderEventFlagSource(short CardNumber, short EncoderNumber, short EventFlagSource)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_I2 VTS_I2;
	InvokeHelper(0x7, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, EncoderNumber, EventFlagSource);
	return result;
}

short CImsEnc::GetEncoderEventFlagSource(short CardNumber, short EncoderNumber, short* EventFlagSource)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_I2 VTS_PI2;
	InvokeHelper(0x8, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, EncoderNumber, EventFlagSource);
	return result;
}

short CImsEnc::SetHoldEncoderEventFlag(short CardNumber, short EncoderNumber, short OnOffMode)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_I2 VTS_I2;
	InvokeHelper(0x9, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, EncoderNumber, OnOffMode);
	return result;
}

short CImsEnc::GetHoldEncoderEventFlag(short CardNumber, short EncoderNumber, short* OnOffMode)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_I2 VTS_PI2;
	InvokeHelper(0xa, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, EncoderNumber, OnOffMode);
	return result;
}

short CImsEnc::SetEncoderEventFlagPolarity(short CardNumber, short EncoderNumber, short Polarity)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_I2 VTS_I2;
	InvokeHelper(0xb, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, EncoderNumber, Polarity);
	return result;
}

short CImsEnc::GetEncoderEventFlagPolarity(short CardNumber, short EncoderNumber, short* Polarity)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_I2 VTS_PI2;
	InvokeHelper(0xc, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, EncoderNumber, Polarity);
	return result;
}

short CImsEnc::WriteOutputs(short CardNumber, short Outputs)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_I2;
	InvokeHelper(0xd, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, Outputs);
	return result;
}

short CImsEnc::ReadInputs(short CardNumber, short* Inputs, short* EncoderEventFlags)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_PI2 VTS_PI2;
	InvokeHelper(0xe, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, Inputs, EncoderEventFlags);
	return result;
}

short CImsEnc::ClearEncoderEventFlag(short CardNumber, short EncoderNumber)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_I2;
	InvokeHelper(0xf, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, EncoderNumber);
	return result;
}

short CImsEnc::SetIndexResetsPositionCounter(short CardNumber, short EncoderNumber, short EnabledDisabledMode)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_I2 VTS_I2;
	InvokeHelper(0x10, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, EncoderNumber, EnabledDisabledMode);
	return result;
}

short CImsEnc::GetIndexResetsPositionCounter(short CardNumber, short EncoderNumber, short* EnabledDisabledMode)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_I2 VTS_PI2;
	InvokeHelper(0x11, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, EncoderNumber, EnabledDisabledMode);
	return result;
}

short CImsEnc::SetIndexPulsePolarity(short CardNumber, short EncoderNumber, short Polarity)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_I2 VTS_I2;
	InvokeHelper(0x12, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, EncoderNumber, Polarity);
	return result;
}

short CImsEnc::GetIndexPulsePolarity(short CardNumber, short EncoderNumber, short* Polarity)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_I2 VTS_PI2;
	InvokeHelper(0x13, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, EncoderNumber, Polarity);
	return result;
}

short CImsEnc::GetSetPoint(short CardNumber, short EncoderNumber, long* SetPoint)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_I2 VTS_PI4;
	InvokeHelper(0x14, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, EncoderNumber, SetPoint);
	return result;
}

short CImsEnc::SetSetPoint(short CardNumber, short EncoderNumber, long SetPoint)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_I2 VTS_I4;
	InvokeHelper(0x15, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, EncoderNumber, SetPoint);
	return result;
}

short CImsEnc::ReadPositionCounter(short CardNumber, short EncoderNumber, long* PositionCounter)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_I2 VTS_PI4;
	InvokeHelper(0x16, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, EncoderNumber, PositionCounter);
	return result;
}

short CImsEnc::RequestPositionCounter(short CardNumber, short EncoderNumber, short OutputsMirror)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_I2 VTS_I2;
	InvokeHelper(0x17, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, EncoderNumber, OutputsMirror);
	return result;
}

short CImsEnc::ResetPositionCounter(short CardNumber, short EncoderNumber, short OutputsMirror)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_I2 VTS_I2;
	InvokeHelper(0x18, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, EncoderNumber, OutputsMirror);
	return result;
}

short CImsEnc::SetInterruptMode(short CardNumber, short EnabledDisabledMode)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_I2;
	InvokeHelper(0x1b, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, EnabledDisabledMode);
	return result;
}

short CImsEnc::GetInterruptMode(short CardNumber, short* EnabledDisabledMode)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_PI2;
	InvokeHelper(0x1c, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, EnabledDisabledMode);
	return result;
}

short CImsEnc::SetInterruptPolarity(short CardNumber, short Polarity)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_I2;
	InvokeHelper(0x1d, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, Polarity);
	return result;
}

short CImsEnc::GetInterruptPolarity(short CardNumber, short* Polarity)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_PI2;
	InvokeHelper(0x1e, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, Polarity);
	return result;
}

short CImsEnc::SetInterruptSource(short CardNumber, short InterruptSource)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_I2;
	InvokeHelper(0x1f, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, InterruptSource);
	return result;
}

short CImsEnc::GetInterruptSource(short CardNumber, short* InterruptSource)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_PI2;
	InvokeHelper(0x20, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, InterruptSource);
	return result;
}

short CImsEnc::SetActiveChip(short CardNumber, short ChipNumber)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_I2;
	InvokeHelper(0x21, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, ChipNumber);
	return result;
}

short CImsEnc::GetActiveChip(short CardNumber, short* ChipNumber)
{
	short result;
	static BYTE parms[] =
		VTS_I2 VTS_PI2;
	InvokeHelper(0x22, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardNumber, ChipNumber);
	return result;
}

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