[SHELL/EXPERIMENTS]
[reactos.git] / dll / win32 / activeds / activeds_main.c
1 /*
2 * Implementation of the Active Directory Service Interface
3 *
4 * Copyright 2005 Detlef Riekenberg
5 *
6 * This file contains only stubs to get the printui.dll up and running
7 * activeds.dll is much much more than this
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
13 *
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 */
23
24 #include "precomp.h"
25
26 #include <iads.h>
27
28 #include <wine/debug.h>
29 WINE_DEFAULT_DEBUG_CHANNEL(activeds);
30
31 /*****************************************************
32 * DllMain
33 */
34 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
35 {
36 TRACE("(%p, %d, %p)\n",hinstDLL, fdwReason, lpvReserved);
37
38 switch(fdwReason)
39 {
40 case DLL_WINE_PREATTACH:
41 return FALSE; /* prefer native version */
42 case DLL_PROCESS_ATTACH:
43 DisableThreadLibraryCalls( hinstDLL );
44 break;
45 }
46 return TRUE;
47 }
48
49 /*****************************************************
50 * ADsGetObject [ACTIVEDS.3]
51 */
52 HRESULT WINAPI ADsGetObject(LPCWSTR lpszPathName, REFIID riid, VOID** ppObject)
53 {
54 FIXME("(%s)->(%s,%p)!stub\n",debugstr_w(lpszPathName), debugstr_guid(riid), ppObject);
55 return E_NOTIMPL;
56 }
57
58 /*****************************************************
59 * ADsBuildEnumerator [ACTIVEDS.4]
60 */
61 HRESULT WINAPI ADsBuildEnumerator(IADsContainer * pADsContainer, IEnumVARIANT** ppEnumVariant)
62 {
63 FIXME("(%p)->(%p)!stub\n",pADsContainer, ppEnumVariant);
64 return E_NOTIMPL;
65 }
66
67 /*****************************************************
68 * ADsFreeEnumerator [ACTIVEDS.5]
69 */
70 HRESULT WINAPI ADsFreeEnumerator(IEnumVARIANT* pEnumVariant)
71 {
72 FIXME("(%p)!stub\n",pEnumVariant);
73 return E_NOTIMPL;
74 }
75
76 /*****************************************************
77 * ADsEnumerateNext [ACTIVEDS.6]
78 */
79 HRESULT WINAPI ADsEnumerateNext(IEnumVARIANT* pEnumVariant, ULONG cElements, VARIANT* pvar, ULONG * pcElementsFetched)
80 {
81 FIXME("(%p)->(%u, %p, %p)!stub\n",pEnumVariant, cElements, pvar, pcElementsFetched);
82 return E_NOTIMPL;
83 }
84
85 /*****************************************************
86 * ADsBuildVarArrayStr [ACTIVEDS.7]
87 */
88 HRESULT WINAPI ADsBuildVarArrayStr(LPWSTR *lppPathNames, DWORD dwPathNames, VARIANT* pvar)
89 {
90 FIXME("(%p, %d, %p)!stub\n",*lppPathNames, dwPathNames, pvar);
91 return E_NOTIMPL;
92 }
93
94 /*****************************************************
95 * ADsBuildVarArrayInt [ACTIVEDS.8]
96 */
97 HRESULT WINAPI ADsBuildVarArrayInt(LPDWORD lpdwObjectTypes, DWORD dwObjectTypes, VARIANT* pvar)
98 {
99 FIXME("(%p, %d, %p)!stub\n",lpdwObjectTypes, dwObjectTypes, pvar);
100 return E_NOTIMPL;
101 }
102
103 /*****************************************************
104 * ADsOpenObject [ACTIVEDS.9]
105 */
106 HRESULT WINAPI ADsOpenObject(LPCWSTR lpszPathName, LPCWSTR lpszUserName, LPCWSTR lpszPassword, DWORD dwReserved, REFIID riid, VOID** ppObject)
107 {
108 FIXME("(%s,%s,%u,%s,%p)!stub\n", debugstr_w(lpszPathName),
109 debugstr_w(lpszUserName), dwReserved, debugstr_guid(riid), ppObject);
110 return E_NOTIMPL;
111 }
112
113 /*****************************************************
114 * ADsSetLastError [ACTIVEDS.12]
115 */
116 VOID WINAPI ADsSetLastError(DWORD dwErr, LPWSTR pszError, LPWSTR pszProvider)
117 {
118 FIXME("(%d,%p,%p)!stub\n", dwErr, pszError, pszProvider);
119 }
120
121 /*****************************************************
122 * ADsGetLastError [ACTIVEDS.13]
123 */
124 HRESULT WINAPI ADsGetLastError(LPDWORD perror, LPWSTR errorbuf, DWORD errorbuflen, LPWSTR namebuf, DWORD namebuflen)
125 {
126 FIXME("(%p,%p,%d,%p,%d)!stub\n", perror, errorbuf, errorbuflen, namebuf, namebuflen);
127 return E_NOTIMPL;
128 }
129
130 /*****************************************************
131 * AllocADsMem [ACTIVEDS.14]
132 */
133 LPVOID WINAPI AllocADsMem(DWORD cb)
134 {
135 FIXME("(%d)!stub\n",cb);
136 return NULL;
137 }
138
139 /*****************************************************
140 * FreeADsMem [ACTIVEDS.15]
141 */
142 BOOL WINAPI FreeADsMem(LPVOID pMem)
143 {
144 FIXME("(%p)!stub\n",pMem);
145 return FALSE;
146 }
147
148 /*****************************************************
149 * ReallocADsMem [ACTIVEDS.16]
150 */
151 LPVOID WINAPI ReallocADsMem(LPVOID pOldMem, DWORD cbOld, DWORD cbNew)
152 {
153 FIXME("(%p,%d,%d)!stub\n", pOldMem, cbOld, cbNew);
154 return NULL;
155 }
156
157 /*****************************************************
158 * AllocADsStr [ACTIVEDS.17]
159 */
160 LPWSTR WINAPI AllocADsStr(LPWSTR pStr)
161 {
162 FIXME("(%p)!stub\n",pStr);
163 return NULL;
164 }
165
166 /*****************************************************
167 * FreeADsStr [ACTIVEDS.18]
168 */
169 BOOL WINAPI FreeADsStr(LPWSTR pStr)
170 {
171 FIXME("(%p)!stub\n",pStr);
172 return FALSE;
173 }
174
175 /*****************************************************
176 * ReallocADsStr [ACTIVEDS.19]
177 */
178 BOOL WINAPI ReallocADsStr(LPWSTR *ppStr, LPWSTR pStr)
179 {
180 FIXME("(%p,%p)!stub\n",*ppStr, pStr);
181 return FALSE;
182 }
183
184 /*****************************************************
185 * ADsEncodeBinaryData [ACTIVEDS.20]
186 */
187 HRESULT WINAPI ADsEncodeBinaryData(PBYTE pbSrcData, DWORD dwSrcLen, LPWSTR *ppszDestData)
188 {
189 FIXME("(%p,%d,%p)!stub\n", pbSrcData, dwSrcLen, *ppszDestData);
190 return E_NOTIMPL;
191 }