[NETAPI32]
[reactos.git] / reactos / dll / win32 / netapi32 / ds.c
1 /*
2 * Copyright 2005 Paul Vriens
3 *
4 * netapi32 directory service functions
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20
21 #include "netapi32.h"
22
23 #include <dsrole.h>
24 #include <dsgetdc.h>
25
26 WINE_DEFAULT_DEBUG_CHANNEL(ds);
27
28 DWORD WINAPI DsGetDcNameW(LPCWSTR ComputerName, LPCWSTR AvoidDCName,
29 GUID* DomainGuid, LPCWSTR SiteName, ULONG Flags,
30 PDOMAIN_CONTROLLER_INFOW *DomainControllerInfo)
31 {
32 FIXME("(%s, %s, %s, %s, %08x, %p): stub\n", debugstr_w(ComputerName),
33 debugstr_w(AvoidDCName), debugstr_guid(DomainGuid),
34 debugstr_w(SiteName), Flags, DomainControllerInfo);
35 return ERROR_CALL_NOT_IMPLEMENTED;
36 }
37
38 DWORD WINAPI DsGetDcNameA(LPCSTR ComputerName, LPCSTR AvoidDCName,
39 GUID* DomainGuid, LPCSTR SiteName, ULONG Flags,
40 PDOMAIN_CONTROLLER_INFOA *DomainControllerInfo)
41 {
42 FIXME("(%s, %s, %s, %s, %08x, %p): stub\n", debugstr_a(ComputerName),
43 debugstr_a(AvoidDCName), debugstr_guid(DomainGuid),
44 debugstr_a(SiteName), Flags, DomainControllerInfo);
45 return ERROR_CALL_NOT_IMPLEMENTED;
46 }
47
48 DWORD WINAPI DsGetSiteNameW(LPCWSTR ComputerName, LPWSTR *SiteName)
49 {
50 FIXME("(%s, %p): stub\n", debugstr_w(ComputerName), SiteName);
51 return ERROR_CALL_NOT_IMPLEMENTED;
52 }
53
54 /************************************************************
55 * DsRoleFreeMemory (NETAPI32.@)
56 *
57 * PARAMS
58 * Buffer [I] Pointer to the to-be-freed buffer.
59 *
60 * RETURNS
61 * Nothing
62 */
63 VOID WINAPI DsRoleFreeMemory(PVOID Buffer)
64 {
65 TRACE("(%p)\n", Buffer);
66 HeapFree(GetProcessHeap(), 0, Buffer);
67 }
68
69 /************************************************************
70 * DsEnumerateDomainTrustsA (NETAPI32.@)
71 */
72
73 DWORD WINAPI DsEnumerateDomainTrustsA(LPSTR ServerName, ULONG Flags, PDS_DOMAIN_TRUSTSA* Domains, PULONG DomainCount)
74 {
75 FIXME("(%s, %x, %p, %p): stub\n", ServerName, Flags, Domains, DomainCount);
76 return ERROR_NO_LOGON_SERVERS;
77 }
78
79 /************************************************************
80 * DsEnumerateDomainTrustsW (NETAPI32.@)
81 */
82
83 DWORD WINAPI DsEnumerateDomainTrustsW(LPWSTR ServerName, ULONG Flags, PDS_DOMAIN_TRUSTSW* Domains, PULONG DomainCount)
84 {
85 FIXME("(%s, %x, %p, %p): stub\n", debugstr_w(ServerName), Flags, Domains, DomainCount);
86 return ERROR_NO_LOGON_SERVERS;
87 }