>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.
> Regards,
> CrimeMaster