VirtualBox

Ignore:
Timestamp:
Apr 3, 2013 5:46:20 PM (12 years ago)
Author:
vboxsync
Message:

ARG - installer stub exits successfully on failure. -> windows box

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/win/StubBld/VBoxStubBld.h

    r44529 r45317  
    1616 */
    1717
    18 #pragma once
     18#ifndef ___VBoxStubBld_h___
     19#define ___VBoxStubBld_h___
    1920
    2021#define VBOXSTUB_MAX_PACKAGES 128
    2122
    22 typedef struct
     23typedef struct VBOXSTUBPKGHEADER
    2324{
    24     char szMagic[9];
    25     DWORD dwVersion;
    26     BYTE byCntPkgs;
     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;
    2738
    28 } VBOXSTUBPKGHEADER, *PVBOXSTUBPKGHEADER;
    29 
    30 enum VBOXSTUBPKGARCH
     39typedef enum VBOXSTUBPKGARCH
    3140{
    3241    VBOXSTUBPKGARCH_ALL = 0,
    33     VBOXSTUBPKGARCH_X86 = 1,
    34     VBOXSTUBPKGARCH_AMD64 = 2
    35 };
     42    VBOXSTUBPKGARCH_X86
     43    VBOXSTUBPKGARCH_AMD64
     44} VBOXSTUBPKGARCH;
    3645
    37 typedef struct
     46typedef struct VBOXSTUBPKG
    3847{
    3948    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! */
    4051    char szResourceName[_MAX_PATH];
    4152    char szFileName[_MAX_PATH];
    42 } VBOXSTUBPKG, *PVBOXSTUBPKG;
     53} VBOXSTUBPKG;
     54typedef VBOXSTUBPKG *PVBOXSTUBPKG;
    4355
    4456/* Only for construction. */
     57/* Since it's only used by VBoxStubBld.cpp, why not just keep it there? */
    4558
    46 typedef struct
     59typedef struct VBOXSTUBBUILDPKG
    4760{
    4861    char szSourcePath[_MAX_PATH];
    4962    BYTE byArch;
    50 } VBOXSTUBBUILDPKG, *PVBOXSTUBBUILDPKG;
     63} VBOXSTUBBUILDPKG;
     64typedef VBOXSTUBBUILDPKG *PVBOXSTUBBUILDPKG;
    5165
     66#endif
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette