Detecting Admin Privileges Via Code



Hi All,

I'm not certain if this is the best place to post this, so please educate me if it's not. Bascially, I need to know the "correct"(?) method for how to detect if a the current user has administrative privileges via c or c++ code for some installation routines. I've been striking out so far finding this in MSDN or anywhere. Any help would be appreciated.

TIA,

John Bowman
Thermo Fisher Scientific

.