VirtualBox

source: vbox/trunk/include/VBox/VBoxCrHgsmi.h@ 40907

Last change on this file since 40907 was 40483, checked in by vboxsync, 13 years ago

crOpenGL/wddm: don't use VBoxGuest device to comply woth Metro apps security

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 KB
Line 
1/*
2 * Copyright (C) 2010 Oracle Corporation
3 *
4 * This file is part of VirtualBox Open Source Edition (OSE), as
5 * available from http://www.virtualbox.org. This file is free software;
6 * you can redistribute it and/or modify it under the terms of the GNU
7 * General Public License (GPL) as published by the Free Software
8 * Foundation, in version 2 as it comes in the "COPYING" file of the
9 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
10 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
11 *
12 * The contents of this file may alternatively be used under the terms
13 * of the Common Development and Distribution License Version 1.0
14 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
15 * VirtualBox OSE distribution, in which case the provisions of the
16 * CDDL are applicable instead of those of the GPL.
17 *
18 * You may elect to license modified versions of this file under the
19 * terms and conditions of either the GPL or the CDDL or both.
20 */
21#ifndef ___VBox_VBoxCrHgsmi_h
22#define ___VBox_VBoxCrHgsmi_h
23
24#include <iprt/cdefs.h>
25#include <VBox/VBoxUhgsmi.h>
26
27RT_C_DECLS_BEGIN
28
29#if 0
30/* enable this in case we include this in a dll*/
31# ifdef IN_VBOXCRHGSMI
32# define VBOXCRHGSMI_DECL(a_Type) DECLEXPORT(a_Type)
33# else
34# define VBOXCRHGSMI_DECL(a_Type) DECLIMPORT(a_Type)
35# endif
36#else
37/*enable this in case we include this in a static lib*/
38# define VBOXCRHGSMI_DECL(a_Type) a_Type
39#endif
40
41#ifdef VBOX_CRHGSMI_WITH_D3DDEV
42typedef void * HVBOXCRHGSMI_CLIENT;
43
44typedef DECLCALLBACK(HVBOXCRHGSMI_CLIENT) FNVBOXCRHGSMI_CLIENT_CREATE(PVBOXUHGSMI pHgsmi);
45typedef FNVBOXCRHGSMI_CLIENT_CREATE *PFNVBOXCRHGSMI_CLIENT_CREATE;
46
47typedef DECLCALLBACK(void) FNVBOXCRHGSMI_CLIENT_DESTROY(HVBOXCRHGSMI_CLIENT hClient);
48typedef FNVBOXCRHGSMI_CLIENT_DESTROY *PFNVBOXCRHGSMI_CLIENT_DESTROY;
49
50typedef struct VBOXCRHGSMI_CALLBACKS
51{
52 PFNVBOXCRHGSMI_CLIENT_CREATE pfnClientCreate;
53 PFNVBOXCRHGSMI_CLIENT_DESTROY pfnClientDestroy;
54} VBOXCRHGSMI_CALLBACKS, *PVBOXCRHGSMI_CALLBACKS;
55
56VBOXCRHGSMI_DECL(int) VBoxCrHgsmiInit(PVBOXCRHGSMI_CALLBACKS pCallbacks);
57VBOXCRHGSMI_DECL(HVBOXCRHGSMI_CLIENT) VBoxCrHgsmiQueryClient();
58#else
59VBOXCRHGSMI_DECL(int) VBoxCrHgsmiInit(uint32_t crVersionMajor, uint32_t crVersionMinor);
60VBOXCRHGSMI_DECL(PVBOXUHGSMI) VBoxCrHgsmiCreate(void);
61VBOXCRHGSMI_DECL(void) VBoxCrHgsmiDestroy(PVBOXUHGSMI pHgsmi);
62#endif
63VBOXCRHGSMI_DECL(int) VBoxCrHgsmiTerm(void);
64
65VBOXCRHGSMI_DECL(void) VBoxCrHgsmiLog(char * szString);
66
67VBOXCRHGSMI_DECL(int) VBoxCrHgsmiTerm(void);
68
69VBOXCRHGSMI_DECL(int) VBoxCrHgsmiCtlConGetClientID(PVBOXUHGSMI pHgsmi, uint32_t *pu32ClientID);
70VBOXCRHGSMI_DECL(int) VBoxCrHgsmiCtlConCall(PVBOXUHGSMI pHgsmi, struct VBoxGuestHGCMCallInfo *pCallInfo, int cbCallInfo);
71
72RT_C_DECLS_END
73
74#endif
75
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette