Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WNetOpenEnum Error 1208 - "A remote API-Error occured"

14 views
Skip to first unread message

Uwe

unread,
Dec 2, 2009, 1:53:01 PM12/2/09
to
Some time ago I wrote a little tool for enumerationg network resources. It
utilized the code from
http://msdn.microsoft.com/en-us/library/aa385341(VS.85).aspx and it worked
fine for enumerating all kind of networks/servers.

Now nearly a year later after updating my client computer to windows7 64 Bit
and applying some security patches to the domain server I get the EXTENDED
error 1208 when trying to "WNetOpenEnum" a domain to which my user account on
the clientmachine isn't logged in.

Is it a security problem and do I have to use some DCOM security settings or
do I have to dive deep in the "access control entry" and authorization stuff?

When I compile the original MSDN sample I get the same error but suprisingly
this CSharp sample works without problems:
http://www.codeproject.com/KB/cs/csenumnetworkresources.aspx . The
codeproject CSharp sample uses the same logic as my C++ and the MSDN sample.

How does the CSharp runtime initialize the network functionality and how can
I get the MSDN sample get working?

best regards and many thanks in advance,
Uwe

0 new messages