CFileDialog Does not show mapped files in system account

C

CrimeMaster

I have write some simple code,this code does not shows network mapped
drives when we run it under system account, otherwise under user
account it shows them correctly.

Any body tell me why did its behaviour change under system account,
and how we can do it under system account.


CFileDialog fileDlg(TRUE);
fileDlg.DoModal();


Regards,
CrimeMaster
 
B

Ben Voigt

CrimeMaster said:
I have write some simple code,this code does not shows network mapped
drives when we run it under system account, otherwise under user
account it shows them correctly.

Any body tell me why did its behaviour change under system account,
and how we can do it under system account.

It's behavior did not change under system account. The SYSTEM account has
no drives mapped. When you map a drive, it applies only to the single user
mapping it. SYSTEM has no privileges on the network in any case, and thus
could not have drives mapped.
CFileDialog fileDlg(TRUE);
fileDlg.DoModal();

Do not display dialogs from the SYSTEM account. Use a GUI in the user
account and inter-process communication. Any window is vulnerable to
escalation of privileges via a shatter attack, and you don't want a normal
user to get SYSTEM privileges.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top