ReactOS 0.4.16-dev-303-g11d5cb8
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:
#define NETSETUP_IGNORE_UNSUPPORTED_FLAGS
Definition: lmjoin.h:27
#define NETSETUP_ACCT_DELETE
Definition: lmjoin.h:18
#define NETSETUP_JOIN_DC_ACCOUNT
Definition: lmjoin.h:24

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{
@ NetSetupDomainName
Definition: lmjoin.h:13
@ NetSetupWorkgroupName
Definition: lmjoin.h:12
@ NetSetupUnjoined
Definition: lmjoin.h:11
@ NetSetupUnknownStatus
Definition: lmjoin.h:10
enum _NETSETUP_JOIN_STATUS NETSETUP_JOIN_STATUS
enum _NETSETUP_JOIN_STATUS * PNETSETUP_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 405 of file wksta_new.c.

412{
413 PJOINPR_ENCRYPTED_USER_PASSWORD EncryptedPassword = NULL;
416
417 FIXME("NetJoinDomain(%s %s %s %s 0x%lx)\n",
418 debugstr_w(lpServer), debugstr_w(lpDomain), debugstr_w(lpAccountOU),
419 debugstr_w(lpAccount), debugstr_w(lpPassword), fJoinOptions);
420
421 /* FIXME */
422
423 status = NetpBind(lpServer,
425 if (status != NERR_Success)
426 {
427 ERR("NetpBind() failed (status 0x%lx)\n", status);
428 return status;
429 }
430
432 {
434 (PWSTR)lpServer,
435 (PWSTR)lpDomain,
436 (PWSTR)lpAccountOU,
437 (PWSTR)lpAccount,
438 EncryptedPassword,
439 fJoinOptions);
440 }
442 {
443 RPC_STATUS rpcStatus = RpcExceptionCode();
444 FIXME("Exception 0x%lx\n", rpcStatus);
445 status = I_RpcMapWin32Status(rpcStatus);
446 }
448
450
451 return status;
452}
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:641
#define FIXME(fmt,...)
Definition: precomp.h:53
#define ERR(fmt,...)
Definition: precomp.h:57
#define NULL
Definition: types.h:112
#define EXCEPTION_EXECUTE_HANDLER
Definition: excpt.h:90
#define debugstr_w
Definition: kernel32.h:32
#define NERR_Success
Definition: lmerr.h:5
DWORD NET_API_STATUS
Definition: ms-dtyp.idl:91
LONG WINAPI I_RpcMapWin32Status(RPC_STATUS status)
Definition: rpcrt4_main.c:740
#define RpcEndExcept
Definition: rpc.h:128
#define RpcTryExcept
Definition: rpc.h:126
#define RpcExcept(expr)
Definition: rpc.h:127
long RPC_STATUS
Definition: rpc.h:52
#define RpcExceptionCode()
Definition: rpc.h:132
Definition: ps.c:97
_In_ ULONG _Out_ HANDLE * BindingHandle
Definition: tdikrnl.h:1147
uint16_t * PWSTR
Definition: typedefs.h:56
NET_API_STATUS NetpBind(LPCWSTR pszServerName, handle_t *pBindingHandle)
Definition: wksta_new.c:142
NET_API_STATUS NetpUnbind(handle_t BindingHandle)
Definition: wksta_new.c:187

◆ NetUnjoinDomain()

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

Definition at line 601 of file wksta_new.c.

606{
607 PJOINPR_ENCRYPTED_USER_PASSWORD EncryptedPassword = NULL;
610
611 TRACE("NetUnjoinDomain(%s %s %s %s 0x%lx)\n",
612 debugstr_w(lpServer), debugstr_w(lpAccount),
613 debugstr_w(lpPassword), fUnjoinOptions);
614
615 /* FIXME */
616
617 status = NetpBind(lpServer,
619 if (status != NERR_Success)
620 {
621 ERR("NetpBind() failed (status 0x%lx)\n", status);
622 return status;
623 }
624
626 {
628 (PWSTR)lpServer,
629 (PWSTR)lpAccount,
630 EncryptedPassword,
631 fUnjoinOptions);
632 }
634 {
636 }
638
640
641 return status;
642}
unsigned long __stdcall NetrUnjoinDomain2(handle_t RpcBindingHandle, wchar_t *ServerName, wchar_t *AccountName, PJOINPR_ENCRYPTED_USER_PASSWORD Password, unsigned long Options)
Definition: rpcserver.c:676
#define TRACE(s)
Definition: solgame.cpp:4