VMMDev.cpp revision 677833bc953b6cb418c701facbdcf4aa18d6c44e
0N/A/** @file
2362N/A *
0N/A * VBoxGuestLib - A support library for VirtualBox guest additions:
0N/A * VMMDev device related functions
0N/A */
0N/A
2362N/A/*
0N/A * Copyright (C) 2006 InnoTek Systemberatung GmbH
2362N/A *
0N/A * This file is part of VirtualBox Open Source Edition (OSE), as
0N/A * available from http://www.virtualbox.org. This file is free software;
0N/A * you can redistribute it and/or modify it under the terms of the GNU
0N/A * General Public License as published by the Free Software Foundation,
0N/A * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
0N/A * distribution. VirtualBox OSE is distributed in the hope that it will
0N/A * be useful, but WITHOUT ANY WARRANTY of any kind.
0N/A *
0N/A * If you received this file as part of a commercial VirtualBox
0N/A * distribution, then only the terms of your commercial VirtualBox
0N/A * license agreement apply instead of the previous paragraph.
2362N/A */
2362N/A
2362N/A#include <VBox/VBoxGuestLib.h>
0N/A#include "VBGLInternal.h"
0N/A
0N/A
0N/ADECLVBGL(int) VbglQueryVMMDevMemory (VMMDevMemory **ppVMMDevMemory)
0N/A{
0N/A int rc = VbglEnter ();
0N/A
0N/A if (VBOX_FAILURE(rc))
0N/A {
0N/A return rc;
0N/A }
0N/A
0N/A /* If the memory was not found, return an error. */
0N/A if (!g_vbgldata.pVMMDevMemory)
0N/A {
0N/A return VERR_NOT_SUPPORTED;
0N/A }
0N/A
0N/A *ppVMMDevMemory = g_vbgldata.pVMMDevMemory;
0N/A
0N/A return rc;
0N/A}
0N/A
0N/A