Files
yttrium-virtio-gpu/NetKVM/CoInstaller/stdafx.h
T
Yuri Benditovich af78b83bad netkvmko: replace netsh.h includes with own ones
netkvmco.h becomes interface file between static lib and the
application that uses it. The application should call start
and stop procedures of the helper and resolve missing
procedures that previously were in netsh.lib

Signed-off-by: Yuri Benditovich <[email protected]>
2023-09-26 09:21:39 +02:00

53 lines
1.3 KiB
C++

// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once
#include "targetver.h"
#include "resource.h"
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#endif
// Windows Header Files:
#pragma warning(push, 3)
#include <stdio.h>
#include <tchar.h>
#include <windows.h>
#include <winscard.h>
#include "netkvmco.h"
#include <setupapi.h>
#include <strsafe.h>
#include <Cfgmgr32.h>
#pragma warning(pop)
#ifdef __cplusplus
#include "tstrings.h"
#include "Exception.h"
#pragma warning(push, 3)
#pragma warning(disable:4995) //name was marked as #pragma deprecated
#include <vector>
#include <algorithm>
#pragma warning(pop)
using namespace std;
#endif
#pragma warning(disable:4512) //assignment operator could not be generated
#ifdef _DEBUG
#define NETCO_DEBUG_PRINT(x) { tcout << TEXT("NETKVM: ") << x << endl;}
#else
#define NETCO_DEBUG_PRINT(x) { wstringbuf sb; wostream s(&sb); s << TEXT("NETKVM: ") << x << endl; OutputDebugString(sb.str().c_str()); }
#endif
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(a) (sizeof(a)/sizeof((a)[0]))
#endif
// TODO: reference additional headers your program requires here