I would like to detect if the current Matlab session is running with elevated privileges (i.e. the user started it with "Run as Administrator") under Windows. Ideally the solution would work on XP and Windows 7, but I'm happy to have two solutions if necessary.
This answer suggests that I may be able to get the information I need via the .Net external interface from Matlab (at least for Vista and later), but I'm wondering if there is a more "native" Matlab solution.