I develop perl administrative applications for UNIX and Windows as well. In Windows 7 there's a security feature called UAC (User Account Control). It's probably familiar to everyone who have ever used Windows 7 or Vista so far. Every time when an application requires administrative (elevated) privileges Windows blanks out the workspace and prompts the user for permission. As far as I noticed, some applications can do this while they are running. I would like to elevate privileges of my perl script if that is possible in runtime.
I guess this is some kind of API call through a package like Win32 for perl. I Googled this for an hour but found nothing about this.