Introduction - If you have any usage issues, please Google them yourself
a small function to check if your process is elevated (has admin rights) on Vista onwards.
Since calling IsUserAnAdmin() on Vista/7 will always return true regardless of whether your process is elevated or not.