1 | /* $Id: TemplateDll.rc 98103 2023-01-17 14:15:46Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * Resource file template for a dynamic link library (DLL).
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2015-2023 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 | * The contents of this file may alternatively be used under the terms
|
---|
26 | * of the Common Development and Distribution License Version 1.0
|
---|
27 | * (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
|
---|
28 | * in the VirtualBox distribution, in which case the provisions of the
|
---|
29 | * CDDL are applicable instead of those of the GPL.
|
---|
30 | *
|
---|
31 | * You may elect to license modified versions of this file under the
|
---|
32 | * terms and conditions of either the GPL or the CDDL or both.
|
---|
33 | *
|
---|
34 | * SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
|
---|
35 | */
|
---|
36 |
|
---|
37 |
|
---|
38 | /*******************************************************************************
|
---|
39 | * Defined Constants And Macros *
|
---|
40 | *******************************************************************************/
|
---|
41 | /* Validate input and deal with optional input. */
|
---|
42 | /** @def IN_FILE_DESCRIPTION
|
---|
43 | * The file description string.
|
---|
44 | */
|
---|
45 | #ifndef IN_FILE_DESCRIPTION
|
---|
46 | # error "Must define the IN_FILE_DESCRIPTION string!"
|
---|
47 | #endif
|
---|
48 | /** @def IN_INTERNAL_NAME
|
---|
49 | * The internal name string, optional (requires IN_FILE_BASENAME then).
|
---|
50 | */
|
---|
51 | #ifndef IN_INTERNAL_NAME
|
---|
52 | # ifndef IN_FILE_BASENAME
|
---|
53 | # error "Must define the IN_FILE_BASENAME or the IN_INTERNAL_NAME string!"
|
---|
54 | # endif
|
---|
55 | # define IN_INTERNAL_NAME IN_FILE_BASENAME
|
---|
56 | #endif
|
---|
57 | /** @def IN_ORIGINAL_NAME
|
---|
58 | * The original name string, optional (requires IN_FILE_BASENAME then).
|
---|
59 | */
|
---|
60 | #ifndef IN_ORIGINAL_NAME
|
---|
61 | # ifndef IN_FILE_BASENAME
|
---|
62 | # error "Must define the IN_FILE_BASENAME or the IN_ORIGINAL_NAME string!"
|
---|
63 | # endif
|
---|
64 | # define IN_ORIGINAL_NAME IN_FILE_BASENAME " .dll"
|
---|
65 | #endif
|
---|
66 | /** @def IN_PRODUCT_NAME
|
---|
67 | * The product name string, optional.
|
---|
68 | */
|
---|
69 | #ifndef IN_PRODUCT_NAME
|
---|
70 | # ifdef IN_GUEST
|
---|
71 | # define IN_PRODUCT_NAME VBOX_RC_PRODUCT_NAME_GA
|
---|
72 | # elif defined(VBOX_IN_PUEL_EXTPACK)
|
---|
73 | # define IN_PRODUCT_NAME VBOX_RC_PRODUCT_NAME_PUEL_EXTPACK
|
---|
74 | # elif defined(VBOX_IN_DTRACE_EXTPACK)
|
---|
75 | # define IN_PRODUCT_NAME VBOX_RC_PRODUCT_NAME_DTRACE_EXTPACK
|
---|
76 | # else
|
---|
77 | # define IN_PRODUCT_NAME VBOX_RC_PRODUCT_NAME
|
---|
78 | # endif
|
---|
79 | #endif
|
---|
80 |
|
---|
81 |
|
---|
82 | /*******************************************************************************
|
---|
83 | * Header Files *
|
---|
84 | *******************************************************************************/
|
---|
85 | #include <Windows.h>
|
---|
86 | #include <VBox/version.h>
|
---|
87 |
|
---|
88 |
|
---|
89 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
---|
90 |
|
---|
91 | #ifdef IN_ICON_FILE
|
---|
92 | IDI_ICON1 ICON IN_ICON_FILE
|
---|
93 | #endif
|
---|
94 |
|
---|
95 | VS_VERSION_INFO VERSIONINFO
|
---|
96 | FILEVERSION VBOX_RC_FILE_VERSION
|
---|
97 | PRODUCTVERSION VBOX_RC_FILE_VERSION
|
---|
98 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
|
---|
99 | FILEFLAGS VBOX_RC_FILE_FLAGS
|
---|
100 | FILEOS VBOX_RC_FILE_OS
|
---|
101 | FILETYPE VBOX_RC_TYPE_DLL
|
---|
102 | FILESUBTYPE VFT2_UNKNOWN
|
---|
103 | BEGIN
|
---|
104 | BLOCK "StringFileInfo"
|
---|
105 | BEGIN
|
---|
106 | BLOCK "040904b0" /* Lang=US English, CodePage=utf-16 */
|
---|
107 | BEGIN
|
---|
108 | VALUE "FileDescription", IN_FILE_DESCRIPTION "\0"
|
---|
109 | VALUE "InternalName", IN_INTERNAL_NAME "\0"
|
---|
110 | VALUE "OriginalFilename", IN_ORIGINAL_NAME "\0"
|
---|
111 | VALUE "CompanyName", VBOX_RC_COMPANY_NAME "\0"
|
---|
112 | VALUE "FileVersion", VBOX_RC_FILE_VERSION_STR
|
---|
113 | VALUE "LegalCopyright", VBOX_RC_LEGAL_COPYRIGHT
|
---|
114 | VALUE "ProductName", IN_PRODUCT_NAME
|
---|
115 | VALUE "ProductVersion", VBOX_RC_PRODUCT_VERSION_STR
|
---|
116 | VBOX_RC_MORE_STRINGS
|
---|
117 | END
|
---|
118 | END
|
---|
119 | BLOCK "VarFileInfo"
|
---|
120 | BEGIN
|
---|
121 | VALUE "Translation", 0x409, 1200 /* Lang=US English, CodePage=utf-16 */
|
---|
122 | END
|
---|
123 | END
|
---|
124 |
|
---|