1 | ; $Id: VBoxMouse.inf 106321 2024-10-15 13:06:30Z vboxsync $
|
---|
2 | ;; @file
|
---|
3 | ; INF file for installing the VBox Guest Mouse (driver for Windows NT5+).
|
---|
4 | ;
|
---|
5 |
|
---|
6 | ;
|
---|
7 | ; Copyright (C) 2011-2024 Oracle and/or its affiliates.
|
---|
8 | ;
|
---|
9 | ; This file is part of VirtualBox base platform packages, as
|
---|
10 | ; available from https://www.virtualbox.org.
|
---|
11 | ;
|
---|
12 | ; This program is free software; you can redistribute it and/or
|
---|
13 | ; modify it under the terms of the GNU General Public License
|
---|
14 | ; as published by the Free Software Foundation, in version 3 of the
|
---|
15 | ; License.
|
---|
16 | ;
|
---|
17 | ; This program is distributed in the hope that it will be useful, but
|
---|
18 | ; WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | ; General Public License for more details.
|
---|
21 | ;
|
---|
22 | ; You should have received a copy of the GNU General Public License
|
---|
23 | ; along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | ;
|
---|
25 | ; SPDX-License-Identifier: GPL-3.0-only
|
---|
26 | ;
|
---|
27 |
|
---|
28 | [Version]
|
---|
29 | Signature="$Windows NT$"
|
---|
30 | Provider=%ORACLE%
|
---|
31 | ClassGuid={4D36E96F-E325-11CE-BFC1-08002BE10318}
|
---|
32 | Class=Mouse
|
---|
33 | DriverPackageType=ClassFilter
|
---|
34 | ;edit-DriverVer=08/26/2008,2.00.0000
|
---|
35 | ;cat CatalogFile=VBoxMouse.cat
|
---|
36 | ;PnpLockdown=1
|
---|
37 |
|
---|
38 | [SourceDisksNames]
|
---|
39 | 1 = %VBoxMouse_DiskDesc%,,,
|
---|
40 |
|
---|
41 | [SourceDisksFiles]
|
---|
42 | VBoxMouse.sys = 1
|
---|
43 |
|
---|
44 | [DestinationDirs]
|
---|
45 | DefaultDestDir = 12 ; DIRID_DRIVERS
|
---|
46 |
|
---|
47 | ; Do *not* add a [Manufacturer] section, as this is a so-called "primitive driver".
|
---|
48 | ; Adding such a section will make InfVerif.exe fail.
|
---|
49 |
|
---|
50 | [DefaultInstall@DOT-NT-ARCH@]
|
---|
51 | %ORACLE%=VBoxMouse@COMMA-NT-ARCH@
|
---|
52 | CopyFiles = VBoxMouse_CopyFiles
|
---|
53 |
|
---|
54 | [DefaultInstall@[email protected]]
|
---|
55 | AddService = VBoxMouse,0x00000002,VBoxMouse_Service
|
---|
56 |
|
---|
57 | [DefaultUninstall@DOT-NT-ARCH@]
|
---|
58 | [email protected]
|
---|
59 | LegacyUninstall=1
|
---|
60 |
|
---|
61 | [DefaultUninstall@[email protected]]
|
---|
62 | DelService = VBoxMouse,0x00000200
|
---|
63 | LegacyUninstall = 1
|
---|
64 |
|
---|
65 | [VBoxMouse_AddReg]
|
---|
66 | HKLM, System\CurrentControlSet\Control\Class\{4D36E96F-E325-11CE-BFC1-08002BE10318}, UpperFilters, 0x00010000, "VBoxMouse", "mouclass"
|
---|
67 |
|
---|
68 | [VBoxMouse_CopyFiles]
|
---|
69 | VBoxMouse.sys
|
---|
70 |
|
---|
71 | [VBoxMouse_Service]
|
---|
72 | DisplayName = %VBoxMouse_SvcDesc%
|
---|
73 | ServiceType = %SERVICE_KERNEL_DRIVER%
|
---|
74 | StartType = %SERVICE_DEMAND_START%
|
---|
75 | ErrorControl = %SERVICE_ERROR_IGNORE%
|
---|
76 | ServiceBinary = %12%\VBoxMouse.sys
|
---|
77 | AddReg = VBoxMouse_AddReg
|
---|
78 |
|
---|
79 | [Strings]
|
---|
80 | ORACLE = "Oracle Corporation"
|
---|
81 | VBoxMouse_SvcDesc ="VirtualBox Guest Mouse Service"
|
---|
82 | VBoxMouse_DrvDesc ="VirtualBox Guest Mouse Driver"
|
---|
83 | VBoxMouse_DiskDesc ="VBoxMouse Installation Disk"
|
---|
84 |
|
---|
85 | ; Useful constants
|
---|
86 | SERVICE_KERNEL_DRIVER = 1
|
---|
87 | SERVICE_DEMAND_START = 3
|
---|
88 | SERVICE_ERROR_IGNORE = 0
|
---|
89 | SERVICE_ERROR_NORMAL = 1
|
---|
90 |
|
---|