init.h revision 71955773a7f477f9a159a491f765ba97e1f00e1a
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync/* $Id$ */
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync/** @file
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync * IPRT - Ring-3 initialization.
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync */
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync/*
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync * Copyright (C) 2006-2013 Oracle Corporation
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync *
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync * available from http://www.virtualbox.org. This file is free software;
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync * you can redistribute it and/or modify it under the terms of the GNU
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync * General Public License (GPL) as published by the Free Software
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync *
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync * The contents of this file may alternatively be used under the terms
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync * of the Common Development and Distribution License Version 1.0
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync * VirtualBox OSE distribution, in which case the provisions of the
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync * CDDL are applicable instead of those of the GPL.
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync *
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync * You may elect to license modified versions of this file under the
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync * terms and conditions of either the GPL or the CDDL or both.
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync */
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync#ifndef ___r3_init_h
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync#define ___r3_init_h
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync#include <iprt/types.h>
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync
71955773a7f477f9a159a491f765ba97e1f00e1avboxsyncDECLHIDDEN(int) rtR3InitNativeFirst(uint32_t fFlags);
71955773a7f477f9a159a491f765ba97e1f00e1avboxsyncDECLHIDDEN(int) rtR3InitNativeFinal(uint32_t fFlags);
71955773a7f477f9a159a491f765ba97e1f00e1avboxsyncDECLHIDDEN(void) rtR3InitNativeObtrusive();
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync#ifdef RT_OS_WINDOWS
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync/*
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync * Windows specific stuff.
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync */
71955773a7f477f9a159a491f765ba97e1f00e1avboxsynctypedef enum RTR3WINLDRPROT
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync{
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync RTR3WINLDRPROT_INVALID = 0,
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync RTR3WINLDRPROT_NONE,
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync RTR3WINLDRPROT_NO_CWD,
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync RTR3WINLDRPROT_SAFE
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync} RTR3WINLDRPROT;
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync
71955773a7f477f9a159a491f765ba97e1f00e1avboxsyncextern DECLHIDDEN(RTR3WINLDRPROT) g_enmWinLdrProt;
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync# ifdef _WINDEF_
71955773a7f477f9a159a491f765ba97e1f00e1avboxsyncextern DECLHIDDEN(HMODULE) g_hModKernel32;
71955773a7f477f9a159a491f765ba97e1f00e1avboxsyncextern DECLHIDDEN(HMODULE) g_hModNtDll;
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync# endif
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync#endif /* RT_OS_WINDOWS */
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync#endif
71955773a7f477f9a159a491f765ba97e1f00e1avboxsync