Method to query amcache?

Is there a way to parse/query the amcache ( C:\Windows\AppCompat\Programs\Amcache.hve ) using a client query? It has the same db structure as the registry, so should be nearly trivial.