ReactOS 0.4.15-dev-5664-g3bf4ef6
rpcserver.c
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS NetLogon Service
3 * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4 * PURPOSE: NetLogon service RPC server
5 * COPYRIGHT: Eric Kohl 2019 <eric.kohl@reactos.org>
6 */
7
8/* INCLUDES *****************************************************************/
9
10#include "precomp.h"
11
12//#include "lmerr.h"
13
15
16/* FUNCTIONS *****************************************************************/
17
21 LPVOID lpParameter)
22{
24
25 Status = RpcServerUseProtseqEpW(L"ncacn_np", 20, L"\\pipe\\netlogon", NULL);
26 if (Status != RPC_S_OK)
27 {
28 ERR("RpcServerUseProtseqEpW() failed (Status %lx)\n", Status);
29 return 0;
30 }
31
32 Status = RpcServerRegisterIf(logon_v1_0_s_ifspec, NULL, NULL);
33 if (Status != RPC_S_OK)
34 {
35 ERR("RpcServerRegisterIf() failed (Status %lx)\n", Status);
36 return 0;
37 }
38
40 if (Status != RPC_S_OK)
41 {
42 ERR("RpcServerListen() failed (Status %lx)\n", Status);
43 }
44
45 return 0;
46}
47
48
50{
52}
53
54
56{
58}
59
60
61/* Function 0 */
65 _In_opt_ LOGONSRV_HANDLE ServerName,
66 _In_ wchar_t *UserName,
67 _In_ wchar_t *Workstation,
68 _Out_ PNETLOGON_VALIDATION_UAS_INFO *ValidationInformation)
69{
71 return 0;
72}
73
74
75/* Function 1 */
79 _In_opt_ LOGONSRV_HANDLE ServerName,
80 _In_ wchar_t *UserName,
81 _In_ wchar_t *Workstation,
82 _Out_ PNETLOGON_LOGOFF_UAS_INFO LogoffInformation)
83{
85 return 0;
86}
87
88
89/* Function 2 */
93 _In_opt_ LOGONSRV_HANDLE LogonServer,
94 _In_opt_ wchar_t *ComputerName,
96 _Inout_opt_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator,
98 _In_ PNETLOGON_LEVEL LogonInformation,
100 _Out_ PNETLOGON_VALIDATION ValidationInformation,
101 _Out_ UCHAR *Authoritative)
102{
104 return 0;
105}
106
107
108/* Function 3 */
112 _In_opt_ LOGONSRV_HANDLE LogonServer,
113 _In_opt_ wchar_t *ComputerName,
114 _In_opt_ PNETLOGON_AUTHENTICATOR Authenticator,
115 _Inout_opt_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator,
117 _In_ PNETLOGON_LEVEL LogonInformation)
118{
120 return 0;
121}
122
123
124/* Function 4 */
128 _In_opt_ LOGONSRV_HANDLE PrimaryName,
129 _In_ wchar_t *ComputerName,
130 _In_ PNETLOGON_CREDENTIAL ClientChallenge,
131 _Out_ PNETLOGON_CREDENTIAL ServerChallenge)
132{
134 return 0;
135}
136
137
138/* Function 5 */
142 _In_opt_ LOGONSRV_HANDLE PrimaryName,
143 _In_ wchar_t *AccountName,
144 _In_ NETLOGON_SECURE_CHANNEL_TYPE SecureChannelType,
145 _In_ wchar_t *ComputerName,
146 _In_ PNETLOGON_CREDENTIAL ClientCredential,
147 _Out_ PNETLOGON_CREDENTIAL ServerCredential)
148{
150 return 0;
151}
152
153
154/* Function 6 */
158 _In_opt_ LOGONSRV_HANDLE PrimaryName,
159 _In_ wchar_t *AccountName,
160 _In_ NETLOGON_SECURE_CHANNEL_TYPE SecureChannelType,
161 _In_ wchar_t *ComputerName,
162 _In_ PNETLOGON_AUTHENTICATOR Authenticator,
163 _Out_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator,
164 _In_ PENCRYPTED_NT_OWF_PASSWORD UasNewPassword)
165{
167 return 0;
168}
169
170
171/* Function 7 */
175 _In_ LOGONSRV_HANDLE PrimaryName,
176 _In_ wchar_t *ComputerName,
177 _In_ PNETLOGON_AUTHENTICATOR Authenticator,
178 _Inout_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator,
179 _In_ DWORD DatabaseID,
180 _Inout_ PNLPR_MODIFIED_COUNT DomainModifiedCount,
182 _In_ DWORD PreferredMaximumLength)
183{
185 return 0;
186}
187
188
189/* Function 8 */
193 _In_ LOGONSRV_HANDLE PrimaryName,
194 _In_ wchar_t *ComputerName,
195 _In_ PNETLOGON_AUTHENTICATOR Authenticator,
196 _Inout_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator,
197 _In_ DWORD DatabaseID,
198 _Inout_ ULONG *SyncContext,
200 _In_ DWORD PreferredMaximumLength)
201{
203 return 0;
204}
205
206
207/* Function 9 */
211 _In_opt_ LOGONSRV_HANDLE PrimaryName,
212 _In_ wchar_t * ComputerName,
213 _In_ PNETLOGON_AUTHENTICATOR Authenticator,
214 _Inout_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator,
215 _In_ PUAS_INFO_0 RecordId,
220 _Out_ ULONG *CountReturned,
221 _Out_ ULONG *TotalEntries,
222 _Out_ PUAS_INFO_0 NextRecordId)
223{
225 return 0;
226}
227
228
229/* Function 10 */
233 _In_opt_ LOGONSRV_HANDLE PrimaryName,
234 _In_ wchar_t *ComputerName,
235 _In_ PNETLOGON_AUTHENTICATOR Authenticator,
236 _Inout_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator,
237 _In_ DWORD Reference,
241 _Out_ ULONG *CountReturned,
242 _Out_ ULONG *TotalEntries,
243 _Out_ ULONG *NextReference,
244 _Out_ PUAS_INFO_0 LastRecordId)
245{
247 return 0;
248}
249
250
251/* Function 11 */
255 _In_ LOGONSRV_HANDLE ServerName,
256 _In_opt_ wchar_t *DomainName,
257 _Out_ wchar_t **Buffer)
258{
260 return 0;
261}
262
263
264/* Function 12 */
268 _In_opt_ LOGONSRV_HANDLE ServerName,
269 _In_ DWORD FunctionCode,
270 _In_ DWORD QueryLevel,
272{
274 return 0;
275}
276
277
278/* Function 13 */
282 _In_opt_ LOGONSRV_HANDLE ServerName,
283 _In_opt_ wchar_t *DomainName,
284 _Out_ wchar_t **Buffer)
285{
287 return 0;
288}
289
290
291/* Function 14 */
295 _In_opt_ LOGONSRV_HANDLE ServerName,
296 _In_ DWORD FunctionCode,
297 _In_ DWORD QueryLevel,
300{
302 return 0;
303}
304
305
306/* Function 15 */
310 _In_opt_ LOGONSRV_HANDLE PrimaryName,
311 _In_ wchar_t *AccountName,
312 _In_ NETLOGON_SECURE_CHANNEL_TYPE SecureChannelType,
313 _In_ wchar_t *ComputerName,
314 _In_ PNETLOGON_CREDENTIAL ClientCredential,
315 _Out_ PNETLOGON_CREDENTIAL ServerCredential,
316 _Inout_ ULONG *NegotiateFlags)
317{
319 return 0;
320}
321
322
323/* Function 16 */
327 _In_ LOGONSRV_HANDLE PrimaryName,
328 _In_ wchar_t *ComputerName,
329 _In_ PNETLOGON_AUTHENTICATOR Authenticator,
330 _Inout_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator,
331 _In_ DWORD DatabaseID,
332 _In_ SYNC_STATE RestartState,
333 _Inout_ ULONG *SyncContext,
335 _In_ DWORD PreferredMaximumLength)
336{
338 return 0;
339}
340
341
342/* Function 17 */
346 _In_ LOGONSRV_HANDLE PrimaryName,
347 _In_ wchar_t *ComputerName,
348 _In_ PNETLOGON_AUTHENTICATOR Authenticator,
349 _Inout_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator,
350 _In_ UCHAR *ChangeLogEntry,
351 _In_ DWORD ChangeLogEntrySize,
353{
355 return 0;
356}
357
358
359/* Function 18 */
363 _In_opt_ LOGONSRV_HANDLE ServerName,
364 _In_ DWORD FunctionCode,
365 _In_ DWORD QueryLevel,
368{
370 return 0;
371}
372
373
374/* Function 19 */
378 _In_opt_ LOGONSRV_HANDLE ServerName,
379 _Out_ PDOMAIN_NAME_BUFFER DomainNameBuffer)
380{
382 return 0;
383}
384
385
386/* Function 20 */
390 _In_opt_ LOGONSRV_HANDLE ComputerName,
391 _In_opt_ wchar_t *DomainName,
392 _In_opt_ GUID *DomainGuid,
393 _In_opt_ GUID *SiteGuid,
395 _Out_ PDOMAIN_CONTROLLER_INFOW *DomainControllerInfo)
396{
398 return 0;
399}
400
401
402/* Function 21 */
406 _In_ LOGONSRV_HANDLE ServerName,
407 _In_opt_ wchar_t *ComputerName,
408 _In_ PNETLOGON_AUTHENTICATOR Authenticator,
409 _Inout_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator,
410 _In_ DWORD QueryLevel,
411 _Out_ PNETLOGON_CAPABILITIES ServerCapabilities)
412{
414 return 0;
415}
416
417
418/* Function 22 */
422 _In_opt_ LOGONSRV_HANDLE ServerName,
423 _In_ DWORD ServiceBitsOfInterest,
424 _In_ DWORD ServiceBits)
425{
427 return 0;
428}
429
430
431/* Function 23 */
435 _In_opt_ LOGONSRV_HANDLE ServerName,
436 _In_opt_ wchar_t *DomainName,
437 _Out_ ULONG *Rid)
438{
440 return 0;
441}
442
443
444/* Function 24 */
448 _In_opt_ LOGONSRV_HANDLE ServerName,
449 _In_ ULONG Rid,
451 _In_ ULONG MessageSize,
452 _Out_ CHAR NewMessageDigest[16],
453 _Out_ CHAR OldMessageDigest[16])
454{
456 return 0;
457}
458
459
460/* Function 25 */
464 _In_opt_ LOGONSRV_HANDLE ServerName,
465 _In_opt_ wchar_t *DomainName,
467 _In_ ULONG MessageSize,
468 _Out_ CHAR NewMessageDigest[16],
469 _Out_ CHAR OldMessageDigest[16])
470{
472 return 0;
473}
474
475
476/* Function 26 */
480 _In_opt_ LOGONSRV_HANDLE PrimaryName,
481 _In_ wchar_t *AccountName,
482 _In_ NETLOGON_SECURE_CHANNEL_TYPE SecureChannelType,
483 _In_ wchar_t *ComputerName,
484 _In_ PNETLOGON_CREDENTIAL ClientCredential,
485 _Out_ PNETLOGON_CREDENTIAL ServerCredential,
486 _Inout_ ULONG *NegotiateFlags,
487 _Out_ ULONG *AccountRid)
488{
490 return 0;
491}
492
493
494/* Function 27 */
498 _In_opt_ LOGONSRV_HANDLE ComputerName,
499 _In_opt_ wchar_t *DomainName,
500 _In_opt_ GUID *DomainGuid,
501 _In_opt_ wchar_t *SiteName,
503 _Out_ PDOMAIN_CONTROLLER_INFOW *DomainControllerInfo)
504{
506 return 0;
507}
508
509
510/* Function 28 */
514 _In_opt_ LOGONSRV_HANDLE ComputerName,
515 _Out_ wchar_t **SiteName)
516{
518 return 0;
519}
520
521
522/* Function 29 */
526 _In_ LOGONSRV_HANDLE ServerName,
527 _In_opt_ wchar_t *ComputerName,
528 _In_ PNETLOGON_AUTHENTICATOR Authenticator,
529 _Inout_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator,
533{
535 return 0;
536}
537
538
539/* Function 30 */
543 _In_opt_ LOGONSRV_HANDLE PrimaryName,
544 _In_ wchar_t *AccountName,
545 _In_ NETLOGON_SECURE_CHANNEL_TYPE SecureChannelType,
546 _In_ wchar_t *ComputerName,
547 _In_ PNETLOGON_AUTHENTICATOR Authenticator,
548 _Out_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator,
549 _In_ PNL_TRUST_PASSWORD ClearNewPassword)
550{
552 return 0;
553}
554
555
556/* Function 31 */
560 _In_opt_ LOGONSRV_HANDLE PrimaryName,
561 _In_ wchar_t *AccountName,
563 _In_ wchar_t *ComputerName,
564 _In_ PNETLOGON_AUTHENTICATOR Authenticator,
565 _Out_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator,
566 _Out_ PENCRYPTED_NT_OWF_PASSWORD EncryptedNtOwfPassword)
567{
569 return 0;
570}
571
572
573/* Function 32 */
577 _In_opt_ LOGONSRV_HANDLE PrimaryName,
578 _In_ wchar_t *ComputerName,
579 _In_ PNETLOGON_AUTHENTICATOR Authenticator,
580 _Out_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator,
581 _In_ UCHAR *OpaqueBuffer,
582 _In_ ULONG OpaqueBufferSize)
583{
585 return 0;
586}
587
588
589/* Function 33 */
593 _In_opt_ LOGONSRV_HANDLE ComputerName,
594 _In_ DWORD EntryCount,
595 _In_ PNL_SOCKET_ADDRESS SocketAddresses,
596 _Out_ PNL_SITE_NAME_ARRAY *SiteNames)
597{
599 return 0;
600}
601
602
603/* Function 34 */
607 _In_opt_ LOGONSRV_HANDLE ComputerName,
608 _In_opt_ wchar_t *AccountName,
609 _In_ ULONG AllowableAccountControlBits,
610 _In_opt_ wchar_t *DomainName,
611 _In_opt_ GUID *DomainGuid,
612 _In_opt_ wchar_t *SiteName,
614 _Out_ PDOMAIN_CONTROLLER_INFOW *DomainControllerInfo)
615{
617 return NERR_DCNotFound;
618}
619
620
621/* Function 35 */
625 _In_opt_ LOGONSRV_HANDLE ServerName,
626 _Out_ wchar_t **DomainName,
627 _Out_ int *PdcSameSite)
628{
630 return 0;
631}
632
633
634/* Function 36 */
638 _In_opt_ LOGONSRV_HANDLE ServerName,
640{
642 return 0;
643}
644
645
646/* Function 37 */
650 _In_opt_ LOGONSRV_HANDLE ComputerName,
651 _In_ DWORD EntryCount,
652 _In_ PNL_SOCKET_ADDRESS SocketAddresses,
653 _Out_ PNL_SITE_NAME_EX_ARRAY *SiteNames)
654{
656 return 0;
657}
658
659
660/* Function 38 */
664 _In_opt_ LOGONSRV_HANDLE ServerName,
665 _Out_ PNL_SITE_NAME_ARRAY *SiteNames)
666{
668 return 0;
669}
670
671
672/* Function 39 */
676 _In_ handle_t ContextHandle,
677 _In_opt_ wchar_t *LogonServer,
678 _In_opt_ wchar_t *ComputerName,
680 _In_ PNETLOGON_LEVEL LogonInformation,
681 _In_ NETLOGON_VALIDATION_INFO_CLASS ValidationLevel,
682 _Out_ PNETLOGON_VALIDATION ValidationInformation,
683 _Out_ UCHAR *Authoritative,
685{
687 return 0;
688}
689
690
691/* Function 40 */
695 _In_opt_ LOGONSRV_HANDLE ServerName,
698{
700 return 0;
701}
702
703
704/* Function 41 */
708 _In_opt_ LOGONSRV_HANDLE ServerName,
709 _In_opt_ wchar_t *DnsDomainName,
710 _In_opt_ GUID *DomainGuid,
711 _In_opt_ GUID *DsaGuid,
712 _In_ wchar_t *DnsHostName)
713{
715 return 0;
716}
717
718
719/* Function 42 */
723 _In_opt_ LOGONSRV_HANDLE TrustedDcName,
724 _In_ wchar_t *AccountName,
725 _In_ NETLOGON_SECURE_CHANNEL_TYPE SecureChannelType,
726 _In_ wchar_t *ComputerName,
727 _In_ PNETLOGON_AUTHENTICATOR Authenticator,
728 _Out_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator,
729 _Out_ PENCRYPTED_NT_OWF_PASSWORD EncryptedNewOwfPassword,
730 _Out_ PENCRYPTED_NT_OWF_PASSWORD EncryptedOldOwfPassword)
731{
733 return 0;
734}
735
736
737/* Function 43 */
741 _In_opt_ LOGONSRV_HANDLE ServerName,
742 _In_opt_ wchar_t *TrustedDomainName,
744 _Out_ PLSA_FOREST_TRUST_INFORMATION *ForestTrustInfo)
745{
747 return 0;
748}
749
750
751/* Function 44 */
755 _In_opt_ LOGONSRV_HANDLE ServerName,
756 _In_ wchar_t *ComputerName,
757 _In_ PNETLOGON_AUTHENTICATOR Authenticator,
758 _Out_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator,
760 _Out_ PLSA_FOREST_TRUST_INFORMATION *ForestTrustInfo)
761{
763 return 0;
764}
765
766
767/* Function 45 */
771 _In_opt_ LOGONSRV_HANDLE LogonServer,
772 _In_opt_ wchar_t *ComputerName,
773 _In_opt_ PNETLOGON_AUTHENTICATOR Authenticator,
774 _Inout_opt_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator,
776 _In_ PNETLOGON_LEVEL LogonInformation,
777 _In_ NETLOGON_VALIDATION_INFO_CLASS ValidationLevel,
778 _Out_ PNETLOGON_VALIDATION ValidationInformation,
779 _Out_ UCHAR *Authoritative,
781{
783 return 0;
784}
785
786
787/* Function 46 */
791 _In_opt_ LOGONSRV_HANDLE TrustedDcName,
792 _In_ wchar_t *AccountName,
793 _In_ NETLOGON_SECURE_CHANNEL_TYPE SecureChannelType,
794 _In_ wchar_t *ComputerName,
795 _In_ PNETLOGON_AUTHENTICATOR Authenticator,
796 _Out_ PNETLOGON_AUTHENTICATOR ReturnAuthenticator,
797 _Out_ PENCRYPTED_NT_OWF_PASSWORD EncryptedNewOwfPassword,
798 _Out_ PENCRYPTED_NT_OWF_PASSWORD EncryptedOldOwfPassword,
799 _Out_ PNL_GENERIC_RPC_DATA *TrustInfo)
800{
802 return 0;
803}
804
805/* EOF */
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
Definition: precomp.h:23
LONG NTSTATUS
Definition: precomp.h:26
DWORD WINAPI RpcThreadRoutine(LPVOID lpParameter)
Definition: rpcserver.c:20
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)
Definition: rpcserver.c:525
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)
Definition: rpcserver.c:770
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])
Definition: rpcserver.c:463
NET_API_STATUS __stdcall NetrLogonGetTrustRid(_In_opt_ LOGONSRV_HANDLE ServerName, _In_opt_ wchar_t *DomainName, _Out_ ULONG *Rid)
Definition: rpcserver.c:434
NTSTATUS __stdcall NetrLogonSetServiceBits(_In_opt_ LOGONSRV_HANDLE ServerName, _In_ DWORD ServiceBitsOfInterest, _In_ DWORD ServiceBits)
Definition: rpcserver.c:421
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)
Definition: rpcserver.c:174
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)
Definition: rpcserver.c:362
NET_API_STATUS __stdcall DsrGetForestTrustInformation(_In_opt_ LOGONSRV_HANDLE ServerName, _In_opt_ wchar_t *TrustedDomainName, _In_ DWORD Flags, _Out_ PLSA_FOREST_TRUST_INFORMATION *ForestTrustInfo)
Definition: rpcserver.c:740
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)
Definition: rpcserver.c:92
NET_API_STATUS __stdcall DsrAddressToSiteNamesW(_In_opt_ LOGONSRV_HANDLE ComputerName, _In_ DWORD EntryCount, _In_ PNL_SOCKET_ADDRESS SocketAddresses, _Out_ PNL_SITE_NAME_ARRAY *SiteNames)
Definition: rpcserver.c:592
NET_API_STATUS __stdcall NetrLogonControl(_In_opt_ LOGONSRV_HANDLE ServerName, _In_ DWORD FunctionCode, _In_ DWORD QueryLevel, _Out_ PNETLOGON_CONTROL_QUERY_INFORMATION Buffer)
Definition: rpcserver.c:267
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)
Definition: rpcserver.c:542
NTSTATUS __stdcall NetrEnumerateTrustedDomains(_In_opt_ LOGONSRV_HANDLE ServerName, _Out_ PDOMAIN_NAME_BUFFER DomainNameBuffer)
Definition: rpcserver.c:377
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)
Definition: rpcserver.c:576
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)
Definition: rpcserver.c:649
NET_API_STATUS __stdcall DsrGetSiteName(_In_opt_ LOGONSRV_HANDLE ComputerName, _Out_ wchar_t **SiteName)
Definition: rpcserver.c:513
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)
Definition: rpcserver.c:790
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)
Definition: rpcserver.c:405
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)
Definition: rpcserver.c:754
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)
Definition: rpcserver.c:111
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)
Definition: rpcserver.c:309
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)
Definition: rpcserver.c:232
NET_API_STATUS __stdcall DsrGetDcSiteCoverageW(_In_opt_ LOGONSRV_HANDLE ServerName, _Out_ PNL_SITE_NAME_ARRAY *SiteNames)
Definition: rpcserver.c:663
NET_API_STATUS __stdcall NetrLogonUasLogon(_In_opt_ LOGONSRV_HANDLE ServerName, _In_ wchar_t *UserName, _In_ wchar_t *Workstation, _Out_ PNETLOGON_VALIDATION_UAS_INFO *ValidationInformation)
Definition: rpcserver.c:64
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)
Definition: rpcserver.c:345
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)
Definition: rpcserver.c:326
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)
Definition: rpcserver.c:497
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)
Definition: rpcserver.c:192
NET_API_STATUS __stdcall NetrGetDCName(_In_ LOGONSRV_HANDLE ServerName, _In_opt_ wchar_t *DomainName, _Out_ wchar_t **Buffer)
Definition: rpcserver.c:254
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])
Definition: rpcserver.c:447
NTSTATUS __stdcall NetrServerReqChallenge(_In_opt_ LOGONSRV_HANDLE PrimaryName, _In_ wchar_t *ComputerName, _In_ PNETLOGON_CREDENTIAL ClientChallenge, _Out_ PNETLOGON_CREDENTIAL ServerChallenge)
Definition: rpcserver.c:127
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)
Definition: rpcserver.c:606
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)
Definition: rpcserver.c:707
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)
Definition: rpcserver.c:141
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)
Definition: rpcserver.c:675
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)
Definition: rpcserver.c:559
NET_API_STATUS __stdcall DsrEnumerateDomainTrusts(_In_opt_ LOGONSRV_HANDLE ServerName, _In_ ULONG Flags, _Out_ PNETLOGON_TRUSTED_DOMAIN_ARRAY Domains)
Definition: rpcserver.c:694
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)
Definition: rpcserver.c:294
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)
Definition: rpcserver.c:157
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)
Definition: rpcserver.c:210
NET_API_STATUS __stdcall NetrLogonUasLogoff(_In_opt_ LOGONSRV_HANDLE ServerName, _In_ wchar_t *UserName, _In_ wchar_t *Workstation, _Out_ PNETLOGON_LOGOFF_UAS_INFO LogoffInformation)
Definition: rpcserver.c:78
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)
Definition: rpcserver.c:722
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)
Definition: rpcserver.c:479
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)
Definition: rpcserver.c:389
NET_API_STATUS __stdcall NetrGetAnyDCName(_In_opt_ LOGONSRV_HANDLE ServerName, _In_opt_ wchar_t *DomainName, _Out_ wchar_t **Buffer)
Definition: rpcserver.c:281
NET_API_STATUS __stdcall NetrLogonGetTimeServiceParentDomain(_In_opt_ LOGONSRV_HANDLE ServerName, _Out_ wchar_t **DomainName, _Out_ int *PdcSameSite)
Definition: rpcserver.c:624
NET_API_STATUS __stdcall NetrEnumerateTrustedDomainsEx(_In_opt_ LOGONSRV_HANDLE ServerName, _Out_ PNETLOGON_TRUSTED_DOMAIN_ARRAY Domains)
Definition: rpcserver.c:637
#define UNIMPLEMENTED
Definition: debug.h:115
#define ERR(fmt,...)
Definition: debug.h:110
Definition: bufpool.h:45
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
#define GetProcessHeap()
Definition: compat.h:736
#define HeapAlloc
Definition: compat.h:733
#define HeapFree(x, y, z)
Definition: compat.h:735
#define HEAP_ZERO_MEMORY
Definition: compat.h:134
static const WCHAR Message[]
Definition: register.c:74
unsigned long DWORD
Definition: ntddk_ex.h:95
Status
Definition: gdiplustypes.h:25
GLenum GLsizei len
Definition: glext.h:6722
#define NERR_DCNotFound
Definition: lmerr.h:205
unsigned int ULONG
Definition: retypes.h:1
static PVOID ptr
Definition: dispmode.c:27
DWORD NET_API_STATUS
Definition: ms-dtyp.idl:91
#define _Inout_
Definition: ms_sal.h:378
#define _Inout_opt_
Definition: ms_sal.h:379
#define _Out_
Definition: ms_sal.h:345
#define _In_
Definition: ms_sal.h:308
#define _In_opt_
Definition: ms_sal.h:309
enum _NETLOGON_SECURE_CHANNEL_TYPE NETLOGON_SECURE_CHANNEL_TYPE
enum _NETLOGON_VALIDATION_INFO_CLASS NETLOGON_VALIDATION_INFO_CLASS
wchar_t * LOGONSRV_HANDLE
Definition: netlogon.idl:39
enum _SYNC_STATE SYNC_STATE
int Count
Definition: noreturn.cpp:7
#define L(x)
Definition: ntvdm.h:50
RPC_STATUS WINAPI RpcServerListen(UINT MinimumCallThreads, UINT MaxCalls, UINT DontWait)
Definition: rpc_server.c:1520
RPC_STATUS WINAPI RpcServerRegisterIf(RPC_IF_HANDLE IfSpec, UUID *MgrTypeUuid, RPC_MGR_EPV *MgrEpv)
Definition: rpc_server.c:1116
RPC_STATUS WINAPI RpcServerUseProtseqEpW(RPC_WSTR Protseq, UINT MaxCalls, RPC_WSTR Endpoint, LPVOID SecurityDescriptor)
Definition: rpc_server.c:927
#define RPC_C_LISTEN_MAX_CALLS_DEFAULT
Definition: rpcdce.h:122
#define RPC_S_OK
Definition: rpcnterr.h:22
#define midl_user_free
Definition: rpc.h:45
#define __RPC_FAR
Definition: rpc.h:56
long RPC_STATUS
Definition: rpc.h:52
#define __RPC_USER
Definition: rpc.h:65
#define midl_user_allocate
Definition: rpc.h:44
enum _NETLOGON_LOGON_INFO_CLASS NETLOGON_LOGON_INFO_CLASS
ULONG_PTR SIZE_T
Definition: typedefs.h:80
#define __stdcall
Definition: typedefs.h:25
static const VARTYPE ExtraFlags[16]
Definition: vartest.c:689
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
Definition: wdfmemory.h:254
#define WINAPI
Definition: msvc.h:6
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level
Definition: wmitypes.h:56
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
unsigned char UCHAR
Definition: xmlstorage.h:181
char CHAR
Definition: xmlstorage.h:175