XP Symbolic Links

Guys,

Anyone aware of the symbolic links supported in XP as compared to NT/2K?
Cos there seems to be some major issues accessing these symbolic links from
services in XP created (and running under System account)

Try creating a service on XP with the call (the call fails):

CreateFile(lpFile, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ |
FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL)

where lpFile = “\\…\C:”
or lpFile = “\\…\C:\test1.txt”
or lpFile = “\\?\C:\test1.txt”
or lpFile = “\\DosDevices\C:”

Try the calls using these symbolic links on Win32 applications on XP and
they will work fine. I’ve tested it with these symlinks, and they work.

Accessing of symbolic links on NT/2K via services (running under System
account) or Win32 applications will both work.

Anyone has run into this before or work around it on XP platform???
Or is this a bug on XP for services???


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Search MS for a KB article discussing this. There are many changes to
how symlinks (drive letters ins specific) are access and owned. Looks
like you are experiencing this issue.

Jamey

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@hotmail.com
Sent: Tuesday, November 13, 2001 5:33 AM
To: NT Developers Interest List
Subject: [ntdev] XP Symbolic Links

Guys,

Anyone aware of the symbolic links supported in XP as compared to NT/2K?

Cos there seems to be some major issues accessing these symbolic links
from
services in XP created (and running under System account)

Try creating a service on XP with the call (the call fails):

CreateFile(lpFile, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ |
FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL)

where lpFile = “\\…\C:”
or lpFile = “\\…\C:\test1.txt”
or lpFile = “\\?\C:\test1.txt”
or lpFile = “\\DosDevices\C:”

Try the calls using these symbolic links on Win32 applications on XP and

they will work fine. I’ve tested it with these symlinks, and they work.

Accessing of symbolic links on NT/2K via services (running under System
account) or Win32 applications will both work.

Anyone has run into this before or work around it on XP platform??? Or
is this a bug on XP for services???


You are currently subscribed to ntdev as: xxxxx@storagecraft.com To
unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com