2016-02-04 12:42:05 +08:00
|
|
|
/*******************************************************************************
|
|
|
|
*
|
2019-01-05 15:58:41 +08:00
|
|
|
* (C) COPYRIGHT AUTHORS, 2016 - 2019
|
2016-02-04 12:42:05 +08:00
|
|
|
*
|
|
|
|
* TITLE: GLOBAL.H
|
|
|
|
*
|
2019-01-05 15:58:41 +08:00
|
|
|
* VERSION: 1.14
|
2016-02-04 12:42:05 +08:00
|
|
|
*
|
2019-01-05 15:58:41 +08:00
|
|
|
* DATE: 05 Jan 2019
|
2016-02-04 12:42:05 +08:00
|
|
|
*
|
|
|
|
* Common header file for the program support routines.
|
|
|
|
*
|
|
|
|
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
|
|
|
|
* ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
|
|
* TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
|
|
|
|
* PARTICULAR PURPOSE.
|
|
|
|
*
|
|
|
|
*******************************************************************************/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
//disable nonmeaningful warnings.
|
|
|
|
#pragma warning(disable: 4005) // macro redefinition
|
|
|
|
#pragma warning(disable: 4201) // nonstandard extension used : nameless struct/union
|
|
|
|
|
|
|
|
#include <Windows.h>
|
|
|
|
#include <ntstatus.h>
|
|
|
|
#include "ntos.h"
|
|
|
|
#include "minirtl\minirtl.h"
|
|
|
|
#include "minirtl\rtltypes.h"
|
|
|
|
#include "minirtl\cmdline.h"
|
|
|
|
#include "sup.h"
|
|
|
|
#include "cui.h"
|
|
|
|
#include "instdrv.h"
|
|
|
|
|
|
|
|
#if !defined UNICODE
|
|
|
|
#error ANSI build is not supported
|
|
|
|
#endif
|
|
|
|
|
2019-01-05 15:58:41 +08:00
|
|
|
#if defined (_MSC_VER)
|
|
|
|
#if (_MSC_VER >= 1900)
|
2016-02-04 12:42:05 +08:00
|
|
|
#ifdef _DEBUG
|
|
|
|
#pragma comment(lib, "vcruntimed.lib")
|
|
|
|
#pragma comment(lib, "ucrtd.lib")
|
|
|
|
#else
|
2019-01-05 15:58:41 +08:00
|
|
|
#pragma comment(lib, "libucrt.lib")
|
2016-02-04 12:42:05 +08:00
|
|
|
#pragma comment(lib, "libvcruntime.lib")
|
|
|
|
#endif
|
|
|
|
#endif
|
2019-01-05 15:58:41 +08:00
|
|
|
#endif
|