ntdll/tests: Fix exception test for CPUs that do segment limit checks differently.
[wine] / dlls / 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 <stdarg.h>
25
26 #define COBJMACROS
27 #define NONAMELESSUNION
28
29 #include "windef.h"
30 #include "winbase.h"
31 #include "winuser.h"
32 #include "winreg.h"
33 #include "winver.h"
34 #include "winnls.h"
35
36 #include "objbase.h"
37 #include "iads.h"
38 #include "adshlp.h"
39
40 #include "wine/unicode.h"
41 #include "wine/debug.h"
42
43 WINE_DEFAULT_DEBUG_CHANNEL(activeds);
44
45 /*****************************************************
46  * DllMain
47  */
48 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
49 {
50     TRACE("(%p, %d, %p)\n",hinstDLL, fdwReason, lpvReserved);
51
52     switch(fdwReason)
53     {
54     case DLL_WINE_PREATTACH:
55         return FALSE;  /* prefer native version */
56     case DLL_PROCESS_ATTACH:
57         DisableThreadLibraryCalls( hinstDLL );
58         break;
59     }
60     return TRUE;
61 }
62
63 /*****************************************************
64  * ADsGetObject     [ACTIVEDS.3]
65  */
66 HRESULT WINAPI ADsGetObject(LPCWSTR lpszPathName, REFIID riid, VOID** ppObject)
67 {
68     FIXME("(%s)->(%s,%p)!stub\n",debugstr_w(lpszPathName), debugstr_guid(riid), ppObject);
69     return E_NOTIMPL;
70 }
71
72 /*****************************************************
73  * ADsBuildEnumerator    [ACTIVEDS.4]
74  */
75 HRESULT WINAPI ADsBuildEnumerator(IADsContainer * pADsContainer, IEnumVARIANT** ppEnumVariant)
76 {
77     FIXME("(%p)->(%p)!stub\n",pADsContainer, ppEnumVariant);
78     return E_NOTIMPL;
79 }
80
81 /*****************************************************
82  * ADsEnumerateNext     [ACTIVEDS.6]
83  */
84 HRESULT WINAPI ADsEnumerateNext(IEnumVARIANT* pEnumVariant, ULONG cElements, VARIANT* pvar, ULONG * pcElementsFetched)
85 {
86     FIXME("(%p)->(%u, %p, %p)!stub\n",pEnumVariant, cElements, pvar, pcElementsFetched);
87     return E_NOTIMPL;
88 }
89
90 /*****************************************************
91  * ADsOpenObject     [ACTIVEDS.9]
92  */
93 HRESULT WINAPI ADsOpenObject(LPCWSTR lpszPathName, LPCWSTR lpszUserName, LPCWSTR lpszPassword, DWORD dwReserved, REFIID riid, VOID** ppObject)
94 {
95     FIXME("(%s,%s,%u,%p,%p)!stub\n", debugstr_w(lpszPathName),
96           debugstr_w(lpszUserName), dwReserved, debugstr_guid(riid), ppObject);
97     return E_NOTIMPL;
98 }
99
100 /*****************************************************
101  * FreeADsMem             [ACTIVEDS.15]
102  */
103 BOOL WINAPI FreeADsMem(LPVOID pMem)
104 {
105     FIXME("(%p)!stub\n",pMem);
106     return FALSE;
107 }