VirtualBox

source: vbox/trunk/src/VBox/Installer/win/StubBld/VBoxStubBld.h@ 100108

Last change on this file since 100108 was 98103, checked in by vboxsync, 23 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.5 KB
Line 
1/* $Id: VBoxStubBld.h 98103 2023-01-17 14:15:46Z vboxsync $ */
2/** @file
3 * VBoxStubBld - VirtualBox's Windows installer stub builder.
4 */
5
6/*
7 * Copyright (C) 2009-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 * SPDX-License-Identifier: GPL-3.0-only
26 */
27
28#ifndef VBOX_INCLUDED_SRC_StubBld_VBoxStubBld_h
29#define VBOX_INCLUDED_SRC_StubBld_VBoxStubBld_h
30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
33
34#include <iprt/types.h>
35#include <iprt/assertcompile.h>
36
37/**/
38#define VBOXSTUB_MAX_PACKAGES 128
39
40/** */
41#define VBOXSTUBPKGHEADER_MAGIC_SZ "VBoxInstV1\0\0\0\0"
42
43/**
44 * VBox installer stub header, aka "MANIFEST".
45 *
46 * This just holds the number of packages present in the image.
47 */
48typedef struct VBOXSTUBPKGHEADER
49{
50 /** Magic value/string (VBOXSTUBPKGHEADER_MAGIC_SZ) */
51 char szMagic[11 + 4];
52 /** Number of packages following the header. */
53 uint8_t cPackages;
54} VBOXSTUBPKGHEADER;
55AssertCompileSize(VBOXSTUBPKGHEADER, 16);
56typedef VBOXSTUBPKGHEADER *PVBOXSTUBPKGHEADER;
57
58typedef enum VBOXSTUBPKGARCH
59{
60 /** Always extract. */
61 VBOXSTUBPKGARCH_ALL = 1,
62 /** Extract on x86 hosts. */
63 VBOXSTUBPKGARCH_X86,
64 /** Extract on AMD64 hosts. */
65 VBOXSTUBPKGARCH_AMD64
66} VBOXSTUBPKGARCH;
67
68/**
69 * Package header/descriptor.
70 *
71 * This is found as "HDR_xx" where xx is replaced by the decimal package number,
72 * zero padded to two digits.
73 */
74typedef struct VBOXSTUBPKG
75{
76 /** The architecture for the file. */
77 VBOXSTUBPKGARCH enmArch;
78 /** The name of the resource holding the file bytes.
79 * This is a pointless field, because the resource name is "BIN_xx"
80 * corresponding to the name of the resource containing this struct. */
81 char szResourceName[28];
82 /** The filename. */
83 char szFilename[224];
84} VBOXSTUBPKG;
85AssertCompileSize(VBOXSTUBPKG, 256);
86typedef VBOXSTUBPKG *PVBOXSTUBPKG;
87
88#endif /* !VBOX_INCLUDED_SRC_StubBld_VBoxStubBld_h */
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