Hi,
I am trying to create a program that would change a computer's name and workgroup. I was able to do the first one but I do not know the API to change the workgroup. I found JoinDomainOrWorkgroup API in MS website that would seem to do the job but it does not work in MASM. :( Is there a lib or inc file I need to include for this API to work?
Thanks.
TF
Hello,
Did you check the NetJoinDomain API?
http://msdn.microsoft.com/en-us/library/aa370433.aspx
Thank you Vortex. I tried it and I believe it would do the job only if I know how to set the fJoinOption flags :(. Any tips on how to set the fJoinOption flags?
EDIT...
I got it to work... Thanks.
TF
Hi TriggerFinger,
One could even create a simple command-line tool based on this API to join domains easily.