I am looking for code to change the privileges of an application while running. Example: The application was started by a “Guest?? user and has by default only “Guest?? privileges. The app should now be able to change its privileges (“run as??) to the user “admin??, perform a certain task , and then run again with the privileges and name of the logged in user. The solution should be provided as MFC sample application with input fields for the new user and password, buttons to change the user and another button that perfoms a task, for example copy a file to a network share. I have attached a screenshot on how the example app should look like, but I am also open to suggestions. The solution must work on Win 2000, XP and Windows Terminal Server (WTS). WTS should work, if the solution works with the Win XP fast user switching feature. The project needs to be done as Visual C++ V6 or V7 project (If VC6, it must compile under VC7 as well) and the code should be well structured and encapsulated, so that I can just add it to other applications. Note: Maybe Q137578 from MS already solves the main part of this problem, but I am not sure.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased.
Win 2000, XP, Windows Terminal Server