2005-06-13 13:47:46 +02: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 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2005-06-13 13:47:46 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#define COBJMACROS
|
|
|
|
#define NONAMELESSUNION
|
|
|
|
|
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
|
|
|
#include "winuser.h"
|
|
|
|
#include "winreg.h"
|
|
|
|
#include "winver.h"
|
|
|
|
#include "winnls.h"
|
|
|
|
|
2005-09-26 18:43:20 +02:00
|
|
|
#include "objbase.h"
|
|
|
|
#include "iads.h"
|
|
|
|
#include "adshlp.h"
|
|
|
|
|
2005-06-13 13:47:46 +02:00
|
|
|
#include "wine/unicode.h"
|
|
|
|
#include "wine/debug.h"
|
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(activeds);
|
|
|
|
|
|
|
|
/*****************************************************
|
|
|
|
* DllMain
|
|
|
|
*/
|
|
|
|
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
|
|
|
{
|
|
|
|
TRACE("(%p, %ld, %p)\n",hinstDLL, fdwReason, lpvReserved);
|
2006-03-21 16:18:24 +01:00
|
|
|
|
|
|
|
switch(fdwReason)
|
|
|
|
{
|
|
|
|
case DLL_WINE_PREATTACH:
|
|
|
|
return FALSE; /* prefer native version */
|
|
|
|
case DLL_PROCESS_ATTACH:
|
|
|
|
DisableThreadLibraryCalls( hinstDLL );
|
|
|
|
break;
|
|
|
|
}
|
2005-06-13 13:47:46 +02:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*****************************************************
|
|
|
|
* ADsGetObject [ACTIVEDS.3]
|
|
|
|
*/
|
2005-09-26 18:43:20 +02:00
|
|
|
HRESULT WINAPI ADsGetObject(LPCWSTR lpszPathName, REFIID riid, VOID** ppObject)
|
2005-06-13 13:47:46 +02:00
|
|
|
{
|
|
|
|
FIXME("(%s)->(%s,%p)!stub\n",debugstr_w(lpszPathName), debugstr_guid(riid), ppObject);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*****************************************************
|
|
|
|
* ADsBuildEnumerator [ACTIVEDS.4]
|
|
|
|
*/
|
2005-09-26 18:43:20 +02:00
|
|
|
HRESULT WINAPI ADsBuildEnumerator(IADsContainer * pADsContainer, IEnumVARIANT** ppEnumVariant)
|
2005-06-13 13:47:46 +02:00
|
|
|
{
|
|
|
|
FIXME("(%p)->(%p)!stub\n",pADsContainer, ppEnumVariant);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*****************************************************
|
|
|
|
* ADsEnumerateNext [ACTIVEDS.6]
|
|
|
|
*/
|
2005-09-26 18:43:20 +02:00
|
|
|
HRESULT WINAPI ADsEnumerateNext(IEnumVARIANT* pEnumVariant, ULONG cElements, VARIANT* pvar, ULONG * pcElementsFetched)
|
2005-06-13 13:47:46 +02:00
|
|
|
{
|
|
|
|
FIXME("(%p)->(%lu, %p, %p)!stub\n",pEnumVariant, cElements, pvar, pcElementsFetched);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*****************************************************
|
|
|
|
* ADsOpenObject [ACTIVEDS.9]
|
|
|
|
*/
|
2005-09-26 18:43:20 +02:00
|
|
|
HRESULT WINAPI ADsOpenObject(LPCWSTR lpszPathName, LPCWSTR lpszUserName, LPCWSTR lpszPassword, DWORD dwReserved, REFIID riid, VOID** ppObject)
|
2005-06-13 13:47:46 +02:00
|
|
|
{
|
2005-09-26 18:43:20 +02:00
|
|
|
FIXME("(%s,%s,%lu,%p,%p)!stub\n", debugstr_w(lpszPathName),
|
|
|
|
debugstr_w(lpszUserName), dwReserved, debugstr_guid(riid), ppObject);
|
2005-06-13 13:47:46 +02:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*****************************************************
|
|
|
|
* FreeADsMem [ACTIVEDS.15]
|
|
|
|
*/
|
2005-06-17 22:56:21 +02:00
|
|
|
BOOL WINAPI FreeADsMem(LPVOID pMem)
|
2005-06-13 13:47:46 +02:00
|
|
|
{
|
|
|
|
FIXME("(%p)!stub\n",pMem);
|
|
|
|
return FALSE;
|
|
|
|
}
|