Detecting if an application is running as an elevated process, and spawning a new process using elevated permissions
Article which describes detecting if your application is running with elevated permissions on Windows Vista or Windows 7 and how to spawn new processes which run using elevated permissions.