VirtualBox

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

Last change on this file since 62487 was 62487, checked in by vboxsync, 8 years ago

(C) 2016

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1/* $Id: VBoxStubBld.h 62487 2016-07-22 18:40:31Z vboxsync $ */
2/** @file
3 * VBoxStubBld - VirtualBox's Windows installer stub builder.
4 */
5
6/*
7 * Copyright (C) 2009-2016 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef ___VBoxStubBld_h___
19#define ___VBoxStubBld_h___
20
21#define VBOXSTUB_MAX_PACKAGES 128
22
23typedef struct VBOXSTUBPKGHEADER
24{
25 /** Some magic string not defined by this header? Turns out it's a write only
26 * field... */
27 char szMagic[9];
28 /* Inbetween szMagic and dwVersion there are 3 bytes of implicit padding. */
29 /** Some version number not defined by this header? Also write only field.
30 * Should be a uint32_t, not DWORD. */
31 DWORD dwVersion;
32 /** Number of packages following the header. byte is prefixed 'b', not 'by'!
33 * Use uint8_t instead of BYTE. */
34 BYTE byCntPkgs;
35 /* There are 3 bytes of implicit padding here. */
36} VBOXSTUBPKGHEADER;
37typedef VBOXSTUBPKGHEADER *PVBOXSTUBPKGHEADER;
38
39typedef enum VBOXSTUBPKGARCH
40{
41 VBOXSTUBPKGARCH_ALL = 0,
42 VBOXSTUBPKGARCH_X86,
43 VBOXSTUBPKGARCH_AMD64
44} VBOXSTUBPKGARCH;
45
46typedef struct VBOXSTUBPKG
47{
48 BYTE byArch;
49 /** Probably the name of the PE resource or something, read the source to
50 * find out for sure. Don't use _MAX_PATH, define your own max lengths! */
51 char szResourceName[_MAX_PATH];
52 char szFileName[_MAX_PATH];
53} VBOXSTUBPKG;
54typedef VBOXSTUBPKG *PVBOXSTUBPKG;
55
56/* Only for construction. */
57/* Since it's only used by VBoxStubBld.cpp, why not just keep it there? */
58
59typedef struct VBOXSTUBBUILDPKG
60{
61 char szSourcePath[_MAX_PATH];
62 BYTE byArch;
63} VBOXSTUBBUILDPKG;
64typedef VBOXSTUBBUILDPKG *PVBOXSTUBBUILDPKG;
65
66#endif
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