2016-02-04 12:42:05 +08:00
|
|
|
/*******************************************************************************
|
|
|
|
*
|
2017-04-17 19:45:41 +08:00
|
|
|
* (C) COPYRIGHT AUTHORS, 2016 - 2017
|
2016-02-04 12:42:05 +08:00
|
|
|
*
|
|
|
|
* TITLE: GLOBAL.H
|
|
|
|
*
|
2017-04-20 17:52:12 +08:00
|
|
|
* VERSION: 1.11
|
2016-02-04 12:42:05 +08:00
|
|
|
*
|
2017-04-20 17:52:12 +08:00
|
|
|
* DATE: 20 Apr 2017
|
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: 4152) // nonstandard extension, function/data pointer conversion in expression
|
|
|
|
#pragma warning(disable: 4201) // nonstandard extension used : nameless struct/union
|
|
|
|
#pragma warning(disable: 6102) // Using %s from failed function call at line %u
|
|
|
|
#pragma warning(disable: 6320) //exception-filter expression is the constant EXCEPTION_EXECUTE_HANDLER
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
|
|
|
#if (_MSC_VER >= 1900)
|
|
|
|
#ifdef _DEBUG
|
|
|
|
#pragma comment(lib, "vcruntimed.lib")
|
|
|
|
#pragma comment(lib, "ucrtd.lib")
|
|
|
|
#else
|
|
|
|
#pragma comment(lib, "libvcruntime.lib")
|
|
|
|
#endif
|
|
|
|
#endif
|