Hi can someone help me,
when I call this
NetUserEnum(null, 0, 2, out bufPtr, -1, out EntriesRead, out TotalEntries,
out Resume);
but when
I call this it does not work
NetUserEnum("\\nataliya", 0, 2, out bufPtr, -1, out EntriesRead, out
TotalEntries, out Resume);
null is for my local machine
nataliya is the the name of one of my servers on the network.
I have been researching this but no results.
Many thanks
Mattias Sjögren - 28 Oct 2005 14:08 GMT
>NetUserEnum("\\nataliya", 0, 2, out bufPtr, -1, out EntriesRead, out
Keep in mind that \ is an escape character in C#, and \\ effectively
becomes just a single \ which isn't a valid UNC prefix. You need
"\\\\nataliya" or @"\\nataliya".
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
nat - 28 Oct 2005 14:21 GMT
It is still now working :(
> >NetUserEnum("\\nataliya", 0, 2, out bufPtr, -1, out EntriesRead, out
>
[quoted text clipped - 3 lines]
>
> Mattias