33 DWORD LocalTotalBytesAvailable;
34 DWORD LocalTotalBytesReturned;
35 DWORD LocalReturnedEntryCount;
36 PVOID LocalSortedBuffer;
40 TRACE(
"NetQueryDisplayInformation(%s, %ld, %ld, %ld, %ld, %p, %p)\n",
42 PreferredMaximumLength, ReturnedEntryCount, SortedBuffer);
44 *ReturnedEntryCount = 0;
65 if (ServerName !=
NULL)
75 ERR(
"SamConnect failed (Status %08lx)\n",
Status);
82 (ServerName !=
NULL) ? &ServerNameString :
NULL,
87 ERR(
"OpenAccountDomain failed (Status %08lx)\n",
Status);
97 PreferredMaximumLength,
98 &LocalTotalBytesAvailable,
99 &LocalTotalBytesReturned,
100 &LocalReturnedEntryCount,
104 ERR(
"SamQueryDisplayInformation failed (Status %08lx)\n",
Status);
112 if (DomainHandle !=
NULL)
115 if (ServerHandle !=
NULL)
137 TRACE(
"NetGetDisplayInformationIndex(%s %ld %s %p)\n",
158 if (ServerName !=
NULL)
168 ERR(
"SamConnect failed (Status %08lx)\n",
Status);
175 (ServerName !=
NULL) ? &ServerNameString :
NULL,
180 ERR(
"OpenAccountDomain failed (Status %08lx)\n",
Status);
194 ERR(
"SamGetDisplayEnumerationIndex failed (Status %08lx)\n",
Status);
199 if (DomainHandle !=
NULL)
202 if (ServerHandle !=
NULL)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define NT_SUCCESS(StatCode)
NET_API_STATUS WINAPI NetQueryDisplayInformation(_In_ LPCWSTR ServerName, _In_ DWORD Level, _In_ DWORD Index, _In_ DWORD EntriesRequested, _In_ DWORD PreferredMaximumLength, _Out_ LPDWORD ReturnedEntryCount, _Out_ PVOID *SortedBuffer)
NET_API_STATUS WINAPI NetGetDisplayInformationIndex(_In_ LPCWSTR ServerName, _In_ DWORD Level, _In_ LPCWSTR Prefix, _Out_ LPDWORD Index)
NET_API_STATUS WINAPI NetpNtStatusToApiStatus(_In_ NTSTATUS Status)
NTSTATUS OpenAccountDomain(IN SAM_HANDLE ServerHandle, IN PUNICODE_STRING ServerName, IN ULONG DesiredAccess, OUT PSAM_HANDLE DomainHandle)
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
enum _DOMAIN_DISPLAY_INFORMATION DOMAIN_DISPLAY_INFORMATION
#define SAM_SERVER_LOOKUP_DOMAIN
#define SAM_SERVER_CONNECT
#define DOMAIN_LIST_ACCOUNTS
NTSTATUS NTAPI SamGetDisplayEnumerationIndex(IN SAM_HANDLE DomainHandle, IN DOMAIN_DISPLAY_INFORMATION DisplayInformation, IN PUNICODE_STRING Prefix, OUT PULONG Index)
NTSTATUS NTAPI SamConnect(IN OUT PUNICODE_STRING ServerName OPTIONAL, OUT PSAM_HANDLE ServerHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes)
NTSTATUS NTAPI SamCloseHandle(IN SAM_HANDLE SamHandle)
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)
_In_ WDFCOLLECTION _In_ ULONG Index
#define ERROR_INVALID_LEVEL
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level
_In_ __drv_aliasesMem PSTRING Prefix