Click here to Skip to main content
15,913,669 members
Home / Discussions / C#
   

C#

 
GeneralRe: Subscript literal Pin
Martijn Boeker2-Nov-10 15:36
Martijn Boeker2-Nov-10 15:36 
GeneralRe: Subscript literal Pin
Richard A. Dalton3-Nov-10 3:43
Richard A. Dalton3-Nov-10 3:43 
GeneralRe: Subscript literal Pin
Mycroft Holmes2-Nov-10 21:19
professionalMycroft Holmes2-Nov-10 21:19 
GeneralRe: Subscript literal Pin
Martijn Boeker3-Nov-10 12:15
Martijn Boeker3-Nov-10 12:15 
GeneralRe: Subscript literal Pin
Mycroft Holmes3-Nov-10 12:52
professionalMycroft Holmes3-Nov-10 12:52 
GeneralRe: Subscript literal Pin
Martijn Boeker3-Nov-10 13:16
Martijn Boeker3-Nov-10 13:16 
QuestionHow to send redraw message to background windows Pin
manchukuo2-Nov-10 8:30
manchukuo2-Nov-10 8:30 
AnswerRe: How to send redraw message to background windows Pin
kevinnicol2-Nov-10 9:00
kevinnicol2-Nov-10 9:00 
AnswerRe: How to send redraw message to background windows Pin
Luc Pattyn2-Nov-10 9:34
sitebuilderLuc Pattyn2-Nov-10 9:34 
QuestionPrint a file on printer Pin
abbd2-Nov-10 7:31
abbd2-Nov-10 7:31 
AnswerRe: Print a file on printer Pin
OriginalGriff2-Nov-10 7:52
mveOriginalGriff2-Nov-10 7:52 
QuestionRe: Print a file on printer Pin
abbd2-Nov-10 8:01
abbd2-Nov-10 8:01 
AnswerRe: Print a file on printer Pin
Martijn Boeker2-Nov-10 11:04
Martijn Boeker2-Nov-10 11:04 
GeneralRe: Print a file on printer Pin
abbd3-Nov-10 0:48
abbd3-Nov-10 0:48 
AnswerRe: Print a file on printer Pin
Henry Minute2-Nov-10 10:01
Henry Minute2-Nov-10 10:01 
QuestionHow to run program at windows startup with administrator rights (on VISTA and Windows 7 )? Pin
Aseem Sharma2-Nov-10 6:48
Aseem Sharma2-Nov-10 6:48 
AnswerRe: How to run program at windows startup with administrator rights (on VISTA and Windows 7 )? Pin
Eddy Vluggen2-Nov-10 9:17
professionalEddy Vluggen2-Nov-10 9:17 
GeneralRe: How to run program at windows startup with administrator rights (on VISTA and Windows 7 )? Pin
PIEBALDconsult2-Nov-10 18:16
mvePIEBALDconsult2-Nov-10 18:16 
AnswerRe: How to run program at windows startup with administrator rights (on VISTA and Windows 7 )? Pin
Dave Kreskowiak2-Nov-10 14:01
mveDave Kreskowiak2-Nov-10 14:01 
GeneralRe: How to run program at windows startup with administrator rights (on VISTA and Windows 7 )? Pin
Aseem Sharma4-Nov-10 2:49
Aseem Sharma4-Nov-10 2:49 
Hi Dave,

Thanks for your reply. Actually I am new in .Net technologies. I don't know how to create a manifest file. I don't know how to ship it with installer.

My requirement:
My application can allow/revoke the right of changing system time and date to any user but only if it is being run from an administrator user. When I run my app while logged on as an non-admin user, my application cannot allow or disallow any right to any user (this is desired behavior and its working fine). But same thing happens even when I log on as a user with admin rights. The only way my app can allow or revoke rights to any user is first-the current user should have admin rights, second-application run with "Run as administrator" option.

Please help me in below things:

1 How to create a manifest file?

2 Is it sufficient to just place it in the same directory where the application exe is present? (If yes then while installing I would just need to copy it along with the application exe in the same directory)

3 If application starts automatically on Windows startup, what would happen if a non-administrator (restricted user) log on? (would the application run with admin rights or with the rights of logged on user?)

4 Are there some registry entries where if an application exe is specified, it will run (on Windows startup) with all the rights the current user have?

Please help me in this problem.

Best Regards
Aseem
AnswerRe: How to run program at windows startup with administrator rights (on VISTA and Windows 7 )? Pin
PIEBALDconsult2-Nov-10 18:19
mvePIEBALDconsult2-Nov-10 18:19 
GeneralRe: How to run program at windows startup with administrator rights (on VISTA and Windows 7 )? Pin
Aseem Sharma4-Nov-10 3:35
Aseem Sharma4-Nov-10 3:35 
Questionhow to detact terminal emulation Pin
bigjoe11a2-Nov-10 5:52
bigjoe11a2-Nov-10 5:52 
AnswerRe: how to detact terminal emulation Pin
PIEBALDconsult2-Nov-10 15:13
mvePIEBALDconsult2-Nov-10 15:13 
QuestionLoad assembly dynamically and call methods Pin
marca2922-Nov-10 4:14
marca2922-Nov-10 4:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.