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

/////////////////////////////////////////////////////////////////////////////
// CImsEncPci

IMPLEMENT_DYNCREATE(CImsEncPci, CWnd)

/////////////////////////////////////////////////////////////////////////////
// CImsEncPci properties

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

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

/////////////////////////////////////////////////////////////////////////////
// CImsEncPci operations

short CImsEncPci::TestActiveChip(long CardHandle)
{
	short result;
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x2, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardHandle);
	return result;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

short CImsEncPci::GetActiveChip(long CardHandle, short* ChipNumber)
{
	short result;
	static BYTE parms[] =
		VTS_I4 VTS_PI2;
	InvokeHelper(0x22, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardHandle, ChipNumber);
	return result;
}

short CImsEncPci::GetCardHandle(long* CardHandle, short CardIndex)
{
	short result;
	static BYTE parms[] =
		VTS_PI4 VTS_I2;
	InvokeHelper(0x26, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardHandle, CardIndex);
	return result;
}

short CImsEncPci::GetRevisionID(long CardHandle, short* RevisionID)
{
	short result;
	static BYTE parms[] =
		VTS_I4 VTS_PI2;
	InvokeHelper(0x27, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		CardHandle, RevisionID);
	return result;
}

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