Switching application into administrator mode
Does anyone know how or if you can have an application switch into admistrator mode to run a particular section of code without having to launch it as a process that requests adminstrative privelages. This particular section, I want them to have to be an administrator to run, but I do not want to have to seperate it from the whole and then launch it as a seperate process.
--------------------------------------------------------------------------------------------------------------------------
Disclaimer - Most likely any code I have posted as an answer was most likely written free hand and may have some minor compile errors, and is merely intended to give you the idea.