]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Sample/Include/Efi2WinNT.h
1. Import UsbKbDxe and UsbMouseDxe into MdeModulePkg
[mirror_edk2.git] / EdkCompatibilityPkg / Sample / Include / Efi2WinNT.h
CommitLineData
3eb9473e 1/*++\r
2\r
3Copyright (c) 2004, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13\r
14 Efi2WinNT.h\r
15\r
16Abstract:\r
17\r
18 Tiano mechanism to create WIN32 EFI code.\r
19\r
20 Only used for NT emulation environment. This file replaces the Tiano.h\r
21 when you need to access Win32 stuff in EFI.\r
22\r
23 Don't access Win32 APIs directly allways go WinNtThunk protocol.\r
24\r
25 In most envirnments gWinNt is a pointer to a EFI_WIN_NT_THUNK_PROTOCOL.\r
26\r
27--*/\r
28\r
29#ifndef _EFI_WIN_NT_H_\r
30#define _EFI_WIN_NT_H_\r
31\r
32//\r
33// Win32 include files do not compile clean with /W4, so we use the warning\r
34// pragma to suppress the warnings for Win32 only. This way our code can stil\r
35// compile at /W4 (highest warning level) with /WX (warnings cause build\r
36// errors).\r
37//\r
38#pragma warning(disable : 4115)\r
39#pragma warning(disable : 4201)\r
40#pragma warning(disable : 4214)\r
41#pragma warning(disable : 4028)\r
42#pragma warning(disable : 4133)\r
43\r
44#include "windows.h"\r
45\r
46//\r
47// Set the warnings back on so the EFI code must be /W4.\r
48//\r
49#pragma warning(default : 4115)\r
50#pragma warning(default : 4201)\r
51#pragma warning(default : 4214)\r
52//\r
53// We replaced Tiano.h so we must include it.\r
54//\r
55#include "Tiano.h"\r
56\r
57#include EFI_PROTOCOL_DEFINITION (WinNtThunk)\r
58\r
59#endif\r