typedef struct { unsigned char version; unsigned char revision; unsigned short build; } AdsVersion; typedef AdsVersion* PAdsVersion;