I have an application that uses an COM file. Sometimes this file has not been registered by regsvr32 and i'd like to program a function that if the file cannot be loaded it tries to register it and retry. To do so i'd need admin privileges, so i'd like to ask if there's a way to show the UAC "run as administrator" question to the user at those times to have the rights to register the file and than switch it off (if possible, if not it'd be run "normal" at the next application execution). Now i'm just planning to launch another program with a manifest set to run it as admin but i've seen some installations that run without asking admin permission and when the progress bar is starting they show the UAC question to the user, so i'd like to do something like that. Is there a Win32 API function or library to do that?
Thanks