Click here to Skip to main content
15,561,685 members
Home / Discussions / C#
   

C#

 
AnswerRe: Print a file on printer Pin
Martijn Boeker2-Nov-10 12:04
Martijn Boeker2-Nov-10 12:04 
GeneralRe: Print a file on printer Pin
abbd3-Nov-10 1:48
abbd3-Nov-10 1:48 
AnswerRe: Print a file on printer Pin
Henry Minute2-Nov-10 11:01
Henry Minute2-Nov-10 11:01 
QuestionHow to run program at windows startup with administrator rights (on VISTA and Windows 7 )? Pin
Aseem Sharma2-Nov-10 7:48
Aseem Sharma2-Nov-10 7:48 
AnswerRe: How to run program at windows startup with administrator rights (on VISTA and Windows 7 )? Pin
Eddy Vluggen2-Nov-10 10:17
professionalEddy Vluggen2-Nov-10 10:17 
GeneralRe: How to run program at windows startup with administrator rights (on VISTA and Windows 7 )? Pin
PIEBALDconsult2-Nov-10 19:16
professionalPIEBALDconsult2-Nov-10 19:16 
AnswerRe: How to run program at windows startup with administrator rights (on VISTA and Windows 7 )? Pin
Dave Kreskowiak2-Nov-10 15:01
mveDave Kreskowiak2-Nov-10 15:01 
GeneralRe: How to run program at windows startup with administrator rights (on VISTA and Windows 7 )? Pin
Aseem Sharma4-Nov-10 3:49
Aseem Sharma4-Nov-10 3: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 19:19
professionalPIEBALDconsult2-Nov-10 19:19 
GeneralRe: How to run program at windows startup with administrator rights (on VISTA and Windows 7 )? Pin
Aseem Sharma4-Nov-10 4:35
Aseem Sharma4-Nov-10 4:35 
Questionhow to detact terminal emulation Pin
bigjoe11a2-Nov-10 6:52
bigjoe11a2-Nov-10 6:52 
AnswerRe: how to detact terminal emulation Pin
PIEBALDconsult2-Nov-10 16:13
professionalPIEBALDconsult2-Nov-10 16:13 
QuestionLoad assembly dynamically and call methods Pin
marca2922-Nov-10 5:14
marca2922-Nov-10 5:14 
AnswerRe: Load assembly dynamically and call methods Pin
Luc Pattyn2-Nov-10 5:20
sitebuilderLuc Pattyn2-Nov-10 5:20 
AnswerRe: Load assembly dynamically and call methods Pin
souidi abderrahman3-Nov-10 1:30
souidi abderrahman3-Nov-10 1:30 
QuestionChnaging connectionString and reloading it Pin
mrkeivan2-Nov-10 5:06
mrkeivan2-Nov-10 5:06 
AnswerRe: Chnaging connectionString and reloading it Pin
thatraja2-Nov-10 5:25
professionalthatraja2-Nov-10 5:25 
GeneralRe: Chnaging connectionString and reloading it Pin
mrkeivan2-Nov-10 5:34
mrkeivan2-Nov-10 5:34 
GeneralRe: Chnaging connectionString and reloading it Pin
jschell2-Nov-10 9:28
jschell2-Nov-10 9:28 
AnswerRe: Chnaging connectionString and reloading it Pin
alrosan4-Nov-10 9:18
alrosan4-Nov-10 9:18 
QuestionReading Data from a multi sequenced File Pin
MumbleB1-Nov-10 22:34
MumbleB1-Nov-10 22:34 
AnswerRe: Reading Data from a multi sequenced File Pin
OriginalGriff1-Nov-10 23:17
mvaOriginalGriff1-Nov-10 23:17 
GeneralRe: Reading Data from a multi sequenced File Pin
MumbleB2-Nov-10 2:57
MumbleB2-Nov-10 2:57 
AnswerRe: Reading Data from a multi sequenced File Pin
PIEBALDconsult2-Nov-10 4:22
professionalPIEBALDconsult2-Nov-10 4:22 
AnswerRe: Reading Data from a multi sequenced File Pin
jschell2-Nov-10 9:32
jschell2-Nov-10 9:32 

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.