Alexander
Mon Oct 22 10:39:07 PDT 2007
You can't since mapped drives are specific to a logon session and
you are not running in the interactive session. You can create your
own mappings, but I'd suggest you use UNC names as Alex
already suggested. See WNetAddConnection2/3.
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ:
http://vcfaq.mvps.org
=====================================
"Alex" <Alex@discussions.microsoft.com> wrote in message
news:9FB93585-C7BF-425A-BAEF-72EB8839B3C8@microsoft.com...
> Hi all,
>
> How to access mapped drives along with local drives (like A:\, C:\,
> D:\,
> X:\, Y:\ and Z:\) list from VC++ 6.0 service application in logon mode
> without using password.
>
> If the above is not possible, with password how to do?
>
> I tried with ".\\username", "password" as 12th and 13th args of
> CreateService API. But, It didn't get success. Service is not registering.
>
> How to resolve this issue?
> --
> Thanks & Regards,
> Alex.