Creating the user with administrator privileges is not the same thing as running a process with elevated (administrator) privileges, if UAC is enabled. You must take the additional step of “elevating” a process before it will run with administrator privileges. In Windows Explorer, you can do this by right-clicking on any program and choosing “Run as Administrator” (or some such).
Also, you did not say whether you tried my advice, and disabled UAC entirely and checked to see whether the problem still occurs. You should do this – it will tell you, definitively, whether UAC is part of your problem. To turn off UAC, go to Start, Programs, Administrative Tools, Local Security Policy. On the left, expand Local Policies, then select Security Policies. On the right, scroll down to “User Account Control: Run all administrators in Admin Approval Mode.” Set this to “disabled”. Reboot. Log in as a user that is a member of the Administrators group, and then run your program.
No I meant the shared folders of the network systems in the work-group.
I’m sorry, I don’t understand what you mean by this.
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Elango C
Sent: Thursday, May 10, 2007 6:01 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] GetLogicalDrives doesn’t retrieve remote drives on Windows Vista
Hi Arlie Davis,
Thanks for the reply. Yes If I run my application in the administrator user, it brings all the network drives, But if I create the User with administrator privilleges and run the application, I am not getting the network drives.
>Can you clarify what you mean by “shared to the system”? Do you mean network mappings performed by processes running in session >>0, such as system services?
No I meant the shared folders of the network systems in the work-group.
Thanks,
Elango C
— Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer