2.2.4.2.1 Header (Opcode 2)

Opcode 2 is the header of an application advertise script. The header includes the following arguments:

Signature: 32-bit signed integer. The value MUST be 1397708873.

Version: 32-bit signed integer.

Timestamp: 32-bit signed integer. The stamp is local time represented as four octets containing the date and time. Data in the octets is arranged as follows.

Octet name

Bits

Description

DOSDate

0-4

Day of month: 1–31

5-8

Month: 1–12 (1 = January, 2 = February, and so on)

9-15

Year: Offset from 1980

DOSTime

0-4

Seconds: Value is divided by 2

5-10

Minutes: 0–59

11-15

Hour: 0–23, using a 24-hour clock

Timestamp MUST store the octets as follows: ((DOSDate << 16) | DOSTime).

LangId: 32-bit signed integer. The value is a language code identifier (LCID).

Platform: 32-bit signed integer. The value MUST be either zero or a value obtained using the following formula: (PROCESSOR_ARCHITECTURE_INTEL & 0xffff) | ((wTargetProcessorArchitecture & 0xffff) << 16)

wTargetProcessorArchitecture is one of the values in the following table.

Name

Value

PROCESSOR_ARCHITECTURE_INTEL

0

PROCESSOR_ARCHITECTURE_IA64

6

PROCESSOR_ARCHITECTURE_AMD64

9

ScriptType:32-bit signed integer. The value MUST be 3.

ScriptMajorVersion: 32-bit signed integer. The value MUST be 21.

ScriptMinorVersion: 32-bit signed integer. The value MUST be 4.

ScriptAttributes: 32-bit signed integer. The value MUST be 0.