C
Charlie Orford
I have developed a program that is run as a windows service. It uses the
GetLogicalDrives() function to enumerate all the drives on the system. It is
necessary for the program to get a list of mapped network drives in addition
to logical drives.
The GetLogicalDrives() function is able to enumerate mapped network drives
however the problm lies when the program is run as a service. When run as a
service on Windows2000 GetLogicalDrives() is able to return any mapped
network drive that does not require a username/password and any mapped
network drive that uses the same username and password as the service is
running as.
Under WindowsXP (SP1) GetLogicalDrives() does not enumerate any mapped
network drives irrespective of whether or not the drive requires a
username/password or if the service is running as the same user that the
drive requires.
Is this due to a change in which the way services are allowed to interact
with network shares under Windows XP or is something else going on?
TIA,
GetLogicalDrives() function to enumerate all the drives on the system. It is
necessary for the program to get a list of mapped network drives in addition
to logical drives.
The GetLogicalDrives() function is able to enumerate mapped network drives
however the problm lies when the program is run as a service. When run as a
service on Windows2000 GetLogicalDrives() is able to return any mapped
network drive that does not require a username/password and any mapped
network drive that uses the same username and password as the service is
running as.
Under WindowsXP (SP1) GetLogicalDrives() does not enumerate any mapped
network drives irrespective of whether or not the drive requires a
username/password or if the service is running as the same user that the
drive requires.
Is this due to a change in which the way services are allowed to interact
with network shares under Windows XP or is something else going on?
TIA,