all groups > dotnet interop > october 2005 >
You're in the

dotnet interop

group:

NetUserEnum


Re: NetUserEnum Mattias Sjögren
10/28/2005 12:00:00 AM
dotnet interop:

[quoted text, click to view]

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

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
NetUserEnum nat
10/28/2005 4:29:02 AM
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.

Re: NetUserEnum nat
10/28/2005 6:21:01 AM
It is still now working :(

[quoted text, click to view]
AddThis Social Bookmark Button