Branching for 0.3.15 release after two days of no response from a certain sphere...
[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 #define WIN32_NO_STATUS
25 #define _INC_WINDOWS
26 #define COM_NO_WINDOWS_H
27
28 #include <stdarg.h>
29
30 #define COBJMACROS
31 #define NONAMELESSUNION
32
33 #include <windef.h>
34 #include <winbase.h>
35 //#include "winuser.h"
36
37 #include <objbase.h>
38 #include <iads.h>
39 //#include "adshlp.h"
40
41 //#include "wine/unicode.h"
42 #include <wine/debug.h>
43
44 WINE_DEFAULT_DEBUG_CHANNEL(activeds);
45
46 /*****************************************************
47 * DllMain
48 */
49 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
50 {
51 TRACE("(%p, %d, %p)\n",hinstDLL, fdwReason, lpvReserved);
52
53 switch(fdwReason)
54 {
55 case DLL_WINE_PREATTACH:
56 return FALSE; /* prefer native version */
57 case DLL_PROCESS_ATTACH:
58 DisableThreadLibraryCalls( hinstDLL );
59 break;
60 }
61 return TRUE;
62 }
63
64 /*****************************************************
65 * ADsGetObject [ACTIVEDS.3]
66 */
67 HRESULT WINAPI ADsGetObject(LPCWSTR lpszPathName, REFIID riid, VOID** ppObject)
68 {
69 FIXME("(%s)->(%s,%p)!stub\n",debugstr_w(lpszPathName), debugstr_guid(riid), ppObject);
70 return E_NOTIMPL;
71 }
72
73 /*****************************************************
74 * ADsBuildEnumerator [ACTIVEDS.4]
75 */
76 HRESULT WINAPI ADsBuildEnumerator(IADsContainer * pADsContainer, IEnumVARIANT** ppEnumVariant)
77 {
78 FIXME("(%p)->(%p)!stub\n",pADsContainer, ppEnumVariant);
79 return E_NOTIMPL;
80 }
81
82 /*****************************************************
83 * ADsEnumerateNext [ACTIVEDS.6]
84 */
85 HRESULT WINAPI ADsEnumerateNext(IEnumVARIANT* pEnumVariant, ULONG cElements, VARIANT* pvar, ULONG * pcElementsFetched)
86 {
87 FIXME("(%p)->(%u, %p, %p)!stub\n",pEnumVariant, cElements, pvar, pcElementsFetched);
88 return E_NOTIMPL;
89 }
90
91 /*****************************************************
92 * ADsOpenObject [ACTIVEDS.9]
93 */
94 HRESULT WINAPI ADsOpenObject(LPCWSTR lpszPathName, LPCWSTR lpszUserName, LPCWSTR lpszPassword, DWORD dwReserved, REFIID riid, VOID** ppObject)
95 {
96 FIXME("(%s,%s,%u,%p,%p)!stub\n", debugstr_w(lpszPathName),
97 debugstr_w(lpszUserName), dwReserved, debugstr_guid(riid), ppObject);
98 return E_NOTIMPL;
99 }
100
101 /*****************************************************
102 * ADsGetLastError [ACTIVEDS.13]
103 */
104 HRESULT WINAPI ADsGetLastError(LPDWORD perror, LPWSTR errorbuf, DWORD errorbuflen, LPWSTR namebuf, DWORD namebuflen)
105 {
106 FIXME("(%p,%p,%d,%p,%d)!stub\n", perror, errorbuf, errorbuflen, namebuf, namebuflen);
107 return E_NOTIMPL;
108 }
109
110 /*****************************************************
111 * FreeADsMem [ACTIVEDS.15]
112 */
113 BOOL WINAPI FreeADsMem(LPVOID pMem)
114 {
115 FIXME("(%p)!stub\n",pMem);
116 return FALSE;
117 }