There is a need for me recently to run applications with privileges for the registry hive and I came across an article on UAC by MSDN. The image below depicts how UAC process flow works.
Article: http://msdn.microsoft.com/en-us/library/bb384608.aspx