ReactOS  0.4.14-dev-593-g1793dcc
lmjoin.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NETSETUP_JOIN_DOMAIN   0x00000001
 
#define NETSETUP_ACCT_CREATE   0x00000002
 
#define NETSETUP_ACCT_DELETE   0x00000004
 
#define NETSETUP_WIN9X_UPGRADE   0x00000010
 
#define NETSETUP_DOMAIN_JOIN_IF_JOINED   0x00000020
 
#define NETSETUP_JOIN_UNSECURE   0x00000040
 
#define NETSETUP_MACHINE_PWD_PASSED   0x00000080
 
#define NETSETUP_DEFER_SPN_SET   0x00000100
 
#define NETSETUP_JOIN_DC_ACCOUNT   0x00000200
 
#define NETSETUP_JOIN_WITH_NEW_NAME   0x00000400
 
#define NETSETUP_INSTALL_INVOCATION   0x00040000
 
#define NETSETUP_IGNORE_UNSUPPORTED_FLAGS   0x10000000
 
#define NETSETUP_VALID_UNJOIN_FLAGS
 

Typedefs

typedef enum _NETSETUP_JOIN_STATUS NETSETUP_JOIN_STATUS
 
typedef enum _NETSETUP_JOIN_STATUSPNETSETUP_JOIN_STATUS
 

Enumerations

enum  _NETSETUP_JOIN_STATUS {
  NetSetupUnknownStatus = 0, NetSetupUnjoined, NetSetupWorkgroupName, NetSetupDomainName,
  NetSetupUnknownStatus = 0, NetSetupUnjoined, NetSetupWorkgroupName, NetSetupDomainName
}
 

Functions

NET_API_STATUS NET_API_FUNCTION NetJoinDomain (_In_opt_ LPCWSTR lpServer, _In_ LPCWSTR lpDomain, _In_opt_ LPCWSTR lpAccountOU, _In_opt_ LPCWSTR lpAccount, _In_opt_ LPCWSTR lpPassword, _In_ DWORD fJoinOptions)
 
NET_API_STATUS NET_API_FUNCTION NetUnjoinDomain (_In_opt_ LPCWSTR lpServer, _In_opt_ LPCWSTR lpAccount, _In_opt_ LPCWSTR lpPassword, _In_ DWORD fUnjoinOptions)
 
NET_API_STATUS NET_API_FUNCTION NetGetJoinInformation (_In_opt_ LPCWSTR lpServer, _Out_opt_ LPWSTR *lpNameBuffer, _Out_ PNETSETUP_JOIN_STATUS BufferType)
 

Macro Definition Documentation

◆ NETSETUP_ACCT_CREATE

#define NETSETUP_ACCT_CREATE   0x00000002

Definition at line 17 of file lmjoin.h.

◆ NETSETUP_ACCT_DELETE

#define NETSETUP_ACCT_DELETE   0x00000004

Definition at line 18 of file lmjoin.h.

◆ NETSETUP_DEFER_SPN_SET

#define NETSETUP_DEFER_SPN_SET   0x00000100

Definition at line 23 of file lmjoin.h.

◆ NETSETUP_DOMAIN_JOIN_IF_JOINED

#define NETSETUP_DOMAIN_JOIN_IF_JOINED   0x00000020

Definition at line 20 of file lmjoin.h.

◆ NETSETUP_IGNORE_UNSUPPORTED_FLAGS

#define NETSETUP_IGNORE_UNSUPPORTED_FLAGS   0x10000000

Definition at line 27 of file lmjoin.h.

◆ NETSETUP_INSTALL_INVOCATION

#define NETSETUP_INSTALL_INVOCATION   0x00040000

Definition at line 26 of file lmjoin.h.

◆ NETSETUP_JOIN_DC_ACCOUNT

#define NETSETUP_JOIN_DC_ACCOUNT   0x00000200

Definition at line 24 of file lmjoin.h.

◆ NETSETUP_JOIN_DOMAIN

#define NETSETUP_JOIN_DOMAIN   0x00000001

Definition at line 16 of file lmjoin.h.

◆ NETSETUP_JOIN_UNSECURE

#define NETSETUP_JOIN_UNSECURE   0x00000040

Definition at line 21 of file lmjoin.h.

◆ NETSETUP_JOIN_WITH_NEW_NAME

#define NETSETUP_JOIN_WITH_NEW_NAME   0x00000400

Definition at line 25 of file lmjoin.h.

◆ NETSETUP_MACHINE_PWD_PASSED

#define NETSETUP_MACHINE_PWD_PASSED   0x00000080

Definition at line 22 of file lmjoin.h.

◆ NETSETUP_VALID_UNJOIN_FLAGS

#define NETSETUP_VALID_UNJOIN_FLAGS
Value:
NETSETUP_JOIN_DC_ACCOUNT | \
NETSETUP_IGNORE_UNSUPPORTED_FLAGS)
#define NETSETUP_ACCT_DELETE
Definition: lmjoin.h:18

