Yes its in the registry but to read the registry will take administrator permissions which will invoke the UAC prompt lol.

You are needing to run your whole program as Admin? Its usually not a good idea from a security standpoint but you need to use a manifest with the requesting level you desire for your exe. then if the user is an Admin it will prompt for a Yes/No msgbox to allow or not but if the user is a user then they will get prompted to enter in admin credientals to allow the execution.