Click here to Skip to main content
15,895,084 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Enable lan connection for win7 using INetConnection Pin
Richard MacCutchan22-Oct-10 23:01
mveRichard MacCutchan22-Oct-10 23:01 
GeneralRe: Enable lan connection for win7 using INetConnection Pin
manojsaxena_mca24-Oct-10 21:26
manojsaxena_mca24-Oct-10 21:26 
GeneralRe: Enable lan connection for win7 using INetConnection Pin
Richard MacCutchan24-Oct-10 22:33
mveRichard MacCutchan24-Oct-10 22:33 
GeneralRe: Enable lan connection for win7 using INetConnection Pin
manojsaxena_mca24-Oct-10 23:18
manojsaxena_mca24-Oct-10 23:18 
GeneralRe: Enable lan connection for win7 using INetConnection Pin
Richard MacCutchan25-Oct-10 0:26
mveRichard MacCutchan25-Oct-10 0:26 
GeneralRe: Enable lan connection for win7 using INetConnection Pin
manojsaxena_mca26-Oct-10 2:31
manojsaxena_mca26-Oct-10 2:31 
GeneralRe: Enable lan connection for win7 using INetConnection Pin
Richard MacCutchan26-Oct-10 3:35
mveRichard MacCutchan26-Oct-10 3:35 
GeneralRe: Enable lan connection for win7 using INetConnection Pin
manojsaxena_mca1-Nov-10 1:35
manojsaxena_mca1-Nov-10 1:35 
Hi
Run as administrator works fine for administrator account but when I run the application (as administrator) in a guest account, the application seems to change the settings of administrator instead of the guest account and thereby defeating the purpose of the application.
Eg : If I have proxy enabled in Administrator account and running (as administrator) the application in guest account disables the proxy of the administrator.

The behavior seems quite logical since I am asking the application to run as administrator instead of guest and hence use the administrator environment.

So coming back to my very first mail, the problem in guest account is that CoCreateInstance returns E_ACCESSDENIED.

Is there some way to use the function to run with elevated privileges ?
Or is it that COM objects can not be used in a guest account (which I think should not be the case)?


Thanks
Manoj
GeneralRe: Enable lan connection for win7 using INetConnection Pin
Richard MacCutchan2-Nov-10 9:30
mveRichard MacCutchan2-Nov-10 9:30 
GeneralRe: Enable lan connection for win7 using INetConnection Pin
manojsaxena_mca2-Nov-10 22:27
manojsaxena_mca2-Nov-10 22:27 
GeneralRe: Enable lan connection for win7 using INetConnection Pin
Richard MacCutchan3-Nov-10 4:37
mveRichard MacCutchan3-Nov-10 4:37 
QuestionShellExecute Pin
john563222-Oct-10 1:57
john563222-Oct-10 1:57 
AnswerRe: ShellExecute Pin
Nish Nishant22-Oct-10 2:05
sitebuilderNish Nishant22-Oct-10 2:05 
AnswerRe: ShellExecute Pin
Sauro Viti22-Oct-10 2:09
professionalSauro Viti22-Oct-10 2:09 
GeneralRe: ShellExecute Pin
john563222-Oct-10 2:30
john563222-Oct-10 2:30 
GeneralRe: ShellExecute Pin
David Crow22-Oct-10 2:52
David Crow22-Oct-10 2:52 
GeneralRe: ShellExecute Pin
Code-o-mat22-Oct-10 3:07
Code-o-mat22-Oct-10 3:07 
GeneralRe: ShellExecute Pin
john563222-Oct-10 3:12
john563222-Oct-10 3:12 
GeneralRe: ShellExecute Pin
Code-o-mat22-Oct-10 3:20
Code-o-mat22-Oct-10 3:20 
GeneralRe: ShellExecute Pin
john563222-Oct-10 3:57
john563222-Oct-10 3:57 
GeneralRe: ShellExecute Pin
Code-o-mat22-Oct-10 4:01
Code-o-mat22-Oct-10 4:01 
GeneralRe: ShellExecute Pin
john563222-Oct-10 4:03
john563222-Oct-10 4:03 
GeneralRe: ShellExecute Pin
Code-o-mat22-Oct-10 4:11
Code-o-mat22-Oct-10 4:11 
GeneralRe: ShellExecute Pin
john563222-Oct-10 5:46
john563222-Oct-10 5:46 
GeneralRe: ShellExecute [modified] Pin
Code-o-mat22-Oct-10 7:42
Code-o-mat22-Oct-10 7:42 

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.