main.cpp 850 Bytes
#include "DLCardManager.h"
#include <stdio.h>
#include <string>
#include "DLCardTest.h"
#include <iostream>

int main()
{
	std::cout << "Test start " << std::endl;
	DLCConnectDevice();
	DLCFindCard();

	////WriteTest();

	//ReadTest();

	////InstallKeyTest();

	////AuthenticationKeyTest();

	CreateFileTest();


	//DLCDisconnectDevice();

	/*unsigned char write_data[9] = { 0 };
	for (int index = 0; index != 9; ++index)
	{
	write_data[index] = index;
	}
	unsigned char cmd[50] = { 0 };

	unsigned char key[16] = { 0 };

	unsigned char random[8] = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 };*/

	//DLCSOGetRandom(cmd);

	//DLCSOAuthenticationKey(1, key, random, cmd);

	//DLCSOReadData(5, 16, cmd);

	//DLCSOWriteData(key, random, 5, 9, write_data, cmd);

	//unsigned char dir[2] = { 0x00, 0x25 };
	//DLCSOSelectDir(dir, cmd);

	getchar();
}