You don’t need Administrator access for that

I encountered a real dunderhead of a program. It claims to be completely NT, 2K and XP happy, yet it doesn’t tell us it needs administrator access because it creates it’s temp files in C:\, yes, the root of the C drive. There is a perfectly good API available for making good, clean temp files – it’s called GetTempFileName. for a bonus there’s GetTempPath, which gets you a directory for creating temp files, and this directory stands a really good chance of being user isolated (being that it’s %USERPROFILE%\Local Settings\Temp on most NT based OSes). But no, you go and ruin my perfectly working ordinary user program by insisting that you run as administrator. Bloody not written by me sub-programs. You deserve great pain for what you have done.