2.3 PACTYPE

The PACTYPE structure is the topmost structure of the PAC and specifies the number of elements in the PAC_INFO_BUFFER (section 2.4) array. The PACTYPE structure serves as the header for the complete PAC data.

The PACTYPE structure is defined as follows.

       typedef struct _PACTYPE {
           ULONG cBuffers;
           ULONG Version;
           PAC_INFO_BUFFER Buffers[1];
       } PACTYPE, *PPACTYPE;

The format of the PACTYPE structure is defined as follows.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

cBuffers

Version

Buffers (variable)

...

cBuffers (4 bytes): A 32-bit unsigned integer in little-endian format that defines the number of entries in the Buffers array.

Version (4 bytes): A 32-bit unsigned integer in little-endian format that defines the PAC version; MUST be 0x00000000.

Buffers (variable): An array of PAC_INFO_BUFFER structures (section 2.4).

The actual contents of the PAC are placed serially after the variable set of PAC_INFO_BUFFER structures. The contents are individually serialized PAC elements. All PAC elements MUST be placed on an 8-byte boundary.