mirror of
https://github.com/arehnman/yttrium-virtio-gpu.git
synced 2026-10-31 02:05:04 +00:00
48 lines
1.1 KiB
C++
48 lines
1.1 KiB
C++
// NetKVMDumpParser.cpp : Defines the entry point for the console application.
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
/**********************************************************************
|
|
* Copyright (c) 2008 Red Hat, Inc.
|
|
*
|
|
* File: main.cpp
|
|
*
|
|
* Contains entry point to console application
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2. See
|
|
* the COPYING file in the top-level directory.
|
|
*
|
|
**********************************************************************/
|
|
|
|
#include "NetKVMDumpParser.h"
|
|
|
|
#ifdef _DEBUG
|
|
#define new DEBUG_NEW
|
|
#endif
|
|
|
|
|
|
// The one and only application object
|
|
|
|
CWinApp theApp;
|
|
|
|
using namespace std;
|
|
|
|
int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
|
|
{
|
|
int nRetCode = 0;
|
|
|
|
// initialize MFC and print and error on failure
|
|
if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0))
|
|
{
|
|
// TODO: change error code to suit your needs
|
|
_tprintf(_T("Fatal Error: MFC initialization failed\n"));
|
|
nRetCode = 1;
|
|
}
|
|
else
|
|
{
|
|
nRetCode = ParseDumpFile(argc, argv);
|
|
}
|
|
|
|
return nRetCode;
|
|
}
|