Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get Domain Controller List Code Not Working
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Get Domain Controller List Code Not Working
Miscellaneous
Thread ID:
00407805
Message ID:
00407805
Views:
52
Mucking around with the API to enumerate all of the domain controllers in my area:
declare integer NetGetAnyDCName in NETAPI32 ; 
  STRING @servername , STRING @domainname , DOUBLE bufptr
  servername = .null.
  domainname = .null.
  bufptr = 400000
  nRetVal = NetGetAnyDCName(@servername,@domainname,bufptr)
  ? nRetVal
All I get is
'-1073741819'
. Any thoughts?
Next
Reply
Map
View

Click here to load this message in the networking platform