News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

JoinDomainOrWorkgroup or similar API that works with MASM32

Started by TriggerFinger, July 22, 2012, 05:16:37 PM

Previous topic - Next topic

TriggerFinger

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

Vortex

Hello,

Did you check the NetJoinDomain API?

http://msdn.microsoft.com/en-us/library/aa370433.aspx

TriggerFinger

#2
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

Vortex

Hi TriggerFinger,

One could even create a simple command-line tool based on this API to join domains easily.