; $Id: VBoxWddm.inf 135976 2020-02-04 10:35:17Z bird $
;; @file
; VirtualBox Video Wddm driver
;

;
; Copyright (C) 2011-2020 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.
;

[Version]
Signature="$WINDOWS NT$"
Provider=%ORACLE%
ClassGUID={4D36E968-E325-11CE-BFC1-08002BE10318}
Class=Display
DriverPackageType=PlugAndPlay
DriverVer = 06/04/2020,6.1.10.38449 ; r138449
CatalogFile = VBoxWddm.cat

[DestinationDirs]
DefaultDestDir=11
VBoxVideo.Miniport = 12 ; drivers
VBoxVideo.Display  = 11 ; system32
VBoxVideo.Display_wow64  = 10,SysWow64 ; SysWow64

[Manufacturer]
%ORACLE%=Model, NTamd64.6.0

[Model.NTamd64.6.0]
%VBoxVideo.SvcDesc% = VBoxVideo, PCI\VEN_80EE&DEV_BEEF

[VBoxVideo]
FeatureScore = F8
Include = msdv.inf
CopyFiles = VBoxVideo.Miniport, VBoxVideo.Display, VBoxVideo.Display_wow64
AddReg = VBoxVideo_SoftwareDeviceSettings
;todo: clear XPDM driver settings: DelReg = VBoxVideo_RemoveDeviceSettings
RegisterDlls = VBoxVideo_RegisterDlls

[VBoxVideo.Miniport]
VBoxWddm.sys

[VBoxVideo.Display]
VBoxDispD3D.dll,,,0x00004000  ; COPYFLG_IN_USE_TRY_RENAME
VBoxNine.dll,,,0x00004000     ; COPYFLG_IN_USE_TRY_RENAME
VBoxSVGA.dll,,,0x00004000     ; COPYFLG_IN_USE_TRY_RENAME
VBoxICD.dll,,,0x00004000      ; COPYFLG_IN_USE_TRY_RENAME
VBoxGL.dll,,,0x00004000       ; COPYFLG_IN_USE_TRY_RENAME

[VBoxVideo.Display_wow64]
VBoxDispD3D-x86.dll,,,0x00004000  ; COPYFLG_IN_USE_TRY_RENAME
VBoxNine-x86.dll,,,0x00004000     ; COPYFLG_IN_USE_TRY_RENAME
VBoxSVGA-x86.dll,,,0x00004000     ; COPYFLG_IN_USE_TRY_RENAME
VBoxICD-x86.dll,,,0x00004000      ; COPYFLG_IN_USE_TRY_RENAME
VBoxGL-x86.dll,,,0x00004000       ; COPYFLG_IN_USE_TRY_RENAME

[VBoxVideo_SoftwareDeviceSettings]
HKR,, InstalledDisplayDrivers, %REG_MULTI_SZ%, VBoxDispD3D
HKR,, UserModeDriverName,      %REG_MULTI_SZ%, VBoxDispD3D.dll
HKR,, UserModeDriverNameWow,   %REG_MULTI_SZ%, VBoxDispD3D-x86.dll
HKR,, OpenGLDriverName,    %REG_MULTI_SZ%, VBoxICD
HKR,, OpenGLDriverNameWoW, %REG_MULTI_SZ%, VBoxICD-x86
HKR,, OpenGLFlags,         %REG_DWORD%,    0x00000001
HKR,, OpenGLFlagsWoW,      %REG_DWORD%,    0x00000001
HKR,, OpenGLVersion,       %REG_DWORD%,    0x00000001
HKR,, OpenGLVersionWoW,    %REG_DWORD%,    0x00000001
HKR,, VgaCompatible, %REG_DWORD%, 0

[VBoxVideo_RegisterDlls]


[VBoxVideo.Services]
AddService=VBoxWddm, 0x00000002, VBoxVideo_Service_Inst, VBoxVideo_EventLog_Inst

[VBoxVideo_Service_Inst]
ServiceType=1                   ; SERVICE_KERNEL_DRIVER
StartType=3                     ; SERVICE_DEMAND_START
ErrorControl=0                  ; SERVICE_ERROR_IGNORE
LoadOrderGroup=Video
ServiceBinary=%12%\VBoxWddm.sys

[VBoxVideo_EventLog_Inst]
AddReg = VBoxVideo_EventLog_AddReg

[VBoxVideo_EventLog_AddReg]
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\VBoxWddm.sys"
HKR,,TypesSupported,0x00010001,7

[SourceDisksNames]
1 = %VBoxVideo.Disk%,,,""

[SourceDisksFiles]
VBoxWddm.sys = 1
VBoxDispD3D-x86.dll = 1
VBoxNine-x86.dll = 1
VBoxSVGA-x86.dll = 1
VBoxICD-x86.dll = 1
VBoxGL-x86.dll = 1
VBoxDispD3D.dll = 1
VBoxNine.dll = 1
VBoxSVGA.dll = 1
VBoxICD.dll = 1
VBoxGL.dll = 1

[Strings]
REG_SZ = 0x00000000
REG_MULTI_SZ = 0x00010000
REG_EXPAND_SZ = 0x00020000
REG_BINARY = 0x00000001
REG_DWORD = 0x00010001

ORACLE = "Oracle Corporation"
VBoxVideo.Disk = "VirtualBox Video Driver Disk"
VBoxVideo.SvcDesc = "VirtualBox Graphics Adapter (WDDM)"
