Hey thanks for your reply.
Well, I have tried two different versions both of which have produced the same results.
NetJoinDomain(Chr(0), "domain\0", Chr(0), "account\0", "pwd\0", NETSETUP_JOIN_DOMAIN)
NetJoinDomain(Chr(0), "domain" & chr(0), Chr(0), "Account" & chr(0), "Pwd" & chr(0), NETSETUP_JOIN_DOMAIN)
The first argument is NULL because I plan to execute the code on the target pc. In the first call the 2nd argument needs to be a null terminated string. So I've tact on a C-style Null chr at the end of the string. In the past on other projects I've had success passing a string this way. But I wasn't sure if that would work so that is why in the second version I append a null chr instead.
Here a synopsis of what I trying to do. I trying to join Win2k/Xp clients to a NT 4 domain controler. After reading Microsoft Msdn's on this function it reads to me that this possible to do but I'm not 100% sure. The main error msg I've been receiving is "Network Path was not found". Which is why I think it has something to do with how I passing my Domain argument. There is no problem w/ network because I have manual join the same pc to the domain. So no actual physical network problems exist.
thanks
rcasey