2005-06-13 11:47:46 +00:00
|
|
|
/*
|
|
|
|
* Implementation of the Active Directory Service Interface
|
|
|
|
*
|
|
|
|
* Copyright 2005 Detlef Riekenberg
|
|
|
|
*
|
|
|
|
* This file contains only stubs to get the printui.dll up and running
|
|
|
|
* activeds.dll is much much more than this
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 12:49:52 +00:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2005-06-13 11:47:46 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#define COBJMACROS
|
|
|
|
#define NONAMELESSUNION
|
|
|
|
|
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
|
|
|
#include "winuser.h"
|
|
|
|
|
2005-09-26 16:43:20 +00:00
|
|
|
#include "objbase.h"
|
|
|
|
#include "iads.h"
|
|
|
|
#include "adshlp.h"
|
|
|
|
|
2005-06-13 11:47:46 +00:00
|
|
|
#include "wine/unicode.h"
|
|
|
|
#include "wine/debug.h"
|
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(activeds);
|
|
|
|
|
|
|
|
/*****************************************************
|
|
|
|
* DllMain
|
|
|
|
*/
|
|
|
|
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
|
|
|
{
|
2006-10-04 09:50:01 +00:00
|
|
|
TRACE("(%p, %d, %p)\n",hinstDLL, fdwReason, lpvReserved);
|
2006-03-21 15:18:24 +00:00
|
|
|
|
|
|
|
switch(fdwReason)
|
|
|
|
{
|
|
|
|
case DLL_WINE_PREATTACH:
|
|
|
|
return FALSE; /* prefer native version */
|
|
|
|
case DLL_PROCESS_ATTACH:
|
|
|
|
DisableThreadLibraryCalls( hinstDLL );
|
|
|
|
break;
|
|
|
|
}
|
2005-06-13 11:47:46 +00:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*****************************************************
|
|
|
|
* ADsGetObject [ACTIVEDS.3]
|
|
|
|
*/
|
2005-09-26 16:43:20 +00:00
|
|
|
HRESULT WINAPI ADsGetObject(LPCWSTR lpszPathName, REFIID riid, VOID** ppObject)
|
2005-06-13 11:47:46 +00:00
|
|
|
{
|
|
|
|
FIXME("(%s)->(%s,%p)!stub\n",debugstr_w(lpszPathName), debugstr_guid(riid), ppObject);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*****************************************************
|
|
|
|
* ADsBuildEnumerator [ACTIVEDS.4]
|
|
|
|
*/
|
2005-09-26 16:43:20 +00:00
|
|
|
HRESULT WINAPI ADsBuildEnumerator(IADsContainer * pADsContainer, IEnumVARIANT** ppEnumVariant)
|
2005-06-13 11:47:46 +00:00
|
|
|
{
|
|
|
|
FIXME("(%p)->(%p)!stub\n",pADsContainer, ppEnumVariant);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2010-11-12 18:21:23 +00:00
|
|
|
/*****************************************************
|
|
|
|
* ADsFreeEnumerator [ACTIVEDS.5]
|
|
|
|
*/
|
|
|
|
HRESULT WINAPI ADsFreeEnumerator(IEnumVARIANT* pEnumVariant)
|
|
|
|
{
|
|
|
|
FIXME("(%p)!stub\n",pEnumVariant);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2005-06-13 11:47:46 +00:00
|
|
|
/*****************************************************
|
|
|
|
* ADsEnumerateNext [ACTIVEDS.6]
|
|
|
|
*/
|
2005-09-26 16:43:20 +00:00
|
|
|
HRESULT WINAPI ADsEnumerateNext(IEnumVARIANT* pEnumVariant, ULONG cElements, VARIANT* pvar, ULONG * pcElementsFetched)
|
2005-06-13 11:47:46 +00:00
|
|
|
{
|
2006-10-04 09:50:01 +00:00
|
|
|
FIXME("(%p)->(%u, %p, %p)!stub\n",pEnumVariant, cElements, pvar, pcElementsFetched);
|
2005-06-13 11:47:46 +00:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2010-11-12 18:21:23 +00:00
|
|
|
/*****************************************************
|
|
|
|
* ADsBuildVarArrayStr [ACTIVEDS.7]
|
|
|
|
*/
|
|
|
|
HRESULT WINAPI ADsBuildVarArrayStr(LPWSTR *lppPathNames, DWORD dwPathNames, VARIANT* pvar)
|
|
|
|
{
|
|
|
|
FIXME("(%p, %d, %p)!stub\n",*lppPathNames, dwPathNames, pvar);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*****************************************************
|
|
|
|
* ADsBuildVarArrayInt [ACTIVEDS.8]
|
|
|
|
*/
|
|
|
|
HRESULT WINAPI ADsBuildVarArrayInt(LPDWORD lpdwObjectTypes, DWORD dwObjectTypes, VARIANT* pvar)
|
|
|
|
{
|
|
|
|
FIXME("(%p, %d, %p)!stub\n",lpdwObjectTypes, dwObjectTypes, pvar);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2005-06-13 11:47:46 +00:00
|
|
|
/*****************************************************
|
|
|
|
* ADsOpenObject [ACTIVEDS.9]
|
|
|
|
*/
|
2005-09-26 16:43:20 +00:00
|
|
|
HRESULT WINAPI ADsOpenObject(LPCWSTR lpszPathName, LPCWSTR lpszUserName, LPCWSTR lpszPassword, DWORD dwReserved, REFIID riid, VOID** ppObject)
|
2005-06-13 11:47:46 +00:00
|
|
|
{
|
2012-03-21 22:33:39 +00:00
|
|
|
FIXME("(%s,%s,%u,%s,%p)!stub\n", debugstr_w(lpszPathName),
|
2005-09-26 16:43:20 +00:00
|
|
|
debugstr_w(lpszUserName), dwReserved, debugstr_guid(riid), ppObject);
|
2005-06-13 11:47:46 +00:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2010-11-12 18:21:23 +00:00
|
|
|
/*****************************************************
|
|
|
|
* ADsSetLastError [ACTIVEDS.12]
|
|
|
|
*/
|
|
|
|
VOID WINAPI ADsSetLastError(DWORD dwErr, LPWSTR pszError, LPWSTR pszProvider)
|
|
|
|
{
|
|
|
|
FIXME("(%d,%p,%p)!stub\n", dwErr, pszError, pszProvider);
|
|
|
|
}
|
|
|
|
|
2010-03-05 11:00:37 +00:00
|
|
|
/*****************************************************
|
|
|
|
* ADsGetLastError [ACTIVEDS.13]
|
|
|
|
*/
|
|
|
|
HRESULT WINAPI ADsGetLastError(LPDWORD perror, LPWSTR errorbuf, DWORD errorbuflen, LPWSTR namebuf, DWORD namebuflen)
|
|
|
|
{
|
|
|
|
FIXME("(%p,%p,%d,%p,%d)!stub\n", perror, errorbuf, errorbuflen, namebuf, namebuflen);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
2010-11-12 18:21:23 +00:00
|
|
|
/*****************************************************
|
|
|
|
* AllocADsMem [ACTIVEDS.14]
|
|
|
|
*/
|
|
|
|
LPVOID WINAPI AllocADsMem(DWORD cb)
|
|
|
|
{
|
|
|
|
FIXME("(%d)!stub\n",cb);
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2005-06-13 11:47:46 +00:00
|
|
|
/*****************************************************
|
|
|
|
* FreeADsMem [ACTIVEDS.15]
|
|
|
|
*/
|
2005-06-17 20:56:21 +00:00
|
|
|
BOOL WINAPI FreeADsMem(LPVOID pMem)
|
2005-06-13 11:47:46 +00:00
|
|
|
{
|
|
|
|
FIXME("(%p)!stub\n",pMem);
|
|
|
|
return FALSE;
|
|
|
|
}
|
2010-11-12 18:21:23 +00:00
|
|
|
|
|
|
|
/*****************************************************
|
|
|
|
* ReallocADsMem [ACTIVEDS.16]
|
|
|
|
*/
|
|
|
|
LPVOID WINAPI ReallocADsMem(LPVOID pOldMem, DWORD cbOld, DWORD cbNew)
|
|
|
|
{
|
|
|
|
FIXME("(%p,%d,%d)!stub\n", pOldMem, cbOld, cbNew);
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*****************************************************
|
|
|
|
* AllocADsStr [ACTIVEDS.17]
|
|
|
|
*/
|
|
|
|
LPWSTR WINAPI AllocADsStr(LPWSTR pStr)
|
|
|
|
{
|
|
|
|
FIXME("(%p)!stub\n",pStr);
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*****************************************************
|
|
|
|
* FreeADsStr [ACTIVEDS.18]
|
|
|
|
*/
|
|
|
|
BOOL WINAPI FreeADsStr(LPWSTR pStr)
|
|
|
|
{
|
|
|
|
FIXME("(%p)!stub\n",pStr);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*****************************************************
|
|
|
|
* ReallocADsStr [ACTIVEDS.19]
|
|
|
|
*/
|
|
|
|
BOOL WINAPI ReallocADsStr(LPWSTR *ppStr, LPWSTR pStr)
|
|
|
|
{
|
|
|
|
FIXME("(%p,%p)!stub\n",*ppStr, pStr);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*****************************************************
|
|
|
|
* ADsEncodeBinaryData [ACTIVEDS.20]
|
|
|
|
*/
|
|
|
|
HRESULT WINAPI ADsEncodeBinaryData(PBYTE pbSrcData, DWORD dwSrcLen, LPWSTR *ppszDestData)
|
|
|
|
{
|
|
|
|
FIXME("(%p,%d,%p)!stub\n", pbSrcData, dwSrcLen, *ppszDestData);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|