mirror of
https://github.com/arehnman/yttrium-virtio-gpu.git
synced 2026-10-31 02:05:04 +00:00
Added driver, provider, test and package projects Currently they are for build purpose only. Signed-off-by: Yuri Benditovich <[email protected]>
47 lines
945 B
C++
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;
|
|
}
|