Definition at line 29 of file lmjoin.h.

◆ NETSETUP_WIN9X_UPGRADE

#define NETSETUP_WIN9X_UPGRADE   0x00000010

Definition at line 19 of file lmjoin.h.

Typedef Documentation

◆ NETSETUP_JOIN_STATUS

◆ PNETSETUP_JOIN_STATUS

Enumeration Type Documentation

◆ _NETSETUP_JOIN_STATUS

Enumerator
NetSetupUnknownStatus 
NetSetupUnjoined 
NetSetupWorkgroupName 
NetSetupDomainName 
NetSetupUnknownStatus 
NetSetupUnjoined 
NetSetupWorkgroupName 
NetSetupDomainName 

Definition at line 8 of file lmjoin.h.

9 {
enum _NETSETUP_JOIN_STATUS * PNETSETUP_JOIN_STATUS
enum _NETSETUP_JOIN_STATUS NETSETUP_JOIN_STATUS

Function Documentation

◆ NetGetJoinInformation()

NET_API_STATUS NET_API_FUNCTION NetGetJoinInformation ( _In_opt_ LPCWSTR  lpServer,
_Out_opt_ LPWSTR lpNameBuffer,
_Out_ PNETSETUP_JOIN_STATUS  BufferType 
)

◆ NetJoinDomain()

NET_API_STATUS NET_API_FUNCTION NetJoinDomain ( _In_opt_ LPCWSTR  lpServer,
_In_ LPCWSTR  lpDomain,
_In_opt_ LPCWSTR  lpAccountOU,
_In_opt_ LPCWSTR  lpAccount,
_In_opt_ LPCWSTR  lpPassword,
_In_ DWORD  fJoinOptions 
)

Definition at line 400 of file wksta_new.c.

407 {
408  PJOINPR_ENCRYPTED_USER_PASSWORD EncryptedPassword = NULL;
411 
412  FIXME("NetJoinDomain(%s %s %s %s 0x%lx)\n",
413  debugstr_w(lpServer), debugstr_w(lpDomain), debugstr_w(lpAccountOU),
414  debugstr_w(lpAccount), debugstr_w(lpPassword), fJoinOptions);
415 
416  /* FIXME */
417 
418  status = NetpBind(lpServer,
419  &BindingHandle);
420  if (status != NERR_Success)
421  {
422  ERR("NetpBind() failed (status 0x%lx)\n", status);
423  return status;
424  }
425 
427  {
429  (PWSTR)lpServer,
430  (PWSTR)lpDomain,
431  (PWSTR)lpAccountOU,
432  (PWSTR)lpAccount,
433  EncryptedPassword,
434  fJoinOptions);
435  }
437  {
438  RPC_STATUS rpcStatus = RpcExceptionCode();
439  FIXME("Exception 0x%lx\n", rpcStatus);
440  status = I_RpcMapWin32Status(rpcStatus);
441  }
442  RpcEndExcept;
443 
445 
446  return status;
447 }
#define RpcEndExcept
Definition: rpc.h:128
uint16_t * PWSTR
Definition: typedefs.h:54
_In_ ULONG _Out_ HANDLE * BindingHandle
Definition: tdikrnl.h:1146
#define NERR_Success
Definition: lmerr.h:5
long RPC_STATUS
Definition: rpc.h:52
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
#define RpcTryExcept
Definition: rpc.h:126
#define EXCEPTION_EXECUTE_HANDLER
Definition: excpt.h:85
NET_API_STATUS NetpUnbind(handle_t BindingHandle)
Definition: wksta_new.c:187
smooth NULL
Definition: ftsmooth.c:416
DWORD NET_API_STATUS
Definition: ms-dtyp.idl:91
#define RpcExceptionCode()
Definition: rpc.h:132
unsigned long __stdcall NetrJoinDomain2(handle_t RpcBindingHandle, wchar_t *ServerName, wchar_t *DomainNameParam, wchar_t *MachineAccountOU, wchar_t *AccountName, PJOINPR_ENCRYPTED_USER_PASSWORD Password, unsigned long Options)
Definition: rpcserver.c:389
#define ERR(fmt,...)
Definition: debug.h:109
NET_API_STATUS NetpBind(LPCWSTR pszServerName, handle_t *pBindingHandle)
Definition: wksta_new.c:142
static SERVICE_STATUS status
Definition: service.c:31
#define RpcExcept(expr)
Definition: rpc.h:127
LONG WINAPI I_RpcMapWin32Status(RPC_STATUS status)
Definition: rpcrt4_main.c:738
Definition: ps.c:97

◆ NetUnjoinDomain()

NET_API_STATUS NET_API_FUNCTION NetUnjoinDomain ( _In_opt_ LPCWSTR  lpServer,
_In_opt_ LPCWSTR  lpAccount,
_In_opt_ LPCWSTR  lpPassword,
_In_ DWORD  fUnjoinOptions 
)