Click here to Skip to main content
15,897,273 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionHow can I return the method that is called when an event is raised ? Pin
Necati Arslan24-Mar-04 22:20
Necati Arslan24-Mar-04 22:20 
AnswerRe: How can I return the method that is called when an event is raised ? Pin
Michael Flanakin25-Mar-04 18:29
Michael Flanakin25-Mar-04 18:29 
GeneralRe: How can I return the method that is called when an event is raised ? Pin
Necati Arslan26-Mar-04 4:06
Necati Arslan26-Mar-04 4:06 
GeneralRe: How can I return the method that is called when an event is raised ? Pin
Michael Flanakin26-Mar-04 4:19
Michael Flanakin26-Mar-04 4:19 
Generalcan't save .pdb to web server Pin
peterzorbas24-Mar-04 22:05
peterzorbas24-Mar-04 22:05 
GeneralFindAll with system.directoryservice Pin
Cammie Watson24-Mar-04 5:58
Cammie Watson24-Mar-04 5:58 
GeneralRemote Access to the Registry with Impersonation Pin
Gunner_Sr24-Mar-04 2:45
Gunner_Sr24-Mar-04 2:45 
GeneralRe: Remote Access to the Registry with Impersonation Pin
Roman Rodov24-Mar-04 3:40
Roman Rodov24-Mar-04 3:40 
You should really not be allowing applications to install anything in the GAC as a user level account. In fact you should not be allowing user level accounts to install applications at all Smile | :)
But if you must .....

To impersonate a user you need to use P/Invoke to call the LogonUser API from advapi32.dll to get a user token. Then you need to create a new WindowsImpersonationContext from this user token and call the Impersonate() method. After you've done the dirty work you should call Undo() to revert back to user level. And now an example: Windows Impersonation MSDN Example[^]
GeneralRe: Remote Access to the Registry with Impersonation Pin
Gunner_Sr24-Mar-04 4:11
Gunner_Sr24-Mar-04 4:11 
GeneralRe: Remote Access to the Registry with Impersonation Pin
Roman Rodov24-Mar-04 12:55
Roman Rodov24-Mar-04 12:55 
Generalunload an assembly Pin
dzsigit24-Mar-04 2:11
dzsigit24-Mar-04 2:11 
GeneralRe: unload an assembly Pin
Roman Rodov24-Mar-04 3:25
Roman Rodov24-Mar-04 3:25 
GeneralWindow Visibility Pin
ShadowLordXP23-Mar-04 17:15
ShadowLordXP23-Mar-04 17:15 
GeneralRe: Window Visibility Pin
John Kuhn23-Mar-04 19:40
John Kuhn23-Mar-04 19:40 
GeneralRe: Window Visibility Pin
T Manjaly24-Mar-04 12:07
T Manjaly24-Mar-04 12:07 
GeneralRe: Window Visibility Pin
John Kuhn24-Mar-04 15:23
John Kuhn24-Mar-04 15:23 
Generalapplications for nt4, 98, me Pin
hazzem elrefai22-Mar-04 22:52
hazzem elrefai22-Mar-04 22:52 
GeneralRe: applications for nt4, 98, me Pin
Rob Graham23-Mar-04 9:16
Rob Graham23-Mar-04 9:16 
GeneralRe: applications for nt4, 98, me Pin
Roman Rodov23-Mar-04 12:28
Roman Rodov23-Mar-04 12:28 
GeneralRe: applications for nt4, 98, me Pin
IGx8923-Mar-04 15:37
IGx8923-Mar-04 15:37 
GeneralRe: applications for nt4, 98, me Pin
John Kuhn23-Mar-04 16:11
John Kuhn23-Mar-04 16:11 
GeneralDatabase change notification? Help needed... Pin
petand7822-Mar-04 12:21
petand7822-Mar-04 12:21 
GeneralRe: Database change notification? Help needed... Pin
Colin Angus Mackay23-Mar-04 12:44
Colin Angus Mackay23-Mar-04 12:44 
QuestionWhere is ms-avalon library??? Pin
maharsoft21-Mar-04 21:45
maharsoft21-Mar-04 21:45 
AnswerRe: Where is ms-avalon library??? Pin
ian mariano23-Mar-04 11:33
ian mariano23-Mar-04 11:33 

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.