VirtualBox

source: vbox/trunk/include/VBox/VBoxDrvCfg-win.h@ 36486

Last change on this file since 36486 was 36486, checked in by vboxsync, 14 years ago

tooling lib for driver configuration on win

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1/* $Id: VBoxDrvCfg-win.h 36486 2011-04-01 07:22:37Z vboxsync $ */
2/** @file
3 * VBoxDrvCfg-win.h - Windows Driver Manipulation API
4 */
5/*
6 * Copyright (C) 2011 Oracle Corporation
7 *
8 * This file is part of VirtualBox Open Source Edition (OSE), as
9 * available from http://www.virtualbox.org. This file is free software;
10 * you can redistribute it and/or modify it under the terms of the GNU
11 * General Public License (GPL) as published by the Free Software
12 * Foundation, in version 2 as it comes in the "COPYING" file of the
13 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
15 */
16#ifndef ___VBoxDrvCfg_win_h___
17#define ___VBoxDrvCfg_win_h___
18
19#include <Windows.h>
20
21#include <iprt/cdefs.h>
22
23RT_C_DECLS_BEGIN
24
25#if 0
26/* enable this in case we include this in a dll*/
27# ifdef IN_VBOXDRVCFG
28# define VBOXDRVCFG_DECL(_type) DECLEXPORT(_type)
29# else
30# define VBOXDRVCFG_DECL(_type) DECLIMPORT(_type)
31# endif
32#else
33/*enable this in case we include this in a static lib*/
34# define VBOXDRVCFG_DECL(_type) _type __stdcall
35#endif
36
37typedef enum
38{
39 VBOXDRVCFG_LOG_SEVERITY_FLOW = 1,
40 VBOXDRVCFG_LOG_SEVERITY_REGULAR,
41 VBOXDRVCFG_LOG_SEVERITY_REL
42} VBOXDRVCFG_LOG_SEVERITY;
43
44typedef DECLCALLBACK(void) FNVBOXDRVCFG_LOG(VBOXDRVCFG_LOG_SEVERITY enmSeverity, char * msg, void * pvContext);
45typedef FNVBOXDRVCFG_LOG *PFNVBOXDRVCFG_LOG;
46
47VBOXDRVCFG_DECL(void) VBoxDrvCfgLoggerSet(PFNVBOXDRVCFG_LOG pfnLog, void *pvLog);
48
49typedef DECLCALLBACK(void) FNVBOXDRVCFG_PANIC(void * pvPanic);
50typedef FNVBOXDRVCFG_PANIC *PFNVBOXDRVCFG_PANIC;
51VBOXDRVCFG_DECL(void) VBoxDrvCfgPanicSet(PFNVBOXDRVCFG_PANIC pfnPanic, void *pvPanic);
52
53VBOXDRVCFG_DECL(HRESULT) VBoxDrvCfgInfInstall(IN LPCWSTR lpszInfPath);
54VBOXDRVCFG_DECL(HRESULT) VBoxDrvCfgInfUninstall(IN LPCWSTR lpszInfPath, IN DWORD Flags);
55VBOXDRVCFG_DECL(HRESULT) VBoxDrvCfgInfUninstallAllSetupDi(IN const GUID * pGuidClass, IN LPCWSTR lpszClassName, IN LPCWSTR lpszPnPId, IN DWORD Flags);
56VBOXDRVCFG_DECL(HRESULT) VBoxDrvCfgInfUninstallAllF(IN LPCWSTR lpszClassName, IN LPCWSTR lpszPnPId, IN DWORD Flags);
57
58RT_C_DECLS_END
59
60#endif /* #ifndef ___VBoxDrvCfg_win_h___ */
Note: See TracBrowser for help on using the repository browser.

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