28{
33 DWORD LocalTotalBytesAvailable;
34 DWORD LocalTotalBytesReturned;
35 DWORD LocalReturnedEntryCount;
36 PVOID LocalSortedBuffer;
39
40 TRACE(
"NetQueryDisplayInformation(%s, %ld, %ld, %ld, %ld, %p, %p)\n",
42 PreferredMaximumLength, ReturnedEntryCount, SortedBuffer);
43
44 *ReturnedEntryCount = 0;
46
48 {
49 case 1:
51 break;
52
53 case 2:
55 break;
56
57 case 3:
59 break;
60
61 default:
63 }
64
65 if (ServerName !=
NULL)
67
68
70 &ServerHandle,
74 {
75 ERR(
"SamConnect failed (Status %08lx)\n",
Status);
77 goto done;
78 }
79
80
82 (ServerName !=
NULL) ? &ServerNameString :
NULL,
84 &DomainHandle);
86 {
87 ERR(
"OpenAccountDomain failed (Status %08lx)\n",
Status);
89 goto done;
90 }
91
92
94 DisplayInformation,
96 EntriesRequested,
97 PreferredMaximumLength,
98 &LocalTotalBytesAvailable,
99 &LocalTotalBytesReturned,
100 &LocalReturnedEntryCount,
101 &LocalSortedBuffer);
103 {
104 ERR(
"SamQueryDisplayInformation failed (Status %08lx)\n",
Status);
106 goto done;
107 }
108
109
110
111done:
112 if (DomainHandle !=
NULL)
114
115 if (ServerHandle !=
NULL)
117
118 return ApiStatus;
119}
NTSTATUS NTAPI SamQueryDisplayInformation(IN SAM_HANDLE DomainHandle, IN DOMAIN_DISPLAY_INFORMATION DisplayInformation, IN ULONG Index, IN ULONG EntryCount, IN ULONG PreferredMaximumLength, OUT PULONG TotalAvailable, OUT PULONG TotalReturned, OUT PULONG ReturnedEntryCount, OUT PVOID *SortedBuffer)