/* $Id: internal-r3-win.h 55401 2015-04-23 10:03:17Z vboxsync $ */ /** @file * IPRT - some Windows OS type constants. */ /* * Copyright (C) 2013-2015 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redistribute it and/or modify it under the terms of the GNU * General Public License (GPL) as published by the Free Software * Foundation, in version 2 as it comes in the "COPYING" file of the * VirtualBox OSE distribution. VirtualBox OSE is distributed in the * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. * * The contents of this file may alternatively be used under the terms * of the Common Development and Distribution License Version 1.0 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the * VirtualBox OSE distribution, in which case the provisions of the * CDDL are applicable instead of those of the GPL. * * You may elect to license modified versions of this file under the * terms and conditions of either the GPL or the CDDL or both. */ #ifndef ___internal_r3_win_h #define ___internal_r3_win_h #include "internal/iprt.h" #include /******************************************************************************* * Structures and Typedefs * *******************************************************************************/ /** * Windows OS type as determined by rtSystemWinOSType(). * * @note ASSUMPTIONS are made regarding ordering. Win 9x should come first, then * NT. The Win9x and NT versions should internally be ordered in ascending * version/code-base order. */ typedef enum RTWINOSTYPE { kRTWinOSType_UNKNOWN = 0, kRTWinOSType_9XFIRST = 1, kRTWinOSType_95 = kRTWinOSType_9XFIRST, kRTWinOSType_95SP1, kRTWinOSType_95OSR2, kRTWinOSType_98, kRTWinOSType_98SP1, kRTWinOSType_98SE, kRTWinOSType_ME, kRTWinOSType_9XLAST = 99, kRTWinOSType_NTFIRST = 100, kRTWinOSType_NT31 = kRTWinOSType_NTFIRST, kRTWinOSType_NT351, kRTWinOSType_NT4, kRTWinOSType_2K, kRTWinOSType_XP, kRTWinOSType_2003, kRTWinOSType_VISTA, kRTWinOSType_2008, kRTWinOSType_7, kRTWinOSType_8, kRTWinOSType_81, kRTWinOSType_10, kRTWinOSType_NT_UNKNOWN = 199, kRTWinOSType_NT_LAST = kRTWinOSType_UNKNOWN } RTWINOSTYPE; /** * Windows loader protection level. */ typedef enum RTR3WINLDRPROT { RTR3WINLDRPROT_INVALID = 0, RTR3WINLDRPROT_NONE, RTR3WINLDRPROT_NO_CWD, RTR3WINLDRPROT_SAFE } RTR3WINLDRPROT; /******************************************************************************* * Global Variables * *******************************************************************************/ extern DECLHIDDEN(RTR3WINLDRPROT) g_enmWinLdrProt; extern DECLHIDDEN(RTWINOSTYPE) g_enmWinVer; #ifdef _WINDEF_ extern DECLHIDDEN(HMODULE) g_hModKernel32; extern DECLHIDDEN(HMODULE) g_hModNtDll; extern DECLHIDDEN(OSVERSIONINFOEXW) g_WinOsInfoEx; #endif #endif