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