C# Class FOG.Modules.HostnameChanger.Windows.WindowsHostName

Inheritance: IHostName
Show file Open project: FOGProject/fog-client

Public Methods

Method Description
ActivateComputer ( string key ) : void
RegisterComputer ( DataContracts msg ) : bool
RenameComputer ( string hostname ) : void
UnRegisterComputer ( DataContracts msg ) : void

Private Methods

Method Description
DomainWrapper ( DataContracts msg, bool ou, JoinOptions options ) : int
NetJoinDomain ( string lpServer, string lpDomain, string lpAccountOU, string lpAccount, string lpPassword, JoinOptions nameType ) : int
NetUnjoinDomain ( string lpServer, string lpAccount, string lpPassword, UnJoinOptions fUnjoinOptions ) : int

Method Details

ActivateComputer() public method

public ActivateComputer ( string key ) : void
key string
return void

RegisterComputer() public method

public RegisterComputer ( DataContracts msg ) : bool
msg DataContracts
return bool

RenameComputer() public method

public RenameComputer ( string hostname ) : void
hostname string
return void

UnRegisterComputer() public method

public UnRegisterComputer ( DataContracts msg ) : void
msg DataContracts
return void