import windows import windows.generated_def as gdef import struct # http://pubs.opengroup.org/onlinepubs/9629399/chap14.htm#tagcjh_19_03_07 ## Array # A conformant array is an array in which the maximum number of elements is not known beforehand and therefore is included in the representation of the array. # A varying array is an array in which the actual number of elements passed in a given call varies and therefore is included in the representation of the array. ## Pointers # NDR defines two classes of pointers that differ both in semantics and in representation # - reference pointers, which cannot be null and cannot be aliases # - full pointers, which can be null and can be an aliases # - unique pointers, which can be null and cannot be aliases, and are transmitted as full pointers. def pack_dword(x): return struct.pack("