Require admin rights in a C program - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Skype & Technology (/forumdisplay.php?fid=9) +---- Forum: Tech Talk (/forumdisplay.php?fid=17) +----- Thread: Require admin rights in a C program (/showthread.php?tid=88598) Require admin rights in a C program by Chancer on 01-20-2009 at 10:55 PM
I'm making a "stupid" program that cleans the print spooler. However, the commands mus be executed with admin rights. RE: Require admin rights in a C program by tony on 01-20-2009 at 11:19 PM
Something like this? RE: Require admin rights in a C program by Chancer on 01-20-2009 at 11:25 PM
I remember passing thru that thread a few days ago. RE: RE: Require admin rights in a C program by djdannyp on 01-21-2009 at 08:52 AM
quote: The manifest file is what you need to require admin rights It's only used in compiling the program, it's not a seperate file that has to be used/distributed with the program RE: Require admin rights in a C program by Chancer on 01-21-2009 at 05:44 PM
Do I have to install Visual Studio do to that? RE: RE: Require admin rights in a C program by djdannyp on 01-21-2009 at 10:53 PM
quote: If you do re-discover your source code, then the only way without visual studio (that i know of) is to right click on the program and do "run as administrator".....or go to its compatibility tab and check the 'run as administrator' box. what are you using to compile it if not visual studio? RE: Require admin rights in a C program by Chancer on 01-21-2009 at 11:41 PM
I'm using Dev-Cpp, which uses GCC. It's very simple. I used to do college stuff. quote:That's the alternative I'm using. |