Files
yttrium-virtio-gpu/viocrypt/test/viocrypt-test.cpp
T
Yuri Benditovich 634052314a viocrypt: initial addition of projects and files
Added driver, provider, test and package projects
Currently they are for build purpose only.

Signed-off-by: Yuri Benditovich <[email protected]>
2018-04-06 18:44:02 +03:00

47 lines
945 B
C++

// viocrypt-test.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "viocrypt-test.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// The one and only application object
CWinApp theApp;
using namespace std;
int main()
{
int nRetCode = 0;
HMODULE hModule = ::GetModuleHandle(nullptr);
if (hModule != nullptr)
{
// initialize MFC and print and error on failure
if (!AfxWinInit(hModule, nullptr, ::GetCommandLine(), 0))
{
// TODO: change error code to suit your needs
wprintf(L"Fatal Error: MFC initialization failed\n");
nRetCode = 1;
}
else
{
// TODO: code your application's behavior here.
}
}
else
{
// TODO: change error code to suit your needs
wprintf(L"Fatal Error: GetModuleHandle failed\n");
nRetCode = 1;
}
return nRetCode;
}