Detect sysgen variables in image at runtime?

Is it possible to determine which sysgen variables were used to create a custom OS image during runtime?

My development environment:
VS2005/CE6 or VS2008/CE7 (I have both versions available)
I use C++/MFC.

On the device you find a file \Windows\ceconfig.h . In this file you find all the Modules and in the comment section you find also the SYSGEN variables.

This file should be always generated and added to the image automatically, as it could also be used to determine your license type by using the runtime assesment tool from Microsoft.