ReactOS 0.4.16-dev-983-g23ad936
activeds_main.c
Go to the documentation of this file.
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
28#include "windef.h"
29#include "winbase.h"
30#include "winuser.h"
31
32#include "objbase.h"
33#include "iads.h"
34#include "adshlp.h"
35
36#include "wine/debug.h"
37
39
40/*****************************************************
41 * DllMain
42 */
44{
45 TRACE("(%p, %d, %p)\n",hinstDLL, fdwReason, lpvReserved);
46
47 switch(fdwReason)
48 {
49#ifndef __REACTOS__
50 case DLL_WINE_PREATTACH:
51 return FALSE; /* prefer native version */
52#endif
54 DisableThreadLibraryCalls( hinstDLL );
55 break;
56 }
57 return TRUE;
58}
59
60/*****************************************************
61 * ADsGetObject [ACTIVEDS.3]
62 */
63HRESULT WINAPI ADsGetObject(LPCWSTR lpszPathName, REFIID riid, VOID** ppObject)
64{
65 FIXME("(%s)->(%s,%p)!stub\n",debugstr_w(lpszPathName), debugstr_guid(riid), ppObject);
66 return E_NOTIMPL;
67}
68
69/*****************************************************
70 * ADsBuildEnumerator [ACTIVEDS.4]
71 */
73{
74 FIXME("(%p)->(%p)!stub\n",pADsContainer, ppEnumVariant);
75 return E_NOTIMPL;
76}
77
78/*****************************************************
79 * ADsFreeEnumerator [ACTIVEDS.5]
80 */
82{
83 FIXME("(%p)!stub\n",pEnumVariant);
84 return E_NOTIMPL;
85}
86
87/*****************************************************
88 * ADsEnumerateNext [ACTIVEDS.6]
89 */
90HRESULT WINAPI ADsEnumerateNext(IEnumVARIANT* pEnumVariant, ULONG cElements, VARIANT* pvar, ULONG * pcElementsFetched)
91{
92 FIXME("(%p)->(%u, %p, %p)!stub\n",pEnumVariant, cElements, pvar, pcElementsFetched);
93 return E_NOTIMPL;
94}
95
96/*****************************************************
97 * ADsBuildVarArrayStr [ACTIVEDS.7]
98 */
99HRESULT WINAPI ADsBuildVarArrayStr(LPWSTR *lppPathNames, DWORD dwPathNames, VARIANT* pvar)
100{
101 FIXME("(%p, %d, %p)!stub\n",*lppPathNames, dwPathNames, pvar);
102 return E_NOTIMPL;
103}
104
105/*****************************************************
106 * ADsBuildVarArrayInt [ACTIVEDS.8]
107 */
108HRESULT WINAPI ADsBuildVarArrayInt(LPDWORD lpdwObjectTypes, DWORD dwObjectTypes, VARIANT* pvar)
109{
110 FIXME("(%p, %d, %p)!stub\n",lpdwObjectTypes, dwObjectTypes, pvar);
111 return E_NOTIMPL;
112}
113
114/*****************************************************
115 * ADsOpenObject [ACTIVEDS.9]
116 */
118{
119 FIXME("(%s,%s,%u,%s,%p)!stub\n", debugstr_w(lpszPathName),
120 debugstr_w(lpszUserName), dwReserved, debugstr_guid(riid), ppObject);
121 return E_NOTIMPL;
122}
123
124/*****************************************************
125 * ADsSetLastError [ACTIVEDS.12]
126 */
128{
129 FIXME("(%d,%p,%p)!stub\n", dwErr, pszError, pszProvider);
130}
131
132/*****************************************************
133 * ADsGetLastError [ACTIVEDS.13]
134 */
135HRESULT WINAPI ADsGetLastError(LPDWORD perror, LPWSTR errorbuf, DWORD errorbuflen, LPWSTR namebuf, DWORD namebuflen)
136{
137 FIXME("(%p,%p,%d,%p,%d)!stub\n", perror, errorbuf, errorbuflen, namebuf, namebuflen);
138 return E_NOTIMPL;
139}
140
141/*****************************************************
142 * AllocADsMem [ACTIVEDS.14]
143 */
145{
146 FIXME("(%d)!stub\n",cb);
147 return NULL;
148}
149
150/*****************************************************
151 * FreeADsMem [ACTIVEDS.15]
152 */
154{
155 FIXME("(%p)!stub\n",pMem);
156 return FALSE;
157}
158
159/*****************************************************
160 * ReallocADsMem [ACTIVEDS.16]
161 */
163{
164 FIXME("(%p,%d,%d)!stub\n", pOldMem, cbOld, cbNew);
165 return NULL;
166}
167
168/*****************************************************
169 * AllocADsStr [ACTIVEDS.17]
170 */
172{
173 FIXME("(%p)!stub\n",pStr);
174 return NULL;
175}
176
177/*****************************************************
178 * FreeADsStr [ACTIVEDS.18]
179 */
181{
182 FIXME("(%p)!stub\n",pStr);
183 return FALSE;
184}
185
186/*****************************************************
187 * ReallocADsStr [ACTIVEDS.19]
188 */
190{
191 FIXME("(%p,%p)!stub\n",*ppStr, pStr);
192 return FALSE;
193}
194
195/*****************************************************
196 * ADsEncodeBinaryData [ACTIVEDS.20]
197 */
198HRESULT WINAPI ADsEncodeBinaryData(PBYTE pbSrcData, DWORD dwSrcLen, LPWSTR *ppszDestData)
199{
200 FIXME("(%p,%d,%p)!stub\n", pbSrcData, dwSrcLen, *ppszDestData);
201 return E_NOTIMPL;
202}
HRESULT WINAPI ADsBuildVarArrayInt(LPDWORD lpdwObjectTypes, DWORD dwObjectTypes, VARIANT *pvar)
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
Definition: activeds_main.c:43
HRESULT WINAPI ADsBuildEnumerator(IADsContainer *pADsContainer, IEnumVARIANT **ppEnumVariant)
Definition: activeds_main.c:72
HRESULT WINAPI ADsFreeEnumerator(IEnumVARIANT *pEnumVariant)
Definition: activeds_main.c:81
HRESULT WINAPI ADsEnumerateNext(IEnumVARIANT *pEnumVariant, ULONG cElements, VARIANT *pvar, ULONG *pcElementsFetched)
Definition: activeds_main.c:90
HRESULT WINAPI ADsOpenObject(LPCWSTR lpszPathName, LPCWSTR lpszUserName, LPCWSTR lpszPassword, DWORD dwReserved, REFIID riid, VOID **ppObject)
BOOL WINAPI ReallocADsStr(LPWSTR *ppStr, LPWSTR pStr)
HRESULT WINAPI ADsGetLastError(LPDWORD perror, LPWSTR errorbuf, DWORD errorbuflen, LPWSTR namebuf, DWORD namebuflen)
HRESULT WINAPI ADsGetObject(LPCWSTR lpszPathName, REFIID riid, VOID **ppObject)
Definition: activeds_main.c:63
LPVOID WINAPI ReallocADsMem(LPVOID pOldMem, DWORD cbOld, DWORD cbNew)
HRESULT WINAPI ADsBuildVarArrayStr(LPWSTR *lppPathNames, DWORD dwPathNames, VARIANT *pvar)
Definition: activeds_main.c:99
LPWSTR WINAPI AllocADsStr(LPWSTR pStr)
BOOL WINAPI FreeADsMem(LPVOID pMem)
VOID WINAPI ADsSetLastError(DWORD dwErr, LPWSTR pszError, LPWSTR pszProvider)
BOOL WINAPI FreeADsStr(LPWSTR pStr)
HRESULT WINAPI ADsEncodeBinaryData(PBYTE pbSrcData, DWORD dwSrcLen, LPWSTR *ppszDestData)
LPVOID WINAPI AllocADsMem(DWORD cb)
static DWORD const fdwReason
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
Definition: precomp.h:23
DWORD dwErr
Definition: service.c:36
#define FIXME(fmt,...)
Definition: precomp.h:53
#define E_NOTIMPL
Definition: ddrawi.h:99
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
_CRTIMP void __cdecl perror(_In_opt_z_ const char *_ErrMsg)
REFIID riid
Definition: atlbase.h:39
#define debugstr_guid
Definition: kernel32.h:35
#define debugstr_w
Definition: kernel32.h:32
static IN DWORD IN LPVOID lpvReserved
static HMODULE MODULEINFO DWORD cb
Definition: module.c:33
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED _In_opt_ LPTRANSMIT_FILE_BUFFERS _In_ DWORD dwReserved
Definition: mswsock.h:95
BYTE * PBYTE
Definition: pedump.c:66
#define REFIID
Definition: guiddef.h:118
#define TRACE(s)
Definition: solgame.cpp:4
uint32_t * LPDWORD
Definition: typedefs.h:59
uint32_t ULONG
Definition: typedefs.h:59
_In_opt_ LPSTR _In_opt_ LPSTR lpszPassword
Definition: winbase.h:2743
#define WINAPI
Definition: msvc.h:6
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185