28 ERR(
"RpcServerUseProtseqEpW() failed (Status %lx)\n",
Status);
35 ERR(
"RpcServerRegisterIf() failed (Status %lx)\n",
Status);
42 ERR(
"RpcServerListen() failed (Status %lx)\n",
Status);
66 _In_ wchar_t *UserName,
67 _In_ wchar_t *Workstation,
80 _In_ wchar_t *UserName,
81 _In_ wchar_t *Workstation,
129 _In_ wchar_t *ComputerName,
143 _In_ wchar_t *AccountName,
145 _In_ wchar_t *ComputerName,
159 _In_ wchar_t *AccountName,
161 _In_ wchar_t *ComputerName,
176 _In_ wchar_t *ComputerName,
194 _In_ wchar_t *ComputerName,
212 _In_ wchar_t * ComputerName,
234 _In_ wchar_t *ComputerName,
311 _In_ wchar_t *AccountName,
313 _In_ wchar_t *ComputerName,
328 _In_ wchar_t *ComputerName,
347 _In_ wchar_t *ComputerName,
481 _In_ wchar_t *AccountName,
483 _In_ wchar_t *ComputerName,
515 _Out_ wchar_t **SiteName)
544 _In_ wchar_t *AccountName,
546 _In_ wchar_t *ComputerName,
561 _In_ wchar_t *AccountName,
563 _In_ wchar_t *ComputerName,
578 _In_ wchar_t *ComputerName,
626 _Out_ wchar_t **DomainName,
627 _Out_ int *PdcSameSite)
712 _In_ wchar_t *DnsHostName)
724 _In_ wchar_t *AccountName,
726 _In_ wchar_t *ComputerName,
742 _In_opt_ wchar_t *TrustedDomainName,
756 _In_ wchar_t *ComputerName,
792 _In_ wchar_t *AccountName,
794 _In_ wchar_t *ComputerName,
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
DWORD WINAPI RpcThreadRoutine(LPVOID lpParameter)
NTSTATUS __stdcall NetrLogonGetDomainInfo(_In_ LOGONSRV_HANDLE ServerName, _In_opt_ wchar_t *ComputerName, _In_ PNETLOGON_AUTHENTICATOR Authenticator, _Inout_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator, _In_ DWORD Level, _In_ PNETLOGON_WORKSTATION_INFORMATION WkstaBuffer, _Out_ PNETLOGON_DOMAIN_INFORMATION DomBuffer)
NTSTATUS __stdcall NetrLogonSamLogonWithFlags(_In_opt_ LOGONSRV_HANDLE LogonServer, _In_opt_ wchar_t *ComputerName, _In_opt_ PNETLOGON_AUTHENTICATOR Authenticator, _Inout_opt_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator, _In_ NETLOGON_LOGON_INFO_CLASS LogonLevel, _In_ PNETLOGON_LEVEL LogonInformation, _In_ NETLOGON_VALIDATION_INFO_CLASS ValidationLevel, _Out_ PNETLOGON_VALIDATION ValidationInformation, _Out_ UCHAR *Authoritative, _Inout_ ULONG *ExtraFlags)
NET_API_STATUS __stdcall NetrLogonComputeClientDigest(_In_opt_ LOGONSRV_HANDLE ServerName, _In_opt_ wchar_t *DomainName, _In_ UCHAR *Message, _In_ ULONG MessageSize, _Out_ CHAR NewMessageDigest[16], _Out_ CHAR OldMessageDigest[16])
NET_API_STATUS __stdcall NetrLogonGetTrustRid(_In_opt_ LOGONSRV_HANDLE ServerName, _In_opt_ wchar_t *DomainName, _Out_ ULONG *Rid)
NTSTATUS __stdcall NetrLogonSetServiceBits(_In_opt_ LOGONSRV_HANDLE ServerName, _In_ DWORD ServiceBitsOfInterest, _In_ DWORD ServiceBits)
NTSTATUS __stdcall NetrDatabaseDeltas(_In_ LOGONSRV_HANDLE PrimaryName, _In_ wchar_t *ComputerName, _In_ PNETLOGON_AUTHENTICATOR Authenticator, _Inout_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator, _In_ DWORD DatabaseID, _Inout_ PNLPR_MODIFIED_COUNT DomainModifiedCount, _Out_ PNETLOGON_DELTA_ENUM_ARRAY *DeltaArray, _In_ DWORD PreferredMaximumLength)
NET_API_STATUS __stdcall NetrLogonControl2Ex(_In_opt_ LOGONSRV_HANDLE ServerName, _In_ DWORD FunctionCode, _In_ DWORD QueryLevel, _In_ PNETLOGON_CONTROL_DATA_INFORMATION Data, _Out_ PNETLOGON_CONTROL_QUERY_INFORMATION Buffer)
NET_API_STATUS __stdcall DsrGetForestTrustInformation(_In_opt_ LOGONSRV_HANDLE ServerName, _In_opt_ wchar_t *TrustedDomainName, _In_ DWORD Flags, _Out_ PLSA_FOREST_TRUST_INFORMATION *ForestTrustInfo)
NTSTATUS __stdcall NetrLogonSamLogon(_In_opt_ LOGONSRV_HANDLE LogonServer, _In_opt_ wchar_t *ComputerName, _In_opt_ PNETLOGON_AUTHENTICATOR Authenticator, _Inout_opt_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator, _In_ NETLOGON_LOGON_INFO_CLASS LogonLevel, _In_ PNETLOGON_LEVEL LogonInformation, _In_ NETLOGON_VALIDATION_INFO_CLASS ValidationLevel, _Out_ PNETLOGON_VALIDATION ValidationInformation, _Out_ UCHAR *Authoritative)
NET_API_STATUS __stdcall DsrAddressToSiteNamesW(_In_opt_ LOGONSRV_HANDLE ComputerName, _In_ DWORD EntryCount, _In_ PNL_SOCKET_ADDRESS SocketAddresses, _Out_ PNL_SITE_NAME_ARRAY *SiteNames)
NET_API_STATUS __stdcall NetrLogonControl(_In_opt_ LOGONSRV_HANDLE ServerName, _In_ DWORD FunctionCode, _In_ DWORD QueryLevel, _Out_ PNETLOGON_CONTROL_QUERY_INFORMATION Buffer)
NTSTATUS __stdcall NetrServerPasswordSet2(_In_opt_ LOGONSRV_HANDLE PrimaryName, _In_ wchar_t *AccountName, _In_ NETLOGON_SECURE_CHANNEL_TYPE SecureChannelType, _In_ wchar_t *ComputerName, _In_ PNETLOGON_AUTHENTICATOR Authenticator, _Out_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator, _In_ PNL_TRUST_PASSWORD ClearNewPassword)
NTSTATUS __stdcall NetrEnumerateTrustedDomains(_In_opt_ LOGONSRV_HANDLE ServerName, _Out_ PDOMAIN_NAME_BUFFER DomainNameBuffer)
NTSTATUS __stdcall NetrLogonSendToSam(_In_opt_ LOGONSRV_HANDLE PrimaryName, _In_ wchar_t *ComputerName, _In_ PNETLOGON_AUTHENTICATOR Authenticator, _Out_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator, _In_ UCHAR *OpaqueBuffer, _In_ ULONG OpaqueBufferSize)
NET_API_STATUS __stdcall DsrAddressToSiteNamesExW(_In_opt_ LOGONSRV_HANDLE ComputerName, _In_ DWORD EntryCount, _In_ PNL_SOCKET_ADDRESS SocketAddresses, _Out_ PNL_SITE_NAME_EX_ARRAY *SiteNames)
NET_API_STATUS __stdcall DsrGetSiteName(_In_opt_ LOGONSRV_HANDLE ComputerName, _Out_ wchar_t **SiteName)
NTSTATUS __stdcall NetrServerGetTrustInfo(_In_opt_ LOGONSRV_HANDLE TrustedDcName, _In_ wchar_t *AccountName, _In_ NETLOGON_SECURE_CHANNEL_TYPE SecureChannelType, _In_ wchar_t *ComputerName, _In_ PNETLOGON_AUTHENTICATOR Authenticator, _Out_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator, _Out_ PENCRYPTED_NT_OWF_PASSWORD EncryptedNewOwfPassword, _Out_ PENCRYPTED_NT_OWF_PASSWORD EncryptedOldOwfPassword, _Out_ PNL_GENERIC_RPC_DATA *TrustInfo)
NTSTATUS __stdcall NetrLogonGetCapabilities(_In_ LOGONSRV_HANDLE ServerName, _In_opt_ wchar_t *ComputerName, _In_ PNETLOGON_AUTHENTICATOR Authenticator, _Inout_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator, _In_ DWORD QueryLevel, _Out_ PNETLOGON_CAPABILITIES ServerCapabilities)
NTSTATUS __stdcall NetrGetForestTrustInformation(_In_opt_ LOGONSRV_HANDLE ServerName, _In_ wchar_t *ComputerName, _In_ PNETLOGON_AUTHENTICATOR Authenticator, _Out_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator, _In_ DWORD Flags, _Out_ PLSA_FOREST_TRUST_INFORMATION *ForestTrustInfo)
NTSTATUS __stdcall NetrLogonSamLogoff(_In_opt_ LOGONSRV_HANDLE LogonServer, _In_opt_ wchar_t *ComputerName, _In_opt_ PNETLOGON_AUTHENTICATOR Authenticator, _Inout_opt_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator, _In_ NETLOGON_LOGON_INFO_CLASS LogonLevel, _In_ PNETLOGON_LEVEL LogonInformation)
NTSTATUS __stdcall NetrServerAuthenticate2(_In_opt_ LOGONSRV_HANDLE PrimaryName, _In_ wchar_t *AccountName, _In_ NETLOGON_SECURE_CHANNEL_TYPE SecureChannelType, _In_ wchar_t *ComputerName, _In_ PNETLOGON_CREDENTIAL ClientCredential, _Out_ PNETLOGON_CREDENTIAL ServerCredential, _Inout_ ULONG *NegotiateFlags)
NTSTATUS __stdcall NetrAccountSync(_In_opt_ LOGONSRV_HANDLE PrimaryName, _In_ wchar_t *ComputerName, _In_ PNETLOGON_AUTHENTICATOR Authenticator, _Inout_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator, _In_ DWORD Reference, _In_ DWORD Level, _Out_ UCHAR *Buffer, _In_ DWORD BufferSize, _Out_ ULONG *CountReturned, _Out_ ULONG *TotalEntries, _Out_ ULONG *NextReference, _Out_ PUAS_INFO_0 LastRecordId)
NET_API_STATUS __stdcall DsrGetDcSiteCoverageW(_In_opt_ LOGONSRV_HANDLE ServerName, _Out_ PNL_SITE_NAME_ARRAY *SiteNames)
NET_API_STATUS __stdcall NetrLogonUasLogon(_In_opt_ LOGONSRV_HANDLE ServerName, _In_ wchar_t *UserName, _In_ wchar_t *Workstation, _Out_ PNETLOGON_VALIDATION_UAS_INFO *ValidationInformation)
NTSTATUS __stdcall NetrDatabaseRedo(_In_ LOGONSRV_HANDLE PrimaryName, _In_ wchar_t *ComputerName, _In_ PNETLOGON_AUTHENTICATOR Authenticator, _Inout_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator, _In_ UCHAR *ChangeLogEntry, _In_ DWORD ChangeLogEntrySize, _Out_ PNETLOGON_DELTA_ENUM_ARRAY *DeltaArray)
NTSTATUS __stdcall NetrDatabaseSync2(_In_ LOGONSRV_HANDLE PrimaryName, _In_ wchar_t *ComputerName, _In_ PNETLOGON_AUTHENTICATOR Authenticator, _Inout_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator, _In_ DWORD DatabaseID, _In_ SYNC_STATE RestartState, _Inout_ ULONG *SyncContext, _Out_ PNETLOGON_DELTA_ENUM_ARRAY *DeltaArray, _In_ DWORD PreferredMaximumLength)
NET_API_STATUS __stdcall DsrGetDcNameEx(_In_opt_ LOGONSRV_HANDLE ComputerName, _In_opt_ wchar_t *DomainName, _In_opt_ GUID *DomainGuid, _In_opt_ wchar_t *SiteName, _In_ ULONG Flags, _Out_ PDOMAIN_CONTROLLER_INFOW *DomainControllerInfo)
NTSTATUS __stdcall NetrDatabaseSync(_In_ LOGONSRV_HANDLE PrimaryName, _In_ wchar_t *ComputerName, _In_ PNETLOGON_AUTHENTICATOR Authenticator, _Inout_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator, _In_ DWORD DatabaseID, _Inout_ ULONG *SyncContext, _Out_ PNETLOGON_DELTA_ENUM_ARRAY *DeltaArray, _In_ DWORD PreferredMaximumLength)
NET_API_STATUS __stdcall NetrGetDCName(_In_ LOGONSRV_HANDLE ServerName, _In_opt_ wchar_t *DomainName, _Out_ wchar_t **Buffer)
NET_API_STATUS __stdcall NetrLogonComputeServerDigest(_In_opt_ LOGONSRV_HANDLE ServerName, _In_ ULONG Rid, _In_ UCHAR *Message, _In_ ULONG MessageSize, _Out_ CHAR NewMessageDigest[16], _Out_ CHAR OldMessageDigest[16])
NTSTATUS __stdcall NetrServerReqChallenge(_In_opt_ LOGONSRV_HANDLE PrimaryName, _In_ wchar_t *ComputerName, _In_ PNETLOGON_CREDENTIAL ClientChallenge, _Out_ PNETLOGON_CREDENTIAL ServerChallenge)
NET_API_STATUS __stdcall DsrGetDcNameEx2(_In_opt_ LOGONSRV_HANDLE ComputerName, _In_opt_ wchar_t *AccountName, _In_ ULONG AllowableAccountControlBits, _In_opt_ wchar_t *DomainName, _In_opt_ GUID *DomainGuid, _In_opt_ wchar_t *SiteName, _In_ ULONG Flags, _Out_ PDOMAIN_CONTROLLER_INFOW *DomainControllerInfo)
NET_API_STATUS __stdcall DsrDeregisterDnsHostRecords(_In_opt_ LOGONSRV_HANDLE ServerName, _In_opt_ wchar_t *DnsDomainName, _In_opt_ GUID *DomainGuid, _In_opt_ GUID *DsaGuid, _In_ wchar_t *DnsHostName)
NTSTATUS __stdcall NetrServerAuthenticate(_In_opt_ LOGONSRV_HANDLE PrimaryName, _In_ wchar_t *AccountName, _In_ NETLOGON_SECURE_CHANNEL_TYPE SecureChannelType, _In_ wchar_t *ComputerName, _In_ PNETLOGON_CREDENTIAL ClientCredential, _Out_ PNETLOGON_CREDENTIAL ServerCredential)
NTSTATUS __stdcall NetrLogonSamLogonEx(_In_ handle_t ContextHandle, _In_opt_ wchar_t *LogonServer, _In_opt_ wchar_t *ComputerName, _In_ NETLOGON_LOGON_INFO_CLASS LogonLevel, _In_ PNETLOGON_LEVEL LogonInformation, _In_ NETLOGON_VALIDATION_INFO_CLASS ValidationLevel, _Out_ PNETLOGON_VALIDATION ValidationInformation, _Out_ UCHAR *Authoritative, _Inout_ ULONG *ExtraFlags)
NTSTATUS __stdcall NetrServerPasswordGet(_In_opt_ LOGONSRV_HANDLE PrimaryName, _In_ wchar_t *AccountName, _In_ NETLOGON_SECURE_CHANNEL_TYPE AccountType, _In_ wchar_t *ComputerName, _In_ PNETLOGON_AUTHENTICATOR Authenticator, _Out_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator, _Out_ PENCRYPTED_NT_OWF_PASSWORD EncryptedNtOwfPassword)
NET_API_STATUS __stdcall DsrEnumerateDomainTrusts(_In_opt_ LOGONSRV_HANDLE ServerName, _In_ ULONG Flags, _Out_ PNETLOGON_TRUSTED_DOMAIN_ARRAY Domains)
NET_API_STATUS __stdcall NetrLogonControl2(_In_opt_ LOGONSRV_HANDLE ServerName, _In_ DWORD FunctionCode, _In_ DWORD QueryLevel, _In_ PNETLOGON_CONTROL_DATA_INFORMATION Data, _Out_ PNETLOGON_CONTROL_QUERY_INFORMATION Buffer)
NTSTATUS __stdcall NetrServerPasswordSet(_In_opt_ LOGONSRV_HANDLE PrimaryName, _In_ wchar_t *AccountName, _In_ NETLOGON_SECURE_CHANNEL_TYPE SecureChannelType, _In_ wchar_t *ComputerName, _In_ PNETLOGON_AUTHENTICATOR Authenticator, _Out_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator, _In_ PENCRYPTED_NT_OWF_PASSWORD UasNewPassword)
NTSTATUS __stdcall NetrAccountDeltas(_In_opt_ LOGONSRV_HANDLE PrimaryName, _In_ wchar_t *ComputerName, _In_ PNETLOGON_AUTHENTICATOR Authenticator, _Inout_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator, _In_ PUAS_INFO_0 RecordId, _In_ DWORD Count, _In_ DWORD Level, _Out_ UCHAR *Buffer, _In_ DWORD BufferSize, _Out_ ULONG *CountReturned, _Out_ ULONG *TotalEntries, _Out_ PUAS_INFO_0 NextRecordId)
NET_API_STATUS __stdcall NetrLogonUasLogoff(_In_opt_ LOGONSRV_HANDLE ServerName, _In_ wchar_t *UserName, _In_ wchar_t *Workstation, _Out_ PNETLOGON_LOGOFF_UAS_INFO LogoffInformation)
NTSTATUS __stdcall NetrServerTrustPasswordsGet(_In_opt_ LOGONSRV_HANDLE TrustedDcName, _In_ wchar_t *AccountName, _In_ NETLOGON_SECURE_CHANNEL_TYPE SecureChannelType, _In_ wchar_t *ComputerName, _In_ PNETLOGON_AUTHENTICATOR Authenticator, _Out_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator, _Out_ PENCRYPTED_NT_OWF_PASSWORD EncryptedNewOwfPassword, _Out_ PENCRYPTED_NT_OWF_PASSWORD EncryptedOldOwfPassword)
NTSTATUS __stdcall NetrServerAuthenticate3(_In_opt_ LOGONSRV_HANDLE PrimaryName, _In_ wchar_t *AccountName, _In_ NETLOGON_SECURE_CHANNEL_TYPE SecureChannelType, _In_ wchar_t *ComputerName, _In_ PNETLOGON_CREDENTIAL ClientCredential, _Out_ PNETLOGON_CREDENTIAL ServerCredential, _Inout_ ULONG *NegotiateFlags, _Out_ ULONG *AccountRid)
NET_API_STATUS __stdcall DsrGetDcName(_In_opt_ LOGONSRV_HANDLE ComputerName, _In_opt_ wchar_t *DomainName, _In_opt_ GUID *DomainGuid, _In_opt_ GUID *SiteGuid, _In_ ULONG Flags, _Out_ PDOMAIN_CONTROLLER_INFOW *DomainControllerInfo)
NET_API_STATUS __stdcall NetrGetAnyDCName(_In_opt_ LOGONSRV_HANDLE ServerName, _In_opt_ wchar_t *DomainName, _Out_ wchar_t **Buffer)
NET_API_STATUS __stdcall NetrLogonGetTimeServiceParentDomain(_In_opt_ LOGONSRV_HANDLE ServerName, _Out_ wchar_t **DomainName, _Out_ int *PdcSameSite)
NET_API_STATUS __stdcall NetrEnumerateTrustedDomainsEx(_In_opt_ LOGONSRV_HANDLE ServerName, _Out_ PNETLOGON_TRUSTED_DOMAIN_ARRAY Domains)
#define HeapFree(x, y, z)
static const WCHAR Message[]
enum _NETLOGON_SECURE_CHANNEL_TYPE NETLOGON_SECURE_CHANNEL_TYPE
enum _NETLOGON_VALIDATION_INFO_CLASS NETLOGON_VALIDATION_INFO_CLASS
wchar_t * LOGONSRV_HANDLE
enum _SYNC_STATE SYNC_STATE
RPC_STATUS WINAPI RpcServerListen(UINT MinimumCallThreads, UINT MaxCalls, UINT DontWait)
RPC_STATUS WINAPI RpcServerRegisterIf(RPC_IF_HANDLE IfSpec, UUID *MgrTypeUuid, RPC_MGR_EPV *MgrEpv)
RPC_STATUS WINAPI RpcServerUseProtseqEpW(RPC_WSTR Protseq, UINT MaxCalls, RPC_WSTR Endpoint, LPVOID SecurityDescriptor)
#define RPC_C_LISTEN_MAX_CALLS_DEFAULT
#define midl_user_allocate
enum _NETLOGON_LOGON_INFO_CLASS NETLOGON_LOGON_INFO_CLASS
static const VARTYPE ExtraFlags[16]
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level
_Must_inspect_result_ _In_ ULONG Flags